Kconfig 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783
  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. menu "Chip configuration"
  12. choice
  13. prompt "CHIP"
  14. optional
  15. config CHIP_8910_NOR16M_DDR32M
  16. bool "8910A, NOR flash 16M, DDR 32M"
  17. imply SOC_8910
  18. imply NOR_FLASH
  19. imply USE_DDR
  20. imply FLASH_16M
  21. imply RAM_32M
  22. config CHIP_8910_NOR16M_DDR64M
  23. bool "8910B, NOR flash 16M, DDR 64M"
  24. imply SOC_8910
  25. imply NOR_FLASH
  26. imply USE_DDR
  27. imply FLASH_16M
  28. imply RAM_64M
  29. config CHIP_8910_NOR16M_PSRAM16M
  30. bool "8910C, NOR flash 16M, PSRAM 16M"
  31. imply SOC_8910
  32. imply NOR_FLASH
  33. imply USE_PSRAM
  34. imply FLASH_16M
  35. imply RAM_16M
  36. config CHIP_8910_NOR8M_PSRAM16M
  37. bool "8910DM, NOR flash 8M, PSRAM 16M"
  38. imply SOC_8910
  39. imply NOR_FLASH
  40. imply USE_PSRAM
  41. imply FLASH_8M
  42. imply RAM_16M
  43. config CHIP_8910_NOR16M8M_DDR32M
  44. bool "8910GF, NOR flash 16M+8M, DDR32M"
  45. imply SOC_8910
  46. imply NOR_FLASH
  47. imply USE_DDR
  48. imply FLASH_16M
  49. imply RAM_32M
  50. config CHIP_8850_NOR4M_PSRAM8M
  51. bool "8850CM, NOR flash 4M, PSRAM 8M"
  52. imply SOC_8850
  53. imply NOR_FLASH
  54. imply USE_PSRAM
  55. imply FLASH_4M
  56. imply RAM_8M
  57. config CHIP_8850_NOR4M_PSRAM16M
  58. bool "8850CM, NOR flash 4M, PSRAM 16M"
  59. imply SOC_8850
  60. imply NOR_FLASH
  61. imply USE_PSRAM
  62. imply FLASH_4M
  63. imply RAM_16M
  64. config CHIP_8850_NOR8M_PSRAM8M
  65. bool "8850CM, NOR flash 8M, PSRAM 8M"
  66. imply SOC_8850
  67. imply NOR_FLASH
  68. imply USE_PSRAM
  69. imply FLASH_8M
  70. imply RAM_8M
  71. config CHIP_8850_NOR8M_PSRAM16M
  72. bool "8850CM, NOR flash 8M, PSRAM 16M"
  73. imply SOC_8850
  74. imply NOR_FLASH
  75. imply USE_PSRAM
  76. imply FLASH_8M
  77. imply RAM_16M
  78. config CHIP_8850_NOR8M_PSRAM16M_TZ
  79. bool "8850CM, NOR flash 8M, PSRAM 16M"
  80. imply SOC_8850
  81. imply NOR_FLASH
  82. imply USE_PSRAM
  83. imply FLASH_8M
  84. imply RAM_16M
  85. imply USE_TRUSTY
  86. config CHIP_8850_NOR16M_PSRAM16M
  87. bool "8850CM, NOR flash 16M, PSRAM 16M"
  88. imply SOC_8850
  89. imply NOR_FLASH
  90. imply USE_PSRAM
  91. imply FLASH_16M
  92. imply RAM_16M
  93. imply USE_TRUSTY
  94. config CHIP_8811CD
  95. bool "8811CD, NOR flash 2M, no PSRAM"
  96. imply SOC_8811
  97. imply NOR_FLASH
  98. imply FLASH_2M
  99. config CHIP_8811JD
  100. bool "8811JD, NOR flash 4M, PSRAM 4M"
  101. imply SOC_8811
  102. imply NOR_FLASH
  103. imply FLASH_4M
  104. imply USE_PSRAM
  105. imply OPI_PSRAM
  106. imply RAM_4M
  107. config CHIP_8811JD_1618
  108. bool "8811JD_1618, NOR flash 4M, no PSRAM"
  109. imply SOC_8811
  110. imply NOR_FLASH
  111. imply FLASH_4M
  112. config CHIP_8811JD_1618_PSRAM
  113. bool "8811JD_1618_PSRAM, NOR flash 4M, PSRAM 4M"
  114. imply SOC_8811
  115. imply NOR_FLASH
  116. imply FLASH_4M
  117. imply USE_PSRAM
  118. imply RAM_4M
  119. config CHIP_8850_FPGA
  120. bool "8850 FPGA"
  121. imply SOC_8850
  122. imply RUN_ON_FPGA
  123. imply NOR_FLASH
  124. imply USE_PSRAM
  125. imply FLASH_8M
  126. imply RAM_16M
  127. endchoice
  128. config SOC
  129. string
  130. default "8910" if SOC_8910
  131. default "8811" if SOC_8811
  132. default "8850" if SOC_8850
  133. config RUN_ON_FPGA
  134. bool
  135. config SOC_8910
  136. bool
  137. imply CPU_ARM
  138. imply CPU_ARMV7A
  139. imply CPU_ARM_CA5
  140. imply HAVE_MMU
  141. imply HAVE_LZMA
  142. imply HAVE_SPINLOCK
  143. config SOC_8811
  144. bool
  145. imply CPU_ARM
  146. imply CPU_ARMV8M
  147. imply CPU_ARM_CM33F
  148. config SOC_8850
  149. bool
  150. imply CPU_ARM
  151. imply CPU_ARMV7A
  152. imply CPU_ARM_CA5
  153. imply HAVE_MMU
  154. imply HAVE_LZMA
  155. imply HAVE_SPINLOCK
  156. config CPU_ARM
  157. bool
  158. config CPU_ARMV7A
  159. bool
  160. config CPU_ARMV7M
  161. bool
  162. config CPU_ARMV8M
  163. bool
  164. config CPU_ARM_CA5
  165. bool
  166. config CPU_ARM_CM4F
  167. bool
  168. config CPU_ARM_CM33F
  169. bool
  170. config HAVE_MMU
  171. bool
  172. config HAVE_LZMA
  173. bool
  174. config HAVE_SPINLOCK
  175. bool
  176. config NOR_FLASH
  177. bool
  178. config NAND_FLASH
  179. bool
  180. config USE_PSRAM
  181. bool
  182. imply HAVE_EXT_RAM
  183. config QPI_PSRAM
  184. bool
  185. config OPI_PSRAM
  186. bool
  187. config USE_DDR
  188. bool
  189. imply HAVE_EXT_RAM
  190. config HAVE_EXT_RAM
  191. bool
  192. config RAM_4M
  193. bool
  194. config RAM_8M
  195. bool
  196. config RAM_16M
  197. bool
  198. config RAM_32M
  199. bool
  200. config RAM_64M
  201. bool
  202. config FLASH_2M
  203. bool
  204. config FLASH_4M
  205. bool
  206. config FLASH_8M
  207. bool
  208. config FLASH_16M
  209. bool
  210. config FLASH_SIZE
  211. hex
  212. default 0x200000 if FLASH_2M
  213. default 0x400000 if FLASH_4M
  214. default 0x800000 if FLASH_8M
  215. default 0x1000000 if FLASH_16M
  216. config RAM_SIZE
  217. hex
  218. default 0x400000 if RAM_4M
  219. default 0x800000 if RAM_8M
  220. default 0x1000000 if RAM_16M
  221. default 0x2000000 if RAM_32M
  222. default 0x4000000 if RAM_64M
  223. config USE_TRUSTY
  224. bool
  225. if SOC_8811
  226. config 8811_BUILD_NBROM
  227. bool "Build NBROM from source codes"
  228. default n
  229. help
  230. When enabled, NBROM will be built from source codes. In
  231. production, the prebuilt elf matching the chip will be used.
  232. endif
  233. if SOC_8910
  234. config FLASH_LP_POWER_DOWN
  235. bool "Power down flash in low power mode"
  236. default y
  237. help
  238. Power down flash in low power mode.
  239. config PSRAM_LP_HALF_SLEEP
  240. bool "PSRAM enter half sleep in low power mode"
  241. default n
  242. help
  243. PSRAM enter half sleep in low power mode.
  244. config CPBIN_SIGCHECK
  245. bool "Whether to check cp images signature"
  246. default y
  247. help
  248. When enabled, cp code bins signature will be checked.
  249. endif
  250. if SOC_8850
  251. config PSRAM_LP_HALF_SLEEP
  252. bool "PSRAM enter half sleep in low power mode"
  253. default y
  254. help
  255. PSRAM enter half sleep in low power mode.
  256. config FLASH_LP_POWER_DOWN
  257. bool "Power down flash in low power mode"
  258. default y
  259. help
  260. Power down flash in low power mode.
  261. config SHAREMEM_EMMCDDR_INFO
  262. bool "suppor flash and psram infomation"
  263. default y
  264. help
  265. load flash and psram infomation to share memory
  266. endif
  267. menu "Frequency"
  268. if SOC_8910
  269. config DEFAULT_CPUPLL_FREQ
  270. int "CPUPLL frequency"
  271. default 1000000000
  272. config DEFAULT_MEMPLL_FREQ
  273. int "MEMPLL frequency"
  274. default 800000000
  275. config DEFAULT_MEMBUS_FREQ
  276. int "default PSRAM/DDR frequency"
  277. default 200000000
  278. config DEFAULT_CPU_FREQ
  279. int "default CPU frequency"
  280. default 500000000
  281. config DEFAULT_SYSAXI_FREQ
  282. int "default sysaxi frequency"
  283. default 400000000
  284. config MAX_SYSAXI_FREQ
  285. int "maximum sysaxi frequency"
  286. default 400000000
  287. config DEFAULT_SYSAHB_FREQ
  288. int "default sysahb frequency"
  289. default 200000000
  290. config DEFAULT_SPIFLASH_CTRL_FREQ
  291. int "FLASH controller frequency"
  292. default 200000000
  293. config DEFAULT_SPIFLASH_DEV_FREQ
  294. int "FLASH device frequency"
  295. default 200000000
  296. config DEFAULT_SPIFLASH_INTF_FREQ
  297. int "FLASH interface frequency"
  298. default 100000000
  299. endif
  300. if SOC_8811
  301. config DEFAULT_MCUPLL_FREQ
  302. int "MCU PLL frequency"
  303. default 525000000
  304. config DEFAULT_SYS_CLK_FREQ
  305. int "default sys_clk frequency"
  306. default 262500000
  307. help
  308. It is divided from MCUPLL. Only limited divider can be supported.
  309. config MAX_SYS_CLK_FREQ
  310. int "maximum sys_clk frequency"
  311. default 262500000
  312. help
  313. The maximum sys_clk frequency. It will be used to check request
  314. sys_clk frequency.
  315. config WFI_SLOW_SYS_CLK_FREQ
  316. int "sys_clk slow frequency in WFI"
  317. default 26000000
  318. help
  319. In WFI and it is permitted to decrease clk_sys, clk_sys frequency
  320. will be decreased.
  321. config DEFAULT_SPIFLASH_INTF_FREQ
  322. int "FLASH frequency"
  323. default 105000000
  324. help
  325. It is divided from MCUPLL. Only limited divider can be supported.
  326. It is FLASH frequency. When flash controller clk_divider is 2,
  327. the clock after cfg_clk_spiflash should be 2x of this frequency.
  328. config DEFAULT_SPIFLASH_EXT_INTF_FREQ
  329. int "External FLASH frequency"
  330. default 105000000
  331. help
  332. It is divided from MCUPLL. Only limited divider can be supported.
  333. It is FLASH frequency. When flash controller clk_divider is 2,
  334. the clock after cfg_clk_spiflash should be 2x of this frequency.
  335. config DEFAULT_PSRAM_INTF_FREQ
  336. int "PSRAM frequency"
  337. default 175000000
  338. help
  339. It is divided from MCUPLL. Only limited divider can be supported.
  340. It is PSRAM frequency. The clock after cfg_clk_psram should be 2x
  341. of this frequency.
  342. config DEFAULT_NBIOT_FAST_FREQ
  343. int "clk_nbiot_fast frequency"
  344. default 175000000
  345. config RC26M_CALIB_FIXED_FREQ
  346. int "rc26m calib fixed frequency"
  347. default 14745600
  348. help
  349. When it is not 0, rc26m_calib will be fixed frequency. This
  350. frequency can't be larger than the rc26m real frequency.
  351. When it is 0, rc26m_calib is not fixed frequency. Rather, it
  352. will be 80% of the initial measured rc26m real frequency.
  353. config PMIC_TIMER_FREQ
  354. int "pmic timer frequency"
  355. default 1024
  356. help
  357. The clock source of PMIC timer should select xtal 32K. The timer
  358. will use lower frequency to save power. This frequency will be
  359. used for RTC and alarm.
  360. config SHAREMEM_EMMCDDR_INFO
  361. bool "suppor flash and psram infomation"
  362. default y
  363. help
  364. load flash and psram infomation to share memory
  365. endif
  366. if SOC_8850
  367. config DEFAULT_APPLL_FREQ
  368. int "APPLL frequency"
  369. default 1000000000
  370. config DEFAULT_APA5_FREQ
  371. int "APA5 frequency"
  372. default 500000000
  373. config RC26M_CALIB_FIXED_FREQ
  374. int "rc26m calib fixed frequency"
  375. default 14745600
  376. help
  377. When it is not 0, rc26m_calib will be fixed frequency. This
  378. frequency can't be larger than the rc26m real frequency.
  379. When it is 0, rc26m_calib is not fixed frequency. Rather, it
  380. will be 80% of the initial measured rc26m real frequency.
  381. config DEFAULT_AP_BUS_FREQ
  382. int "default AP_BUS frequency"
  383. default 250000000
  384. help
  385. It is divided from APA5. Only limited divider can be supported.
  386. config MAX_AP_BUS_FREQ
  387. int "maximum ap_bus frequency"
  388. default 250000000
  389. help
  390. The maximum ap_bus frequency. It will be used to check request
  391. ap_bus frequency.
  392. config DEFAULT_SYSAHB_FREQ
  393. int "default sysahb frequency"
  394. default 200000000
  395. endif
  396. endmenu
  397. menu "RAM layout"
  398. if SOC_8910
  399. config CP_RAM_SIZE
  400. hex "CP RAM size"
  401. help
  402. This is the size for CP, including memory list and shared memory.
  403. There may exist multiple configuration for CP RAM size, so there
  404. are no default value.
  405. config APP_FLASHIMG_RAM_SIZE
  406. hex "Reserved RAM size for application image from flash"
  407. default 0x0 if !APPIMG_LOAD_FLASH
  408. default 0x10000
  409. help
  410. It will be located from the end of application RAM.
  411. config APP_FILEIMG_RAM_SIZE
  412. hex "Reserved RAM size for application image from file"
  413. default 0x0 if !APPIMG_LOAD_FILE
  414. default 0x40000
  415. help
  416. It will be located from the end of reserved RAM for application
  417. image from FLASH.
  418. config APP_TRUSTZONE_RAM_SIZE
  419. hex "Reserved RAM size for trust zone firmware"
  420. default 0x0 if !TRUSTZONE_SUPPORT
  421. default 0x110000
  422. help
  423. Reserved RAM for trust zone firmware
  424. config APP_BTFW_RAM_SIZE
  425. hex "Reserved RAM size for BT controller"
  426. default 0x0 if !BT_NEED_FIRMWARE
  427. default 0x40000
  428. help
  429. Reserved RAM for BT firmware.
  430. endif
  431. if SOC_8811
  432. config TFM_SRAM_SIZE
  433. hex "TFM reserved SRAM size"
  434. default 0x0
  435. help
  436. When TFM is not enabled, usually application SRAM will start from
  437. the beginning. When TFM is enabled, TFM SRAM will be located at
  438. the beginning.
  439. config OPENCPU_SRAM_SIZE
  440. hex "Reserved SRAM size for openCPU image"
  441. default 0x0 if !OPENCPU_ENABLED
  442. default 0x10000
  443. help
  444. It will be located from the end of application SRAM.
  445. config APP_FLASHIMG_RAM_SIZE
  446. hex "Reserved RAM size for application image from flash"
  447. default 0x0 if !APPIMG_LOAD_FLASH
  448. default 0x10000
  449. help
  450. It will be located from the end of application RAM.
  451. config APP_FILEIMG_RAM_SIZE
  452. hex "Reserved RAM size for application image from file"
  453. default 0x0 if !APPIMG_LOAD_FILE
  454. default 0x40000
  455. help
  456. It will be located from the end of reserved RAM for application
  457. image from FLASH.
  458. endif
  459. if SOC_8850
  460. config CP_RAM_SIZE
  461. hex "CP RAM size"
  462. help
  463. This is the size for CP, including memory list and shared memory.
  464. There may exist multiple configuration for CP RAM size, so there
  465. are no default value.
  466. config APP_FLASHIMG_RAM_SIZE
  467. hex "Reserved RAM size for application image from flash"
  468. default 0x0 if !APPIMG_LOAD_FLASH
  469. default 0x10000
  470. help
  471. It will be located from the end of application RAM.
  472. config APP2_FLASHIMG_RAM_SIZE #quectel update
  473. hex "Reserved RAM size for application2 image from flash"
  474. default 0x0 if !APPIMG_LOAD_FLASH
  475. default 0x0 #0x10000, need to modify the size as required
  476. help
  477. It will be located from the end of application RAM.
  478. config APP_FILEIMG_RAM_SIZE
  479. hex "Reserved RAM size for application image from file"
  480. default 0x0 if !APPIMG_LOAD_FILE
  481. default 0x10000
  482. help
  483. It will be located from the end of reserved RAM for application
  484. image from FLASH.
  485. config APP2_FILEIMG_RAM_SIZE #quectel update
  486. hex "Reserved RAM size for application2 image from file"
  487. default 0x0 if !APPIMG_LOAD_FILE
  488. default 0x0 #0x10000, need to modify the size as required
  489. help
  490. It will be located from the end of reserved RAM for application
  491. image from FLASH.
  492. config GNSS_RAM_SIZE
  493. hex "Reserved RAM size for GNSS"
  494. default 0x0 if !SUPPORT_GNSS
  495. default 0x38000
  496. help
  497. Reserved RAM for gnss zone
  498. config APP_TRUSTZONE_SML_RAM_SIZE
  499. hex "Reserved RAM size for trust zone sml firmware"
  500. default 0x0 if !TRUSTZONE_SUPPORT
  501. default 0x40000
  502. help
  503. Reserved RAM for trust zone sml firmware
  504. config APP_TRUSTZONE_TOS_RAM_SIZE
  505. hex "Reserved RAM size for trust zone tos firmware"
  506. default 0x0 if !TRUSTZONE_SUPPORT
  507. default 0x300000
  508. help
  509. Reserved RAM for trust zone tos firmware
  510. config CHIP_8850_V3_BOARD
  511. bool "8850 V3 board"
  512. default n
  513. help
  514. Whether board is 8850 V3
  515. endif
  516. config BSCORE_ENABLE
  517. bool "enable blue screen backup"
  518. default y
  519. help
  520. When enabled, a block of memory will be reserved for blue screen
  521. backup. At reset, this block of memory can be saved to file system or
  522. upload to server through network, for basic blue screen analysis.
  523. if BSCORE_ENABLE
  524. config BSCORE_ON_SRAM
  525. bool "blue screen backup on sram"
  526. default y if SOC_8811
  527. default n
  528. help
  529. Whether blue screen backup is located on sram. In this case, the reset
  530. method should take care not to power off sram during reset.
  531. config BSCORE_SIZE
  532. hex "size for blue screen backup"
  533. default 0x2000 if SOC_8910
  534. default 0x2000 if SOC_8850
  535. default 0x800 if SOC_8811
  536. help
  537. When it is not zero, a block of memory will be reserved for blue screen
  538. backup. At reset, this block of memory can be saved to file system or
  539. upload to server through network, for basic blue screen analysis.
  540. config BSCORE_STACK_SIZE
  541. hex "stack size in blue screen backup"
  542. default 0xE00 if SOC_8910
  543. default 0xE00 if SOC_8850
  544. default 0x400 if SOC_8811
  545. help
  546. In blue screen backup, the stack will be saved. This is the total saved
  547. stack size, even if BSCORE_STACK_EXTRA is not 0.
  548. if SOC_8910 || SOC_8850
  549. config BSCORE_CP_STACK_SIZE
  550. hex "cp stack size in blue screen backup"
  551. default 0x600
  552. help
  553. In blue screen backup, the stack will be saved. This is the total saved
  554. stack size, even if BSCORE_STACK_EXTRA is not 0.
  555. endif
  556. config BSCORE_STACK_EXTRA
  557. hex "extra stack size in blue screen backup"
  558. depends on BSCORE_SIZE != 0x0
  559. default 0x200 if SOC_8910
  560. default 0x200 if SOC_8850
  561. default 0x80 if SOC_8811
  562. help
  563. At save stack in blue screen backup, extra memory may be saved.
  564. config BSCORE_PROFILE_SIZE
  565. hex "profile size in blue screen backup"
  566. depends on BSCORE_SIZE != 0x0
  567. default 0x400 if SOC_8910
  568. default 0x400 if SOC_8850
  569. default 0x100 if SOC_8811
  570. help
  571. Size of latest profile data in blue screen backup.
  572. endif
  573. endmenu
  574. menu "Compile options"
  575. config ENABLE_GCC_LTO
  576. bool "Enable GCC LTO"
  577. default n
  578. help
  579. GCC LTO will optimize at link time. It is possible to generate faster
  580. and smaller codes. However, it will increase building time, and makes
  581. debugging more difficult. It should be enabled only when code size
  582. is really an issue, and thorough testing is needed.
  583. endmenu
  584. endmenu
  585. menu "Board configuration"
  586. config BOARD_ENTER_CALIB_BY_GPIO
  587. bool "enter calibration mode by detect GPIO"
  588. depends on SOC_8910
  589. default n
  590. help
  591. When enabled, GPIO will be checked at the beginning of system boot.
  592. System will enter calibration mode when the specified GPIO is high.
  593. The standard method to enter calibration mode is SIMBA enter mode
  594. feature. So, this feature is not enabled by default.
  595. config BOARD_ENTER_CALIB_GPIO
  596. int "enter calibration mode GPIO number"
  597. depends on BOARD_ENTER_CALIB_BY_GPIO
  598. default 13
  599. help
  600. When the feature of detect GPIO to enter calibration mode is enabled,
  601. this configures the GPIO.
  602. config BOARD_SUPPORT_SIM1_DETECT
  603. bool "sim 1 hot plug support"
  604. default n
  605. help
  606. Then board support sim hot plug detect by GPIO.
  607. config BOARD_SIM1_DETECT_GPIO
  608. int "sim 1 detect GPIO number"
  609. depends on BOARD_SUPPORT_SIM1_DETECT
  610. default 4
  611. help
  612. Then GPIO to use to detect SIM1 hot plug.
  613. config BOARD_SUPPORT_SIM2_DETECT
  614. bool "sim 2 hot plug support"
  615. default n
  616. help
  617. Then board support sim hot plug detect by GPIO.
  618. config BOARD_SIM2_DETECT_GPIO
  619. int "sim 2 detect GPIO number"
  620. depends on BOARD_SUPPORT_SIM2_DETECT
  621. help
  622. Then GPIO to use to detect SIM2 hot plug.
  623. config BOARD_KPLED_USED_FOR_RF_SWITCH
  624. bool "pmic kpled used for rf switch"
  625. default n
  626. help
  627. Then board set Kpled used for rf switch.
  628. config BOARD_WITH_EXT_FLASH
  629. bool "external flash on board"
  630. default n
  631. help
  632. Whether there are external flash on board.
  633. if BOARD_WITH_EXT_FLASH
  634. config BOARD_EXT_FLASH_SIZE
  635. hex "external flash size"
  636. config BOARD_EXT_FLASH_FREQ
  637. int "external flash frequency"
  638. default 52000000 if SOC_8811
  639. default 83000000 if SOC_8910
  640. default 83000000 if SOC_8850
  641. help
  642. External flash frequency
  643. config BOARD_EXT_FLASH_QUAD_MODE
  644. bool "external flash in quad mode"
  645. default y
  646. config BOARD_EXT_FLASH_SAMPLE_DELAY
  647. int "external flash controller sample delay"
  648. default 1
  649. config BOARD_EXT_FLASH_CLK_DIVIDER
  650. int "external flash controller clk divider"
  651. default 2
  652. if SOC_8811
  653. choice
  654. prompt "external flash io"
  655. optional
  656. config BOARD_EXT_FLASH_GPIO20
  657. bool "gpio 20/21/22/23/24/25"
  658. help
  659. External flash is connected to gpio 20-25.
  660. endchoice
  661. endif
  662. endif
  663. config CP_SIGN_ENABLE
  664. bool "support cp sign & check"
  665. default y if CONFIG_SOC_8850
  666. default n
  667. config IDENTIFY_CLOCK
  668. bool "identify clock by GPIO and RTC mode"
  669. default y if SOC_8850
  670. default n
  671. help
  672. Identify hardware clock use GPIO and RTC mode, it's better to choose
  673. GPIO in the same power domain.
  674. endmenu