Kconfig 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492
  1. menu "Hardware Drivers Config"
  2. config SOC_HPM6000
  3. bool
  4. select SOC_SERIES_HPM6000
  5. select RT_USING_COMPONENTS_INIT
  6. select RT_USING_USER_MAIN
  7. default y
  8. config BSP_USING_ENET_PHY_RTL8211
  9. bool
  10. default n
  11. config BSP_USING_ENET_PHY_RTL8201
  12. bool
  13. default n
  14. menu "On-chip Peripheral Drivers"
  15. config BSP_USING_GPIO
  16. bool "Enable GPIO"
  17. select RT_USING_PIN if BSP_USING_GPIO
  18. default n
  19. menuconfig BSP_USING_UART
  20. bool "Enable UART"
  21. default y
  22. select RT_USING_SERIAL
  23. if BSP_USING_UART
  24. menuconfig BSP_USING_UART0
  25. bool "Enable UART0 (Debugger)"
  26. default y
  27. if BSP_USING_UART0
  28. config BSP_UART0_RX_USING_DMA
  29. bool "Enable UART0 RX DMA"
  30. depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA
  31. default n
  32. config BSP_UART0_TX_USING_DMA
  33. bool "Enable UART0 TX DMA"
  34. depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA
  35. default n
  36. config BSP_UART0_RX_BUFSIZE
  37. int "Set UART0 RX buffer size"
  38. range 64 65535
  39. depends on RT_USING_SERIAL_V2
  40. default 128
  41. config BSP_UART0_TX_BUFSIZE
  42. int "Set UART0 TX buffer size"
  43. range 0 65535
  44. depends on RT_USING_SERIAL_V2
  45. default 0
  46. endif
  47. menuconfig BSP_USING_UART6
  48. bool "Enable UART6"
  49. default n
  50. if BSP_USING_UART6
  51. config BSP_UART6_RX_USING_DMA
  52. bool "Enable UART6 RX DMA"
  53. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  54. default n
  55. config BSP_UART6_TX_USING_DMA
  56. bool "Enable UART6 TX DMA"
  57. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  58. default n
  59. config BSP_UART6_RX_BUFSIZE
  60. int "Set UART6 RX buffer size"
  61. range 64 65535
  62. depends on RT_USING_SERIAL_V2
  63. default 128
  64. config BSP_UART6_TX_BUFSIZE
  65. int "Set UART6 TX buffer size"
  66. range 0 65535
  67. depends on RT_USING_SERIAL_V2
  68. default 0
  69. endif
  70. menuconfig BSP_USING_UART13
  71. bool "Enable UART13"
  72. default y
  73. if BSP_USING_UART13
  74. config BSP_UART13_RX_USING_DMA
  75. bool "Enable UART13 RX DMA"
  76. depends on BSP_USING_UART13 && RT_SERIAL_USING_DMA
  77. default n
  78. config BSP_UART13_TX_USING_DMA
  79. bool "Enable UART13 TX DMA"
  80. depends on BSP_USING_UART13 && RT_SERIAL_USING_DMA
  81. default n
  82. config BSP_UART13_RX_BUFSIZE
  83. int "Set UART13 RX buffer size"
  84. range 64 65535
  85. depends on RT_USING_SERIAL_V2
  86. default 128
  87. config BSP_UART13_TX_BUFSIZE
  88. int "Set UART13 TX buffer size"
  89. range 0 65535
  90. depends on RT_USING_SERIAL_V2
  91. default 0
  92. endif
  93. menuconfig BSP_USING_UART14
  94. bool "Enable UART14"
  95. default n
  96. if BSP_USING_UART14
  97. config BSP_UART14_RX_USING_DMA
  98. bool "Enable UART14 RX DMA"
  99. depends on BSP_USING_UART14 && RT_SERIAL_USING_DMA
  100. default n
  101. config BSP_UART14_TX_USING_DMA
  102. bool "Enable UART14 TX DMA"
  103. depends on BSP_USING_UART14 && RT_SERIAL_USING_DMA
  104. default n
  105. config BSP_UART14_RX_BUFSIZE
  106. int "Set UART14 RX buffer size"
  107. range 64 65535
  108. depends on RT_USING_SERIAL_V2
  109. default 128
  110. config BSP_UART14_TX_BUFSIZE
  111. int "Set UART14 TX buffer size"
  112. range 0 65535
  113. depends on RT_USING_SERIAL_V2
  114. default 0
  115. endif
  116. endif
  117. menuconfig BSP_USING_SPI
  118. bool "Enable SPI"
  119. default n
  120. select RT_USING_SPI if BSP_USING_SPI
  121. if BSP_USING_SPI
  122. config BSP_USING_SPI1
  123. bool "Enable SPI1"
  124. default y
  125. if BSP_USING_SPI1
  126. config BSP_SPI1_USING_DMA
  127. bool "Enable SPI1 DMA"
  128. default n
  129. endif
  130. config BSP_USING_SPI2
  131. bool "Enable SPI2"
  132. default n
  133. if BSP_USING_SPI2
  134. config BSP_SPI2_USING_DMA
  135. bool "Enable SPI2 DMA"
  136. default n
  137. endif
  138. config BSP_USING_SPI3
  139. bool "Enable SPI3"
  140. default n
  141. if BSP_USING_SPI3
  142. config BSP_SPI3_USING_DMA
  143. bool "Enable SPI3 DMA"
  144. default n
  145. endif
  146. endif
  147. menuconfig BSP_USING_RTC
  148. bool "Enable RTC"
  149. default n
  150. menuconfig BSP_USING_ETH
  151. bool "Enable Ethernet"
  152. default n
  153. select RT_USING_ETH
  154. if BSP_USING_ETH
  155. config BSP_USING_ETH0
  156. bool "Enable ETH0"
  157. default y
  158. select BSP_USING_ENET_PHY_RTL8211
  159. config BSP_USING_ETH1
  160. bool "Enable ETH1"
  161. default n
  162. select BSP_USING_ENET_PHY_RTL8201
  163. endif
  164. menuconfig BSP_USING_SDXC
  165. bool "Enable SDXC"
  166. default n
  167. select RT_USING_SDIO if BSP_USING_SDXC
  168. if BSP_USING_SDXC
  169. config BSP_USING_SDXC0
  170. bool "Enable SDXC0"
  171. default n
  172. if BSP_USING_SDXC0
  173. choice
  174. prompt "Select BUS_WIDTH"
  175. default BSP_SDXC0_BUS_WIDTH_8BIT
  176. config BSP_SDXC0_BUS_WIDTH_1BIT
  177. bool "1-bit"
  178. config BSP_SDXC0_BUS_WIDTH_4BIT
  179. bool "4-bit"
  180. config BSP_SDXC0_BUS_WIDTH_8BIT
  181. bool "8-bit"
  182. endchoice
  183. choice
  184. prompt "Select Voltage"
  185. default BSP_SDXC0_VOLTAGE_3V3
  186. config BSP_SDXC0_VOLTAGE_3V3
  187. bool "3.3V"
  188. config BSP_SDXC0_VOLTAGE_1V8
  189. bool "1.8V"
  190. config BSP_SDXC0_VOLTAGE_DUAL
  191. bool "Dual voltage 3.3V / 1.8V"
  192. endchoice
  193. config BSP_SDXC0_VSEL_PIN
  194. default "None"
  195. string "VSEL pin name"
  196. config BSP_SDXC0_PWR_PIN
  197. default "None"
  198. string "PWR pin name"
  199. endif
  200. config BSP_USING_SDXC1
  201. bool "Enable SDXC1"
  202. default n
  203. if BSP_USING_SDXC1
  204. choice
  205. prompt "Select BUS_WIDTH"
  206. default BSP_SDXC1_BUS_WIDTH_4BIT
  207. config BSP_SDXC1_BUS_WIDTH_1BIT
  208. bool "1-bit"
  209. config BSP_SDXC1_BUS_WIDTH_4BIT
  210. bool "4-bit"
  211. endchoice
  212. choice
  213. prompt "Select Voltage"
  214. default BSP_SDXC1_VOLTAGE_3V3
  215. config BSP_SDXC1_VOLTAGE_3V3
  216. bool "3.3V"
  217. config BSP_SDXC1_VOLTAGE_1V8
  218. bool "1.8V"
  219. config BSP_SDXC1_VOLTAGE_DUAL
  220. bool "Dual voltage 3.3V / 1.8V"
  221. endchoice
  222. config BSP_SDXC1_VSEL_PIN
  223. default "None"
  224. string "VSEL pin name"
  225. config BSP_SDXC1_PWR_PIN
  226. default "PC20"
  227. string "PWR pin name"
  228. endif
  229. endif
  230. menuconfig BSP_USING_TOUCH
  231. bool "Enable touch"
  232. default n
  233. if BSP_USING_TOUCH
  234. config BSP_USING_TOUCH_GT911
  235. bool "Enable GT911"
  236. default y
  237. config BSP_USING_TOUCH_FT5406
  238. bool "Enable FT5406"
  239. default n
  240. endif
  241. menuconfig BSP_USING_LCD
  242. bool "Enable LCD"
  243. default n
  244. if BSP_USING_LCD
  245. config BSP_USING_LCD_ISR
  246. bool "Enable LCD interrupt"
  247. default n
  248. endif
  249. menuconfig BSP_USING_LVGL
  250. bool "Enable LVGL"
  251. default n
  252. select PKG_USING_LVGL if BSP_USING_LVGL
  253. select BSP_USING_PDMA if BSP_USING_LVGL
  254. menuconfig BSP_USING_PDMA
  255. bool "Enable PDMA Driver"
  256. default n
  257. menuconfig BSP_USING_GPTMR
  258. bool "Enable GPTMR"
  259. default n
  260. select RT_USING_HWTIMER if BSP_USING_GPTMR
  261. if BSP_USING_GPTMR
  262. config BSP_USING_GPTMR1
  263. bool "Enable GPTMR1"
  264. default n
  265. config BSP_USING_GPTMR2
  266. bool "Enable GPTMR2"
  267. default n
  268. config BSP_USING_GPTMR3
  269. bool "Enable GPTMR3"
  270. default n
  271. config BSP_USING_GPTMR4
  272. bool "Enable GPTMR4"
  273. default n
  274. config BSP_USING_GPTMR5
  275. bool "Enable GPTMR5"
  276. default n
  277. config BSP_USING_GPTMR6
  278. bool "Enable GPTMR6"
  279. default n
  280. config BSP_USING_GPTMR7
  281. bool "Enable GPTMR7"
  282. default n
  283. endif
  284. menuconfig BSP_USING_I2C
  285. bool "Enable I2C"
  286. default n
  287. select RT_USING_I2C if BSP_USING_I2C
  288. if BSP_USING_I2C
  289. config BSP_USING_I2C0
  290. bool "Enable I2C0"
  291. default y
  292. endif
  293. if BSP_USING_I2C0
  294. config BSP_I2C0_USING_DMA
  295. bool "Enable I2C0 DMA"
  296. default n
  297. endif
  298. menuconfig BSP_USING_FEMC
  299. bool "Enable DRAM"
  300. default y
  301. menuconfig INIT_EXT_RAM_FOR_DATA
  302. bool "INIT_EXT_RAM_FOR_DATA"
  303. default y
  304. menuconfig BSP_USING_XPI_FLASH
  305. bool "Enable XPI FLASH"
  306. default n
  307. select RT_USING_FAL if BSP_USING_XPI_FLASH
  308. menuconfig BSP_USING_PWM
  309. bool "Enable PWM"
  310. default n
  311. menuconfig BSP_USING_DAO
  312. bool "Enable Audio DAO play"
  313. default n
  314. select RT_USING_AUDIO if BSP_USING_DAO
  315. menuconfig BSP_USING_PDM
  316. bool "Enable Audio PDM record"
  317. default n
  318. select RT_USING_AUDIO if BSP_USING_PDM
  319. menuconfig BSP_USING_I2S
  320. bool "Enable Audio I2S device"
  321. default n
  322. select RT_USING_AUDIO if BSP_USING_I2S
  323. if BSP_USING_I2S
  324. config BSP_USING_I2S0
  325. bool "Enable I2S0"
  326. default y
  327. config BSP_USING_AUDIO_CODEC_WM8960
  328. bool "Enable audio codec on board"
  329. default y
  330. endif
  331. menuconfig BSP_USING_USB
  332. bool "Enable USB"
  333. default n
  334. if BSP_USING_USB
  335. config BSP_USING_USB_DEVICE
  336. bool "Enable USB Device, default is msc ramdisk"
  337. default n
  338. select RT_USING_CHERRYUSB
  339. select RT_CHERRYUSB_DEVICE
  340. select RT_CHERRYUSB_DEVICE_SPEED_HS
  341. select RT_CHERRYUSB_DEVICE_HPM
  342. select RT_CHERRYUSB_DEVICE_MSC
  343. select RT_CHERRYUSB_DEVICE_TEMPLATE_MSC
  344. config BSP_USING_USB_HOST
  345. bool "Enable USB Host"
  346. default n
  347. select RT_USING_CACHE
  348. select RT_USING_CHERRYUSB
  349. select RT_CHERRYUSB_HOST
  350. select RT_CHERRYUSB_HOST_EHCI_HPM
  351. select RT_CHERRYUSB_HOST_CDC_ACM
  352. select RT_CHERRYUSB_HOST_HID
  353. select RT_CHERRYUSB_HOST_MSC
  354. select RT_CHERRYUSB_HOST_CDC_RNDIS
  355. endif
  356. menuconfig BSP_USING_WDG
  357. bool "Enable Watchdog"
  358. default n
  359. select RT_USING_WDT if BSP_USING_WDG
  360. if BSP_USING_WDG
  361. config BSP_USING_WDG0
  362. bool "Enable WDG0"
  363. default n
  364. config BSP_USING_WDG1
  365. bool "Enable WDG1"
  366. default n
  367. config BSP_USING_WDG2
  368. bool "Enable WDG2"
  369. default n
  370. config BSP_USING_WDG3
  371. bool "Enable WDG3"
  372. default n
  373. endif
  374. menuconfig BSP_USING_CAN
  375. bool "Enable CAN"
  376. default n
  377. select RT_USING_CAN if BSP_USING_CAN
  378. if BSP_USING_CAN
  379. config BSP_USING_CAN0
  380. bool "Enable CAN0"
  381. default n
  382. config BSP_USING_CAN1
  383. bool "Enable CAN1"
  384. default n
  385. config BSP_USING_CAN2
  386. bool "Enable CAN2"
  387. default n
  388. config BSP_USING_CAN3
  389. bool "Enable CAN3"
  390. default n
  391. endif
  392. menuconfig BSP_USING_ADC
  393. bool "Enable ADC"
  394. default n
  395. select RT_USING_ADC if BSP_USING_ADC
  396. if BSP_USING_ADC
  397. menuconfig BSP_USING_ADC12
  398. bool "Enable ADC12"
  399. default n
  400. if BSP_USING_ADC12
  401. config BSP_USING_ADC0
  402. bool "Enable ADC0"
  403. default n
  404. config BSP_USING_ADC1
  405. bool "Enable ADC1"
  406. default n
  407. config BSP_USING_ADC2
  408. bool "Enable ADC2"
  409. default n
  410. endif
  411. menuconfig BSP_USING_ADC16
  412. bool "Enable ADC16"
  413. default n
  414. if BSP_USING_ADC16
  415. config BSP_USING_ADC3
  416. bool "Enable ADC3"
  417. default n
  418. endif
  419. endif
  420. menuconfig BSP_USING_CAMERA
  421. bool "Enable camera"
  422. default n
  423. if BSP_USING_CAMERA
  424. config BSP_USING_CAMERA_MT9M114
  425. bool "Enable mt9m114"
  426. default y
  427. config BSP_USING_CAMERA_OV5640
  428. bool "Enable ov5640"
  429. default n
  430. config BSP_USING_CAMERA_OV7725
  431. bool "Enable ov7725"
  432. default n
  433. endif
  434. menuconfig BSP_USING_JPEG
  435. bool "Enable JPEG Driver"
  436. default n
  437. menuconfig BSP_USING_CAM
  438. bool "Enable CAM Driver"
  439. default n
  440. menuconfig BSP_USING_PANEL
  441. bool "Enable panel"
  442. default n
  443. if BSP_USING_PANEL
  444. config BSP_USEING_PANEL_RGB_TM070RDH13
  445. bool "Enable RGB TM070RDH13"
  446. default y
  447. endif
  448. menuconfig BSP_USING_RTT_LCD_DRIVER
  449. bool "Enable RTT LCD Driver"
  450. select BSP_USING_LCD
  451. default n
  452. endmenu
  453. endmenu