quec_boot_nand.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /** @file
  2. quec_boot_nand.h
  3. @brief
  4. This file is used to define boot nand api for different Quectel Project.
  5. */
  6. /*================================================================
  7. Copyright (c) 2020 Quectel Wireless Solution, Co., Ltd. All Rights Reserved.
  8. Quectel Wireless Solution Proprietary and Confidential.
  9. =================================================================*/
  10. /*=================================================================
  11. EDIT HISTORY FOR MODULE
  12. This section contains comments describing changes made to the module.
  13. Notice that changes are listed in reverse chronological order.
  14. WHEN WHO WHAT, WHERE, WHY
  15. ------------ ------- -------------------------------------------------------------------------------
  16. 19/06/2021 Neo Init version
  17. 11/01/2023 Sum add Quad SPI/Dual SPI nand flash
  18. =================================================================*/
  19. #ifndef QUEC_BOOT_NAND_H
  20. #define QUEC_BOOT_NAND_H
  21. #include "quec_boot_pin_cfg.h"
  22. #include "ql_boot_spi_nand_flash.h"
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. /*===========================================================================
  27. * Macro Definition
  28. ===========================================================================*/
  29. /*===========================================================================
  30. * Enum
  31. ===========================================================================*/
  32. /*===========================================================================
  33. * Functions declaration
  34. ===========================================================================*/
  35. //Standard SPI nand flash api
  36. int quec_boot_nand_init(ql_boot_spi_port_e port);
  37. //Quad SPI/Dual SPI nand flash api
  38. int quec_boot_nand_init_spi6(ql_boot_spi_port_e port,ql_boot_nand_spi_type_e spi_type);
  39. int quec_boot_nand_init_spi6_ex(ql_boot_spi6_nand_config_s config);
  40. #ifdef __cplusplus
  41. } /*"C" */
  42. #endif
  43. #endif /* QUEC_BOOT_NAND_H */