hal_config.h.in 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889
  1. /* Copyright (C) 2018 RDA Technologies Limited and/or its affiliates("RDA").
  2. * All rights reserved.
  3. *
  4. * This software is supplied "AS IS" without any warranties.
  5. * RDA assumes no responsibility or liability for the use of the software,
  6. * conveys no license or title under any patent, copyright, or mask work
  7. * right to the product. RDA reserves the right to make changes in the
  8. * software without notification. RDA also make no representation or
  9. * warranty that such application will be suitable for the specified use
  10. * without further testing or modification.
  11. */
  12. #ifndef _HAL_CONFIG_H_
  13. #define _HAL_CONFIG_H_
  14. #include "hal_chip_config.h"
  15. //quectel update
  16. #include "quec_proj_config.h"
  17. // @AUTO_GENERATION_NOTICE@
  18. /**
  19. * SOC name
  20. */
  21. #cmakedefine CONFIG_SOC "@CONFIG_SOC@"
  22. /**
  23. * build target
  24. */
  25. #cmakedefine CONFIG_BUILD_TARGET "@CONFIG_BUILD_TARGET@"
  26. /**
  27. * whether it is 8910 series
  28. */
  29. #cmakedefine CONFIG_SOC_8910
  30. /**
  31. * whether it is 8811 series
  32. */
  33. #cmakedefine CONFIG_SOC_8811
  34. /**
  35. * whether it is 8811 series
  36. */
  37. #cmakedefine CONFIG_SOC_8850
  38. /**
  39. * whether it is FPGA, not real chip
  40. *
  41. * This will be defined when developing in FPGA. For SOC independent codes,
  42. * and it is needed to distinguish FPGA and real chip, this macro can be
  43. * used.
  44. */
  45. #cmakedefine CONFIG_RUN_ON_FPGA
  46. /**
  47. * whether it is ARM CPUs
  48. */
  49. #cmakedefine CONFIG_CPU_ARM
  50. /**
  51. * whether it is ARMv7-A CPUs
  52. */
  53. #cmakedefine CONFIG_CPU_ARMV7A
  54. /**
  55. * whether it is ARM Cortex A5
  56. */
  57. #cmakedefine CONFIG_CPU_ARM_CA5
  58. /**
  59. * whether it is ARMv7-M CPUs
  60. */
  61. #cmakedefine CONFIG_CPU_ARMV7M
  62. /**
  63. * whether it is ARM Cortex M4F
  64. */
  65. #cmakedefine CONFIG_CPU_ARM_CM4F
  66. /**
  67. * whether it is ARMv8-M CPUs
  68. */
  69. #cmakedefine CONFIG_CPU_ARMV8M
  70. /**
  71. * whether it is ARM Cortex M33F
  72. */
  73. #cmakedefine CONFIG_CPU_ARM_CM33F
  74. /**
  75. * I-cache and D-cache line size
  76. *
  77. * It is assumed that I-cache line size is the same with D-cache line size.
  78. */
  79. #cmakedefine CONFIG_CACHE_LINE_SIZE @CONFIG_CACHE_LINE_SIZE@
  80. /**
  81. * whether there is MMU
  82. */
  83. #cmakedefine CONFIG_HAVE_MMU
  84. /**
  85. * SOC have hardware LZMA
  86. */
  87. #cmakedefine CONFIG_HAVE_LZMA
  88. /**
  89. * SOC have hardware spinlock
  90. */
  91. #cmakedefine CONFIG_HAVE_SPINLOCK
  92. /**
  93. * whether there is PSRAM
  94. */
  95. #cmakedefine CONFIG_USE_PSRAM
  96. /**
  97. * whether it is QPI 4bits PSRAM (8811)
  98. */
  99. #cmakedefine CONFIG_QPI_PSRAM
  100. /**
  101. * whether it is OPI 8bits PSRAM (8811)
  102. */
  103. #cmakedefine CONFIG_OPI_PSRAM
  104. /**
  105. * whether there is DDR
  106. */
  107. #cmakedefine CONFIG_USE_DDR
  108. /**
  109. * whether there is PSRAM or DDR
  110. */
  111. #cmakedefine CONFIG_HAVE_EXT_RAM
  112. /**
  113. * PSRAM or DDR size, shall match CONFIG_RAM_xx
  114. */
  115. #cmakedefine CONFIG_RAM_SIZE @CONFIG_RAM_SIZE@
  116. /**
  117. * whether NOR flash is used
  118. */
  119. #cmakedefine CONFIG_NOR_FLASH
  120. /**
  121. * NOR flash size, shall match CONFIG_FLASH_xx
  122. */
  123. #cmakedefine CONFIG_FLASH_SIZE @CONFIG_FLASH_SIZE@
  124. /**
  125. * SRAM size
  126. *
  127. * - 8955/8909: system SRAM size
  128. * - 8811: total SRAM size
  129. * - 8910: total SRAM size
  130. */
  131. #cmakedefine CONFIG_SRAM_SIZE @CONFIG_SRAM_SIZE@
  132. /**
  133. * aon SRAM size (8850)
  134. */
  135. #cmakedefine CONFIG_AON_SRAM_SIZE @CONFIG_AON_SRAM_SIZE@
  136. /**
  137. * cp SRAM size (8850)
  138. */
  139. #cmakedefine CONFIG_CP_SRAM_SIZE @CONFIG_CP_SRAM_SIZE@
  140. /**
  141. * simage header size (used in 8811)
  142. */
  143. #cmakedefine CONFIG_SIMAGE_HEADER_SIZE @CONFIG_SIMAGE_HEADER_SIZE@
  144. /**
  145. * uimage header size (used in 8910)
  146. */
  147. #cmakedefine CONFIG_UIMAGE_HEADER_SIZE @CONFIG_UIMAGE_HEADER_SIZE@
  148. /**
  149. * system ROM physical address
  150. *
  151. * It may be undefined when system ROM won't be accessed
  152. */
  153. #cmakedefine CONFIG_ROM_PHY_ADDRESS @CONFIG_ROM_PHY_ADDRESS@
  154. /**
  155. * NBROM physical address
  156. */
  157. #cmakedefine CONFIG_NBROM_PHY_ADDRESS @CONFIG_NBROM_PHY_ADDRESS@
  158. /**
  159. * system SRAM physical address
  160. */
  161. #cmakedefine CONFIG_SRAM_PHY_ADDRESS @CONFIG_SRAM_PHY_ADDRESS@
  162. /**
  163. * aon SRAM physical address (8850)
  164. */
  165. #cmakedefine CONFIG_AON_SRAM_PHY_ADDRESS @CONFIG_AON_SRAM_PHY_ADDRESS@
  166. /**
  167. * cp SRAM physical address (8850)
  168. */
  169. #cmakedefine CONFIG_CP_SRAM_PHY_ADDRESS @CONFIG_CP_SRAM_PHY_ADDRESS@
  170. /**
  171. * NOR flash physical address
  172. */
  173. #cmakedefine CONFIG_NOR_PHY_ADDRESS @CONFIG_NOR_PHY_ADDRESS@
  174. /**
  175. * external NOR flash physical address
  176. */
  177. #cmakedefine CONFIG_NOR_EXT_PHY_ADDRESS @CONFIG_NOR_EXT_PHY_ADDRESS@
  178. /**
  179. * PSRAM or DDR physical address
  180. */
  181. #cmakedefine CONFIG_RAM_PHY_ADDRESS @CONFIG_RAM_PHY_ADDRESS@
  182. #cmakedefine CONFIG_RAM_HEADER_SIZE @CONFIG_RAM_HEADER_SIZE@
  183. /**
  184. * GIC base address
  185. */
  186. #cmakedefine CONFIG_GIC_BASE_ADDRESS @CONFIG_GIC_BASE_ADDRESS@
  187. /**
  188. * GIC CPU interface offset
  189. */
  190. #cmakedefine CONFIG_GIC_CPU_INTERFACE_OFFSET @CONFIG_GIC_CPU_INTERFACE_OFFSET@
  191. /**
  192. * GIC priority bits, unique level is (1<<CONFIG_GIC_PRIORITY_BITS)
  193. */
  194. #cmakedefine CONFIG_GIC_PRIORITY_BITS @CONFIG_GIC_PRIORITY_BITS@
  195. /**
  196. * NVIC priority bits, unique level is (1<<CONFIG_NVIC_PRIORITY_BITS)
  197. */
  198. #cmakedefine CONFIG_NVIC_PRIORITY_BITS @CONFIG_NVIC_PRIORITY_BITS@
  199. /**
  200. * Interrupt count
  201. */
  202. #cmakedefine CONFIG_IRQ_COUNT @CONFIG_IRQ_COUNT@
  203. /**
  204. * system ROM size
  205. */
  206. #cmakedefine CONFIG_ROM_SIZE @CONFIG_ROM_SIZE@
  207. /**
  208. * NBROM size
  209. */
  210. #cmakedefine CONFIG_NBROM_SIZE @CONFIG_NBROM_SIZE@
  211. /**
  212. * whether dual bootloader is supported
  213. *
  214. * Dual bootloader needs system ROM support.
  215. */
  216. #cmakedefine CONFIG_DUAL_BOOTLOADER_ENABLE
  217. /**
  218. * NOR flash address of bootloader
  219. *
  220. * When dual bootloader is supported, it is the same as
  221. * \p CONFIG_BOOT1_FLASH_ADDRESS.
  222. */
  223. #cmakedefine CONFIG_BOOT_FLASH_ADDRESS @CONFIG_BOOT_FLASH_ADDRESS@
  224. /**
  225. * NOR flash address of boot1 in dual bootloader
  226. */
  227. #cmakedefine CONFIG_BOOT1_FLASH_ADDRESS @CONFIG_BOOT1_FLASH_ADDRESS@
  228. /**
  229. * NOR flash address of boot2 in dual bootloader
  230. */
  231. #cmakedefine CONFIG_BOOT2_FLASH_ADDRESS @CONFIG_BOOT2_FLASH_ADDRESS@
  232. /**
  233. * bootloader reserved size on NOR flash
  234. *
  235. * When dual bootloader is supported, this is the total reserved NOR flash
  236. * size for bootloader.
  237. */
  238. #cmakedefine CONFIG_BOOT_FLASH_SIZE @CONFIG_BOOT_FLASH_SIZE@
  239. /**
  240. * bootloader maximum size
  241. *
  242. * When dual bootloader is enabled, it is \p CONFIG_BOOT_FLASH_SIZE/2.
  243. * When dual bootloader isn't enabled, it is \p CONFIG_BOOT_FLASH_SIZE.
  244. *
  245. * The image header size is included.
  246. */
  247. #cmakedefine CONFIG_BOOTLOADER_SIZE @CONFIG_BOOTLOADER_SIZE@
  248. /**
  249. * tz support(8850)
  250. */
  251. #cmakedefine CONFIG_TRUSTZONE_SUPPORT
  252. /**
  253. * NOR flash address of spl
  254. *
  255. * When dual bootloader is supported, it is the same as
  256. * \p CONFIG_SPL1_FLASH_ADDRESS.
  257. */
  258. #cmakedefine CONFIG_SPL_FLASH_ADDRESS @CONFIG_SPL_FLASH_ADDRESS@
  259. /**
  260. * NOR flash address of spl1 in dual bootloader
  261. */
  262. #cmakedefine CONFIG_SPL1_FLASH_ADDRESS @CONFIG_SPL1_FLASH_ADDRESS@
  263. /**
  264. * NOR flash address of spl2 in dual bootloader
  265. */
  266. #cmakedefine CONFIG_SPL2_FLASH_ADDRESS @CONFIG_SPL2_FLASH_ADDRESS@
  267. /**
  268. * spl reserved size on NOR flash
  269. *
  270. * When dual spl is supported, this is the total reserved NOR flash
  271. * size for bootloader.
  272. */
  273. #cmakedefine CONFIG_SPL_FLASH_SIZE @CONFIG_SPL_FLASH_SIZE@
  274. /**
  275. * spl reserved size on NOR flash
  276. * */
  277. #cmakedefine CONFIG_SPL_SIZE @CONFIG_SPL_SIZE@
  278. /**
  279. * NOR flash physical address of sml
  280. */
  281. #cmakedefine CONFIG_TZ_SML_FLASH_ADDRESS @CONFIG_TZ_SML_FLASH_ADDRESS@
  282. /**
  283. * sml maximum size
  284. */
  285. #cmakedefine CONFIG_TZ_SML_FLASH_SIZE @CONFIG_TZ_SML_FLASH_SIZE@
  286. /**
  287. * NOR flash physical address of sml
  288. */
  289. #cmakedefine CONFIG_TZ_TOS_FLASH_ADDRESS @CONFIG_TZ_TOS_FLASH_ADDRESS@
  290. /**
  291. * sml maximum size
  292. */
  293. #cmakedefine CONFIG_TZ_TOS_FLASH_SIZE @CONFIG_TZ_TOS_FLASH_SIZE@
  294. /**
  295. * NOR flash physical address of tfm
  296. */
  297. #cmakedefine CONFIG_TFM_FLASH_ADDRESS @CONFIG_TFM_FLASH_ADDRESS@
  298. /**
  299. * tfm maximum size
  300. */
  301. #cmakedefine CONFIG_TFM_FLASH_SIZE @CONFIG_TFM_FLASH_SIZE@
  302. /**
  303. * NOR flash physical address of s_storage
  304. */
  305. #cmakedefine CONFIG_S_STORAGE_FLASH_ADDRESS @CONFIG_S_STORAGE_FLASH_ADDRESS@
  306. /**
  307. * reserved NOR flash size for s_storage
  308. */
  309. #cmakedefine CONFIG_S_STORAGE_FLASH_SIZE @CONFIG_S_STORAGE_FLASH_SIZE@
  310. /**
  311. * NOR flash physical address of application
  312. */
  313. #cmakedefine CONFIG_APP_FLASH_ADDRESS @CONFIG_APP_FLASH_ADDRESS@
  314. /**
  315. * reserved NOR flash size for application
  316. */
  317. #cmakedefine CONFIG_APP_FLASH_SIZE @CONFIG_APP_FLASH_SIZE@
  318. /**
  319. * NOR flash address of loadable app image
  320. */
  321. #cmakedefine CONFIG_APPIMG_FLASH_ADDRESS @CONFIG_APPIMG_FLASH_ADDRESS@
  322. /**
  323. * reserved NOR flash size for loadable app image
  324. */
  325. #cmakedefine CONFIG_APPIMG_FLASH_SIZE @CONFIG_APPIMG_FLASH_SIZE@
  326. /**
  327. * NOR flash address of loadable app2 image --quectel update
  328. */
  329. #cmakedefine CONFIG_APPIMG2_FLASH_ADDRESS @CONFIG_APPIMG2_FLASH_ADDRESS@
  330. /**
  331. * reserved NOR flash size for loadable app2 image --quectel update
  332. */
  333. #cmakedefine CONFIG_APPIMG2_FLASH_SIZE @CONFIG_APPIMG2_FLASH_SIZE@
  334. /**
  335. * NOR flash physical address of openCPU
  336. */
  337. #cmakedefine CONFIG_OPENCPU_FLASH_ADDRESS @CONFIG_OPENCPU_FLASH_ADDRESS@
  338. /**
  339. * reserved NOR flash size for openCPU
  340. */
  341. #cmakedefine CONFIG_OPENCPU_FLASH_SIZE @CONFIG_OPENCPU_FLASH_SIZE@
  342. /**
  343. * NOR flash address of system file system
  344. *
  345. * The mount point of system file system is \p CONFIG_FS_SYS_MOUNT_POINT.
  346. */
  347. #cmakedefine CONFIG_FS_SYS_FLASH_ADDRESS @CONFIG_FS_SYS_FLASH_ADDRESS@
  348. /**
  349. * reserved NOR flash size for system file system
  350. */
  351. #cmakedefine CONFIG_FS_SYS_FLASH_SIZE @CONFIG_FS_SYS_FLASH_SIZE@
  352. /**
  353. * NOR flash address of modem image file system
  354. *
  355. * The mount point of modem image file system is \p CONFIG_FS_MODEM_MOUNT_POINT.
  356. */
  357. #cmakedefine CONFIG_FS_MODEM_FLASH_ADDRESS @CONFIG_FS_MODEM_FLASH_ADDRESS@
  358. /**
  359. * reserved NOR flash size for modem image file system
  360. */
  361. #cmakedefine CONFIG_FS_MODEM_FLASH_SIZE @CONFIG_FS_MODEM_FLASH_SIZE@
  362. /**
  363. * NOR flash address of factory file system
  364. *
  365. * The mount point of factory file system is \p CONFIG_FS_FACTORY_MOUNT_POINT.
  366. */
  367. #cmakedefine CONFIG_FS_FACTORY_FLASH_ADDRESS @CONFIG_FS_FACTORY_FLASH_ADDRESS@
  368. /**
  369. * reserved NOR flash size for factory file system
  370. */
  371. #cmakedefine CONFIG_FS_FACTORY_FLASH_SIZE @CONFIG_FS_FACTORY_FLASH_SIZE@
  372. /**
  373. * external NOR flash physical address of application
  374. */
  375. #cmakedefine CONFIG_APP_FLASH2_ADDRESS @CONFIG_APP_FLASH2_ADDRESS@
  376. /**
  377. * reserved external NOR flash size for application
  378. */
  379. #cmakedefine CONFIG_APP_FLASH2_SIZE @CONFIG_APP_FLASH2_SIZE@
  380. /**
  381. * mount point of modem image file system
  382. */
  383. #cmakedefine CONFIG_FS_MODEM_MOUNT_POINT "@CONFIG_FS_MODEM_MOUNT_POINT@"
  384. /**
  385. * mount point of system file system
  386. */
  387. #cmakedefine CONFIG_FS_SYS_MOUNT_POINT "@CONFIG_FS_SYS_MOUNT_POINT@"
  388. /**
  389. * mount point of factory file system
  390. */
  391. #cmakedefine CONFIG_FS_FACTORY_MOUNT_POINT "@CONFIG_FS_FACTORY_MOUNT_POINT@"
  392. /**
  393. * directory for modem running NV
  394. */
  395. #cmakedefine CONFIG_FS_MODEM_NVM_DIR "@CONFIG_FS_MODEM_NVM_DIR@"
  396. /**
  397. * directory for application NV
  398. */
  399. #cmakedefine CONFIG_FS_AP_NVM_DIR "@CONFIG_FS_AP_NVM_DIR@"
  400. /**
  401. * directory for firmware update
  402. *
  403. * Firmware update related files will be located under this directory,
  404. * including the differential pack file, and intermediate files.
  405. */
  406. #cmakedefine CONFIG_FS_FOTA_DATA_DIR "@CONFIG_FS_FOTA_DATA_DIR@"
  407. /**
  408. * whether loading app image from NOR flash is enabled
  409. */
  410. #cmakedefine CONFIG_APPIMG_LOAD_FLASH
  411. /**
  412. * whether loading app image from file is enabled
  413. *
  414. * When loading app image from file, the image will be loaded to RAM, and
  415. * execute on RAM.
  416. */
  417. #cmakedefine CONFIG_APPIMG_LOAD_FILE
  418. /**
  419. * Whether to verify app image signature when secure boot is enabled
  420. */
  421. #cmakedefine CONFIG_APPIMG_SIGCHECK_ENABLE
  422. /**
  423. * loadable app image file name
  424. */
  425. #cmakedefine CONFIG_APPIMG_LOAD_FILE_NAME "@CONFIG_APPIMG_LOAD_FILE_NAME@"
  426. /**
  427. * loadable app2 image file name #quectel update
  428. */
  429. #cmakedefine CONFIG_APPIMG2_LOAD_FILE_NAME "@CONFIG_APPIMG2_LOAD_FILE_NAME@"
  430. /**
  431. * reserved memory size for blue screen. For ARM v7A, the size is blue screen
  432. * data size plus blue screen stack size. For ARM v8M, it is just the blue
  433. * screen data size.
  434. */
  435. #cmakedefine CONFIG_BLUE_SCREEN_SIZE @CONFIG_BLUE_SCREEN_SIZE@
  436. /**
  437. * whether to enable blue screen backup
  438. */
  439. #cmakedefine CONFIG_BSCORE_ENABLE
  440. /**
  441. * whether blue screen backup located on sram
  442. */
  443. #cmakedefine CONFIG_BSCORE_ON_SRAM
  444. /**
  445. * blue screen core total size
  446. */
  447. #cmakedefine CONFIG_BSCORE_SIZE @CONFIG_BSCORE_SIZE@
  448. /**
  449. * blue screen core stack dump ahead offset
  450. */
  451. #cmakedefine CONFIG_BSCORE_STACK_EXTRA @CONFIG_BSCORE_STACK_EXTRA@
  452. /**
  453. * blue screen core stack dump size
  454. */
  455. #cmakedefine CONFIG_BSCORE_STACK_SIZE @CONFIG_BSCORE_STACK_SIZE@
  456. /**
  457. * blue screen core cp stack dump size
  458. */
  459. #cmakedefine CONFIG_BSCORE_CP_STACK_SIZE @CONFIG_BSCORE_CP_STACK_SIZE@
  460. /**
  461. * blue screen core profile size
  462. */
  463. #cmakedefine CONFIG_BSCORE_PROFILE_SIZE @CONFIG_BSCORE_PROFILE_SIZE@
  464. /**
  465. * enable med encrypt data or not (8811)
  466. */
  467. #cmakedefine CONFIG_MED_CODE_ENCRYPT
  468. /**
  469. * Power down flash in low power mode (8910)
  470. */
  471. #cmakedefine CONFIG_FLASH_LP_POWER_DOWN
  472. /**
  473. * Load flash and psram infomation to share mem
  474. */
  475. #cmakedefine CONFIG_SHAREMEM_EMMCDDR_INFO
  476. /**
  477. * PSRAM enter half sleep in low power mode (8910)
  478. */
  479. #cmakedefine CONFIG_PSRAM_LP_HALF_SLEEP
  480. /**
  481. * whether to support PM2 cold boot sleep mode
  482. */
  483. #cmakedefine CONFIG_PSM_PM2BOOT_ENABLE
  484. /**
  485. * whether to check cp images signature
  486. */
  487. #cmakedefine CONFIG_CPBIN_SIGCHECK
  488. /**
  489. * keyled power is used for RF switch (8910)
  490. */
  491. #cmakedefine CONFIG_BOARD_KPLED_USED_FOR_RF_SWITCH
  492. /**
  493. * force pull up for gpio4 in iomux (8910)
  494. */
  495. #cmakedefine CONFIG_GPIO4_FORCE_PULL_UP
  496. /**
  497. * gpio number for pmic interrupt (8910)
  498. */
  499. #cmakedefine CONFIG_PMIC_INTR_GPIO @CONFIG_PMIC_INTR_GPIO@
  500. /**
  501. * enable camera power at initialization (8910)
  502. */
  503. #cmakedefine CONFIG_CAMA_POWER_ON_INIT @CONFIG_CAMA_POWER_ON_INIT@
  504. /**
  505. * whether camera clock is needed for audio (8910)
  506. */
  507. #cmakedefine CONFIG_CAMA_CLK_FOR_AUDIO @CONFIG_CAMA_CLK_FOR_AUDIO@
  508. /**
  509. * use 26MHz DCXO, rather than VCXO (8909)
  510. */
  511. #cmakedefine CONFIG_CRYSTAL_WITHOUT_OSCILLATOR
  512. /**
  513. * RF use LDO (8909)
  514. */
  515. #cmakedefine CONFIG_RF_LDO_MODE
  516. /**
  517. * hardware supported SIM count
  518. *
  519. * This is not the supported SIM count of protocol stack and application.
  520. */
  521. #cmakedefine CONFIG_HAL_SIM_COUNT @CONFIG_HAL_SIM_COUNT@
  522. /**
  523. * whether GSM is supported
  524. */
  525. #cmakedefine CONFIG_GSM_SUPPORT
  526. /**
  527. * whether NBIOT is supported
  528. */
  529. #cmakedefine CONFIG_LTE_NBIOT_SUPPORT
  530. /**
  531. * whether to enter RF calibration mode by gpio
  532. */
  533. #cmakedefine CONFIG_BOARD_ENTER_CALIB_BY_GPIO
  534. /**
  535. * the gpio for detect entering RF calibration mode
  536. */
  537. #cmakedefine CONFIG_BOARD_ENTER_CALIB_GPIO @CONFIG_BOARD_ENTER_CALIB_GPIO@
  538. /**
  539. * whether to support SIM1 hot plug
  540. */
  541. #cmakedefine CONFIG_BOARD_SUPPORT_SIM1_DETECT
  542. /**
  543. * gpio for SIM1 hot plug detect
  544. */
  545. #cmakedefine CONFIG_BOARD_SIM1_DETECT_GPIO @CONFIG_BOARD_SIM1_DETECT_GPIO@
  546. /**
  547. * whether to support SIM2 hot plug
  548. */
  549. #cmakedefine CONFIG_BOARD_SUPPORT_SIM2_DETECT
  550. /**
  551. * gpio for SIM2 hot plug detect
  552. */
  553. #cmakedefine CONFIG_BOARD_SIM2_DETECT_GPIO @CONFIG_BOARD_SIM2_DETECT_GPIO@
  554. /**
  555. * whether debughost event is enabled
  556. */
  557. #cmakedefine CONFIG_ENABLE_DEBUGHOST_EVENT
  558. /**
  559. * whether power key is tied to GND
  560. */
  561. #cmakedefine CONFIG_PWRKEY_TIE_GND
  562. /**
  563. * whether power key can wakeup psm mode
  564. */
  565. #cmakedefine CONFIG_PWRKEY_WAKEUP_PSM
  566. /**
  567. * whether power key can power up after shutdown (8910)
  568. */
  569. #cmakedefine CONFIG_PWRKEY_POWERUP
  570. /**
  571. * whether wakeup pin (psm_ext_int) can power up after shutdown
  572. */
  573. #cmakedefine CONFIG_WAKEUP_PIN_POWERUP
  574. /**
  575. * whether charger can power up after shutdown
  576. */
  577. #cmakedefine CONFIG_CHARGER_POWERUP
  578. /**
  579. * whether normal power off
  580. */
  581. #cmakedefine CONFIG_SHUTDOWN_NORMAL_POWER_OFF
  582. /**
  583. * whether there is external flash on board
  584. */
  585. #cmakedefine CONFIG_BOARD_WITH_EXT_FLASH
  586. /**
  587. * external flash size
  588. */
  589. #cmakedefine CONFIG_BOARD_EXT_FLASH_SIZE @CONFIG_BOARD_EXT_FLASH_SIZE@
  590. /**
  591. * external flash frequency
  592. */
  593. #cmakedefine CONFIG_BOARD_EXT_FLASH_FREQ @CONFIG_BOARD_EXT_FLASH_FREQ@
  594. /**
  595. * whether external flash working in quad mode
  596. */
  597. #cmakedefine CONFIG_BOARD_EXT_FLASH_QUAD_MODE
  598. /**
  599. * external flash controller sample delay
  600. */
  601. #cmakedefine CONFIG_BOARD_EXT_FLASH_SAMPLE_DELAY @CONFIG_BOARD_EXT_FLASH_SAMPLE_DELAY@
  602. /**
  603. * external flash controller clk divider
  604. */
  605. #cmakedefine CONFIG_BOARD_EXT_FLASH_CLK_DIVIDER @CONFIG_BOARD_EXT_FLASH_CLK_DIVIDER@
  606. /**
  607. * external flash is connected to gpio 20-25 (8811)
  608. */
  609. #cmakedefine CONFIG_BOARD_EXT_FLASH_GPIO20
  610. /**
  611. * whether application will split into external flash
  612. */
  613. #cmakedefine CONFIG_APP_FLASH2_ENABLED
  614. /**
  615. * whether open application will split into external flash -----quectel update
  616. */
  617. #cmakedefine CONFIG_APPIMG_FLASH2_ENABLED
  618. /**
  619. * /ext mount start address -----quectel update
  620. */
  621. #cmakedefine CONFIG_EFS_SYS_FLASH2_ADDRESS @CONFIG_EFS_SYS_FLASH2_ADDRESS@
  622. /**
  623. * /ext mount reserved size on ext NOR flash -----quectel update
  624. */
  625. #cmakedefine CONFIG_EFS_SYS_FLASH2_SIZE @CONFIG_EFS_SYS_FLASH2_SIZE@
  626. /**
  627. * whether there are file system on external flash
  628. */
  629. #cmakedefine CONFIG_FS_EXT_ENABLED
  630. /**
  631. * whether support ims delta nv
  632. */
  633. #cmakedefine CONFIG_SUPPORT_IMS_DELTA_NV
  634. /**
  635. * whether support inner delta nv
  636. */
  637. #cmakedefine CONFIG_SUPPORT_INNER_DELTA_NV
  638. /**
  639. * whether gpio is used for Vbat_RF switch
  640. */
  641. #cmakedefine CONFIG_GPIO_USED_FOR_VBAT_RF_SWITCH
  642. /**
  643. * Used gpio x as Vbat_RF swtich
  644. */
  645. #cmakedefine CONFIG_GPIO_X_USED_FOR_VBAT_RF @CONFIG_GPIO_X_USED_FOR_VBAT_RF@
  646. /**
  647. * dcdc LV support (8811)
  648. */
  649. #cmakedefine CONFIG_LV_SUPPORT
  650. /**
  651. * GPIO to indicate PM2 (8811)
  652. */
  653. #cmakedefine CONFIG_PM2_IND_GPIO @CONFIG_PM2_IND_GPIO@
  654. /**
  655. * GPIO to indicate PM3 (8811)
  656. */
  657. #cmakedefine CONFIG_PM3_IND_GPIO @CONFIG_PM3_IND_GPIO@
  658. /**
  659. * sys_wdt open -----quectel update
  660. */
  661. #cmakedefine CONFIG_SYS_WDT_ENABLE
  662. /**
  663. * sys_wdt timeout
  664. */
  665. #cmakedefine CONFIG_SYS_WDT_TIMEOUT @CONFIG_SYS_WDT_TIMEOUT@
  666. /**
  667. * sys_wdt feed interval
  668. */
  669. #cmakedefine CONFIG_SYS_WDT_FEED_INTERVAL @CONFIG_SYS_WDT_FEED_INTERVAL@
  670. /**
  671. * unity output to uart
  672. */
  673. #cmakedefine CONFIG_UNITY_OUTPUT_UART
  674. /**
  675. * unity unit test uart
  676. */
  677. #cmakedefine CONFIG_UNITY_UART_NAME @CONFIG_UNITY_UART_NAME@
  678. /**
  679. * unity unit test uart baud rate
  680. */
  681. #cmakedefine CONFIG_UNITY_UART_BAUD @CONFIG_UNITY_UART_BAUD@
  682. /**
  683. * tfm support
  684. */
  685. #cmakedefine CONFIG_TFM_SUPPORT @CONFIG_TFM_SUPPORT@
  686. /**
  687. * tfm test support
  688. */
  689. #cmakedefine CONFIG_TFM_TEST_SUPPORT @CONFIG_TFM_TEST_SUPPORT@
  690. #cmakedefine CONFIG_CP_SIGN_ENABLE
  691. /**
  692. * ap must wakeup before bt sleeptime expire
  693. */
  694. #cmakedefine CONFIG_AP_SLEEP_SYNC_WITH_BT_SLEEPTIME
  695. /**
  696. * whether to identify 26M/32k clock by gpio and RTC mode
  697. */
  698. #cmakedefine CONFIG_IDENTIFY_CLOCK
  699. /**
  700. * trace sn space size, for sharing with tfm (8811)
  701. */
  702. #cmakedefine CONFIG_TRACE_SN_SIZE @CONFIG_TRACE_SN_SIZE@
  703. /**
  704. * trace sn address, for sharing with tfm (8811)
  705. */
  706. #cmakedefine CONFIG_TRACE_SN_START_ADR @CONFIG_TRACE_SN_START_ADR@
  707. /**
  708. * whether use 8850 V3 board
  709. */
  710. #cmakedefine CONFIG_CHIP_8850_V3_BOARD
  711. #endif