Kconfig 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586
  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 "Driver configuration"
  12. config USB_HOST_SUPPORT
  13. bool "support usb host function"
  14. # default y if (SOC_8850) && (!FLASH_4M) adjusted by quectel kevin.wang === usb host功能暂未开发
  15. default n
  16. help
  17. when is defined, will support usb host function.
  18. config USB_DEVICE_SUPPORT
  19. bool "support usb device function"
  20. default y if (SOC_8910) || ((SOC_8850) && (!FLASH_4M))
  21. default n
  22. help
  23. when is defined, will support usb host function.
  24. config DEBUGHOST_RX_BUF_SIZE
  25. hex "Debughost rx buffer size"
  26. default 0x200
  27. help
  28. Debughost RX buffer size.
  29. config HOST_CMD_ENGINE_MAX_PACKET_SIZE
  30. hex "Host command engine packet size"
  31. default 0x2020
  32. help
  33. The maximum packet size of host command engine.
  34. config UART_AUTOMODE_DEFAULT_BAUD
  35. int "Default baud rate of adaptive mode"
  36. default 115200
  37. help
  38. It is suggested to set a baud rate when UART in adaptive baud rate mode.
  39. UART Tx can send data througt the baud rate.
  40. config SUPPORT_GENERAL_SPI
  41. bool "support general spi"
  42. default n if SOC_8910
  43. help
  44. enable general spi
  45. config SUPPORT_BATTERY_CHARGER
  46. bool "support battery charge"
  47. default n if SOC_8811
  48. default y
  49. help
  50. enable charger.
  51. config WCN_WIFI_SCAN_SUPPORT
  52. bool "wcn wifi scan support"
  53. default y if SOC_8910
  54. default n
  55. config USB_SUPPORT
  56. bool "support usb"
  57. default y if SOC_8910
  58. default y if SOC_8850
  59. default n
  60. if USB_SUPPORT
  61. config USB_CONNECT_TIMEOUT
  62. int "usb connect timeout"
  63. default 10000
  64. help
  65. After charger on interrupt triggered, we should enable the usb controller,
  66. if there is not a usb host but a pure charger, we should close the controller
  67. to save power.
  68. The software judge there is a pure charger or usb host by set address command,
  69. if more than this <USB_CONNECT_TIMEOUT> milliseconds did not receive set address,
  70. the software close the usb controller.
  71. config USB_DETECT_DEBOUNCE_TIME
  72. int "usb debounce time in milliseconds before eumerating"
  73. default 600
  74. help
  75. Debuouce a little milliseconds before start enumerating.
  76. #quectel update: change default value 0xE0 to 0x1E0 enable usb remote wakeup (SPCSS01043651)
  77. config USB_DEVICE_CONTROLLER_FEATURE
  78. hex "udc feature"
  79. default 0x1E0
  80. help
  81. Lower 8 bits for config descriptor -> bmAttributes, higher are software defined
  82. #quectel update: first byte set as 0x02
  83. config USB_ETHER_HOST_MAC
  84. string "usb ether host mac address"
  85. default "\\x02\\x4b\\xb3\\xb9\\xeb\\xe5" #quectel update to 0x02
  86. config USB_ETHER_DEV_MAC
  87. string "usb ether dev mac address"
  88. default "\\xfa\\x32\\x47\\x15\\xe1\\x88"
  89. #quectel update: default y. STUNISOC8850-311:此处必须设置为Y才能在linux下使用rndis正常上网.
  90. config USB_ETHER_DYNAMIC_HOST_MAC_SUPPORT
  91. bool "usb ether support dynamic host mac"
  92. default y
  93. endif
  94. if SOC_8850
  95. config 8850_FPGA_BOARD
  96. bool "support 8850 fpga board"
  97. default n
  98. help
  99. open some config for 8850 fpga debug
  100. endif
  101. if SOC_8850
  102. config 8850_BM
  103. bool "support 8850 BM board"
  104. default n
  105. help
  106. open some config for 8850 BM
  107. endif
  108. config CAMERA_SUPPORT
  109. bool "support camera"
  110. default y if SOC_8910
  111. default n
  112. help
  113. Whether CAMERA is supported
  114. if CAMERA_SUPPORT
  115. config CAMERA_SINGLE_BUFFER
  116. bool "camera single buffer"
  117. default n
  118. help
  119. nable sinable buffer,mipi camera gc2145 used.
  120. config CAMERA_GC032A_SUPPORT
  121. bool "select camera gc032a"
  122. default y
  123. help
  124. support spi camera sensor gc032a.
  125. config CAMERA_GC0310_SUPPORT
  126. bool "select camera gc0310"
  127. default n
  128. help
  129. support camera sensor gc0310.
  130. config CAMERA_BF30A2_SUPPORT
  131. bool "select camera bf30a2"
  132. default n
  133. help
  134. support spi camera sensor bf30a2.
  135. config CAMERA_GC2145_SUPPORT
  136. bool "select camera gc2145"
  137. default n
  138. help
  139. support mipi camera sensor gc2145.
  140. config CAMERA_GC0406_SUPPORT
  141. bool "select camera gc0406"
  142. default n
  143. help
  144. support mipi raw8 camera sensor gc0406.
  145. if SOC_8850
  146. choice
  147. prompt "CAM_MCLK_CONFIG"
  148. default 8850_CAM_MCLK_SRC5_FREQ500M
  149. config 8850_CAM_MCLK_SRC2_FREQ78M
  150. bool "CAM_MCLK_SRC_2,CAM_MCLK_SRC_FREQ_78M"
  151. imply CAM_MCLK_SRC_2
  152. imply CAM_MCLK_SRC_FREQ_78M
  153. config 8850_CAM_MCLK_SRC3_FREQ57M
  154. bool "CAM_MCLK_SRC_3,CAM_MCLK_SRC_FREQ_57M"
  155. imply CAM_MCLK_SRC_3
  156. imply CAM_MCLK_SRC_FREQ_57M
  157. config 8850_CAM_MCLK_SRC4_FREQ62.5M
  158. bool "CAM_MCLK_SRC_4,CAM_MCLK_SRC_FREQ_62.5M"
  159. imply CAM_MCLK_SRC_4
  160. imply CAM_MCLK_SRC_FREQ_62.5M
  161. config 8850_CAM_MCLK_SRC5_FREQ500M
  162. bool "CAM_MCLK_SRC_5,CAM_MCLK_SRC_FREQ_500M"
  163. imply CAM_MCLK_SRC_5
  164. imply CAM_MCLK_SRC_FREQ_500M
  165. endchoice
  166. choice
  167. prompt "CAM_PIX_CLK_CONFIG"
  168. default 8850_CAM_PCLK_SRC5_FREQ500M
  169. config 8850_CAM_PCLK_SRC2_FREQ78M
  170. bool "CAM_PCLK_SRC_2,CAM_PCLK_SRC_FREQ_78M"
  171. imply CAM_PCLK_SRC_2
  172. imply CAM_PCLK_SRC_FREQ_78M
  173. config 8850_CAM_PCLK_SRC3_FREQ57M
  174. bool "CAM_PCLK_SRC_3,CAM_PCLK_SRC_FREQ_57M"
  175. imply CAM_PCLK_SRC_3
  176. imply CAM_PCLK_SRC_FREQ_57M
  177. config 8850_CAM_PCLK_SRC4_FREQ62M
  178. bool "CAM_PCLK_SRC_4,CAM_PCLK_SRC_FREQ_62M"
  179. imply CAM_PCLK_SRC_4
  180. imply CAM_PCLK_SRC_FREQ_62M
  181. config 8850_CAM_PCLK_SRC5_FREQ500M
  182. bool "CAM_PCLK_SRC_5,CAM_PCLK_SRC_FREQ_500M"
  183. imply CAM_PCLK_SRC_5
  184. imply CAM_PCLK_SRC_FREQ_500M
  185. endchoice
  186. choice
  187. prompt "CAM_CSI_CLK_CONFIG"
  188. default 8850_CAM_CCLK_SRC5_FREQ500M
  189. config 8850_CAM_CCLK_SRC2_FREQ78M
  190. bool "CAM_CCLK_SRC_2,CAM_CCLK_SRC_FREQ_78M"
  191. imply CAM_CCLK_SRC_2
  192. imply CAM_CCLK_SRC_FREQ_78M
  193. config 8850_CAM_CCLK_SRC3_FREQ57M
  194. bool "CAM_CCLK_SRC_3,CAM_CCLK_SRC_FREQ_57M"
  195. imply CAM_CCLK_SRC_3
  196. imply CAM_CCLK_SRC_FREQ_57M
  197. config 8850_CAM_CCLK_SRC4_FREQ62.5M
  198. bool "CAM_CCLK_SRC_4,CAM_CCLK_SRC_FREQ_62.5M"
  199. imply CAM_CCLK_SRC_4
  200. imply CAM_CCLK_SRC_FREQ_62.5M
  201. config 8850_CAM_CCLK_SRC5_FREQ500M
  202. bool "CAM_CCLK_SRC_5,CAM_CCLK_SRC_FREQ_500M"
  203. imply CAM_CCLK_SRC_5
  204. imply CAM_CCLK_SRC_FREQ_500M
  205. endchoice
  206. config DEFAULT_CAM_MCLK_FREQ
  207. int "cam mclk frequency"
  208. default 15000000
  209. help
  210. Camera MCLK config
  211. config DEFAULT_CAM_PCLK_FREQ
  212. int "cam pclk frequency"
  213. default 39000000
  214. help
  215. Camera PCLK config
  216. config DEFAULT_CAM_CCLK_FREQ
  217. int "cam cclk frequency"
  218. default 125000000
  219. help
  220. Camera CCLK config.
  221. config CAM_MCLK_SRC_2
  222. bool
  223. config CAM_MCLK_SRC_3
  224. bool
  225. config CAM_MCLK_SRC_4
  226. bool
  227. config CAM_MCLK_SRC_5
  228. bool
  229. config CAM_MCLK_SRC_FREQ_78M
  230. bool
  231. config CAM_MCLK_SRC_FREQ_57M
  232. bool
  233. config CAM_MCLK_SRC_FREQ_62.5M
  234. bool
  235. config CAM_MCLK_SRC_FREQ_500M
  236. bool
  237. config DEFAULT_CAM_MCLK_SRC_FREQ
  238. int
  239. default 78000000 if CAM_MCLK_SRC_FREQ_78M
  240. default 57000000 if CAM_MCLK_SRC_FREQ_57M
  241. default 62500000 if CAM_MCLK_SRC_FREQ_62.5M
  242. default 500000000 if CAM_MCLK_SRC_FREQ_500M
  243. config CAM_MCLK_SRC_NUM
  244. int
  245. default 2 if CAM_MCLK_SRC_2
  246. default 3 if CAM_MCLK_SRC_3
  247. default 4 if CAM_MCLK_SRC_4
  248. default 5 if CAM_MCLK_SRC_5
  249. config CAM_PCLK_SRC_2
  250. bool
  251. config CAM_PCLK_SRC_3
  252. bool
  253. config CAM_PCLK_SRC_4
  254. bool
  255. config CAM_PCLK_SRC_5
  256. bool
  257. config CAM_PCLK_SRC_FREQ_78M
  258. bool
  259. config CAM_PCLK_SRC_FREQ_57M
  260. bool
  261. config CAM_PCLK_SRC_FREQ_62.5M
  262. bool
  263. config CAM_PCLK_SRC_FREQ_500M
  264. bool
  265. config DEFAULT_CAM_PCLK_SRC_FREQ
  266. int
  267. default 78000000 if CAM_PCLK_SRC_FREQ_78M
  268. default 57000000 if CAM_PCLK_SRC_FREQ_57M
  269. default 62500000 if CAM_PCLK_SRC_FREQ_62.5M
  270. default 500000000 if CAM_PCLK_SRC_FREQ_500M
  271. config CAM_PCLK_SRC_NUM
  272. int
  273. default 2 if CAM_PCLK_SRC_2
  274. default 3 if CAM_PCLK_SRC_3
  275. default 4 if CAM_PCLK_SRC_4
  276. default 5 if CAM_PCLK_SRC_5
  277. config CAM_CCLK_SRC_2
  278. bool
  279. config CAM_CCLK_SRC_3
  280. bool
  281. config CAM_CCLK_SRC_4
  282. bool
  283. config CAM_CCLK_SRC_5
  284. bool
  285. config CAM_CCLK_SRC_FREQ_78M
  286. bool
  287. config CAM_CCLK_SRC_FREQ_57M
  288. bool
  289. config CAM_CCLK_SRC_FREQ_62.5M
  290. bool
  291. config CAM_CCLK_SRC_FREQ_500M
  292. bool
  293. config DEFAULT_CAM_CCLK_SRC_FREQ
  294. int
  295. default 78000000 if CAM_CCLK_SRC_FREQ_78M
  296. default 57000000 if CAM_CCLK_SRC_FREQ_57M
  297. default 62500000 if CAM_CCLK_SRC_FREQ_62.5M
  298. default 500000000 if CAM_CCLK_SRC_FREQ_500M
  299. config CAM_CCLK_SRC_NUM
  300. int
  301. default 2 if CAM_CCLK_SRC_2
  302. default 3 if CAM_CCLK_SRC_3
  303. default 4 if CAM_CCLK_SRC_4
  304. default 5 if CAM_CCLK_SRC_5
  305. endif
  306. config MIPI_SUPPORT
  307. bool "camera MIPI"
  308. default y
  309. help
  310. support mipi.
  311. if MIPI_SUPPORT
  312. if SOC_8850
  313. config DEFAULT_CAM_MIPI_MCLK_FREQ
  314. int "cam mipi mclk frequency"
  315. default 26000000
  316. help
  317. mipi Camera MCLK config.
  318. endif
  319. endif
  320. endif
  321. config LCD_SUPPORT
  322. bool "support lcd"
  323. default y if SOC_8910
  324. default n
  325. help
  326. Whether LCD is supported.
  327. if LCD_SUPPORT
  328. config SUPPORT_LCD_GC9305
  329. bool "support GC9305 panel"
  330. default y
  331. help
  332. Support GC9305 LCD panel
  333. config SUPPORT_LCD_GC9306
  334. bool "support GC9306 panel"
  335. default y
  336. help
  337. Support GC9306 LCD panel
  338. config SUPPORT_LCD_ST7735S
  339. bool "support ST7735S panel"
  340. default n
  341. help
  342. Support ST7735S LCD panel
  343. config SUPPORT_LCD_ST7789h2
  344. bool "support ST7789h2 panel"
  345. default n
  346. help
  347. Support ST7789h2 LCD panel
  348. config MIPI_LCD_SUPPORT
  349. bool "support mipi lcd"
  350. default n
  351. help
  352. Support MIPI LCD
  353. endif
  354. config HEADSET_DETECT_SUPPORT
  355. bool "support headset detect"
  356. default y if SOC_8910
  357. default n
  358. help
  359. enable headset detect.
  360. config BOARD_SUPPORT_SDCARD1_DETECT
  361. bool "support SDCard1 detect"
  362. default y if SOC_8850
  363. default n
  364. help
  365. enable sdcard1 detect.
  366. config BOARD_SDCARD1_ID
  367. int "sdcard1 ID number"
  368. depends on BOARD_SUPPORT_SDCARD1_DETECT
  369. default 1
  370. help
  371. select sdcard1 ID number.
  372. config BOARD_SDCARD1_DETECT_GPIO
  373. int "sdcard1 detect GPIO number"
  374. depends on BOARD_SUPPORT_SDCARD1_DETECT
  375. default 3
  376. help
  377. Then GPIO to use to detect sdcard1 hot plug.
  378. config BOARD_SUPPORT_SDCARD2_DETECT
  379. bool "support SDCard2 detect"
  380. default n if SOC_8850
  381. default n
  382. help
  383. enable sdcard2 detect.
  384. config BOARD_SDCARD2_ID
  385. int "sdcard2 ID number"
  386. depends on BOARD_SUPPORT_SDCARD2_DETECT
  387. default 2
  388. help
  389. select sdcard2 ID number.
  390. config BOARD_SDCARD2_DETECT_GPIO
  391. int "sdcard2 detect GPIO number"
  392. depends on BOARD_SUPPORT_SDCARD2_DETECT
  393. help
  394. Then GPIO to use to detect sdcard2 hot plug.
  395. if HEADSET_DETECT_SUPPORT
  396. config HEADSET_STACK_SIZE
  397. int "headset thread stack size"
  398. default 16384
  399. help
  400. headset detect will run in separated thread. The stack size in bytes
  401. shall be determined by the used status.
  402. endif
  403. config SDIO_SUPPORT
  404. bool "support sdio Driver function"
  405. default y if (SOC_8850) || (SOC_8910) || (SOC_8811)
  406. default n
  407. help
  408. when is defined, will support sdio function.
  409. config SDIO2_SDMMC_SUPPORT
  410. bool "support EMMC_SDIO2_SDMMC_DRIVER"
  411. default n if SOC_8850
  412. default n
  413. help
  414. Whether EMMC API SDIO2 SDMMC Driver is supported.
  415. if SDIO_SUPPORT
  416. config SDMMC_SUPPORT
  417. bool "support SDMMC"
  418. default y if (SOC_8910) || (SOC_8811)
  419. default n
  420. help
  421. Whether SDMMC Driver is supported.
  422. if SDMMC_SUPPORT
  423. config SDMMC_CLK_FREQ_SD
  424. int "SDMMC clock frequency for SD"
  425. default 25000000
  426. help
  427. SDMMC clock frequency for SD.
  428. config SDMMC_CLK_FREQ_SDHC
  429. int "SDMMC clock frequency for SDHC"
  430. default 50000000
  431. help
  432. SDMMC clock frequency for SDHC.
  433. endif
  434. config EMMC_SUPPORT
  435. bool "support EMMC"
  436. default y if SOC_8850
  437. default n
  438. help
  439. Whether EMMC Driver is supported.
  440. if EMMC_SUPPORT
  441. config SDMMC_CLK_FREQ_SD
  442. int "SDMMC clock frequency for SD"
  443. default 25000000
  444. help
  445. SDMMC clock frequency for SD.
  446. config SDMMC_CLK_FREQ_SDHC
  447. int "SDMMC clock frequency for SDHC"
  448. default 50000000
  449. help
  450. SDMMC clock frequency for SDHC.
  451. endif
  452. endif
  453. config TEE_SUPPORT
  454. bool "support trusted execution environment"
  455. default y if (SOC_8850) && USE_TRUSTY
  456. default n
  457. help
  458. Whether TEE is supported
  459. config SUPPORT_EMMC
  460. bool "emmcDRIVER_EMMC"
  461. default n
  462. help
  463. Support emmc Driver
  464. config 8910_EMMC_SUPPORT
  465. bool "support_8910_EMMC"
  466. default n
  467. help
  468. Whether 8910 eMMC is supported
  469. config SUPPORT_SD2
  470. bool "SUPPORT_SD2"
  471. default n
  472. help
  473. Support SD2
  474. config SUPPORT_LC_FLASH
  475. bool "SUPPORT_LC_FLASH"
  476. default n
  477. help
  478. Support large capacity flash
  479. config GENERAL_SPI_LC_FLASH
  480. bool "support larger than 16MB General spi flash"
  481. default n
  482. help
  483. Support larger than 16MB general spi interface flash
  484. config FILEX_NAME_LOCAL_CHSET
  485. bool "Support file name local chset"
  486. default y
  487. help
  488. Support file name local chset.
  489. endmenu