quec_boot_virt_func_bsp.c 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /** @file
  2. quec_virt_func_common.c
  3. @brief
  4. This file is used to run virt function.
  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. 22/06/2021 neo Init version
  17. =================================================================*/
  18. #include "quec_cust_feature.h"
  19. #include "stdbool.h"
  20. #include "ql_boot_spi_nand_flash.h"
  21. #ifndef CONFIG_QUEC_PROJECT_FEATURE_SPI6_EXT_NOR
  22. __attribute__((weak)) bool ql_get_spi6_ext_nor_status(void)
  23. {
  24. return false;
  25. }
  26. __attribute__((weak)) void ql_set_spi6_ext_nor_flash_status(void)
  27. {
  28. return ;
  29. }
  30. __attribute__((weak)) void quec_set_spi6_ext_nor_flash_capacity(void)
  31. {
  32. return ;
  33. }
  34. __attribute__((weak)) int quec_spi6_ext_nor_flash_mount(bool format_on_fail)
  35. {
  36. return 0;
  37. }
  38. __attribute__((weak)) int quec_spi6_ext_nor_flash_mkfs(void)
  39. {
  40. return 0;
  41. }
  42. __attribute__((weak)) void quec_boot_spi6_ext_norflash_gpio_init(void)
  43. {
  44. return ;
  45. }
  46. __attribute__((weak)) void quec_boot_get_spi6_ext_norflash_gpio_default_fuction(void)
  47. {
  48. return ;
  49. }
  50. __attribute__((weak)) void quec_boot_spi6_ext_norflash_gpio_deinit(void)
  51. {
  52. return ;
  53. }
  54. __attribute__((weak)) void quec_extflash_erase_count_update(unsigned int flash_addr, unsigned int size)
  55. {
  56. return ;
  57. }
  58. #endif
  59. #if ((!defined CONFIG_QUEC_PROJECT_FEATURE_SPI_NAND_FLASH) && (!defined CONFIG_QUEC_PROJECT_FEATURE_SPI6_NAND_FLASH))
  60. __attribute__((weak)) ql_boot_nand_ops_t *boot_nand_opt = NULL;
  61. #endif
  62. #ifndef CONFIG_QUEC_PROJECT_FEATURE_SPI_NAND_FLASH
  63. __attribute__((weak)) void ql_boot_nand_param_init(void)
  64. {}
  65. #endif
  66. #ifndef CONFIG_QUEC_PROJECT_FEATURE_SPI6_NAND_FLASH
  67. __attribute__((weak)) void ql_boot_nand_param_init_spi6(void)
  68. {}
  69. #endif