Kconfig 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936
  1. menu "Hardware Drivers Config"
  2. config SOC_HPM6800
  3. bool
  4. select SOC_HPM6800_SERIES
  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. if BSP_USING_ETH
  12. config LWIP_SUPPORT_CUSTOM_PBUF
  13. int
  14. default 1
  15. endif
  16. menu "On-chip Peripheral Drivers"
  17. config BSP_USING_GPIO
  18. bool "Enable GPIO"
  19. select RT_USING_PIN if BSP_USING_GPIO
  20. default n
  21. if BSP_USING_GPIO
  22. config BSP_GPIO_IRQ_PRIORITY
  23. int "GPIO Interrupt Priority"
  24. range 1 7
  25. default 1
  26. endif
  27. menuconfig BSP_USING_UART
  28. bool "Enable UART"
  29. default y
  30. select RT_USING_SERIAL
  31. if BSP_USING_UART
  32. menuconfig BSP_USING_UART0
  33. bool "Enable UART0 (Debugger)"
  34. default y
  35. if BSP_USING_UART0
  36. config BSP_UART0_RX_USING_DMA
  37. bool "Enable UART0 RX DMA"
  38. depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA
  39. default n
  40. config BSP_UART0_TX_USING_DMA
  41. bool "Enable UART0 TX DMA"
  42. depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA
  43. default n
  44. config BSP_UART0_RX_BUFSIZE
  45. int "Set UART0 RX buffer size"
  46. range 64 65535
  47. depends on RT_USING_SERIAL_V2
  48. default 128
  49. config BSP_UART0_TX_BUFSIZE
  50. int "Set UART0 TX buffer size"
  51. range 0 65535
  52. depends on RT_USING_SERIAL_V2
  53. default 0
  54. config BSP_UART0_IRQ_PRIORITY
  55. int "UART0 Interrupt Priority"
  56. range 1 7
  57. default 1
  58. endif
  59. menuconfig BSP_USING_UART1
  60. bool "Enable UART1"
  61. default n
  62. if BSP_USING_UART1
  63. config BSP_UART1_RX_USING_DMA
  64. bool "Enable UART1 RX DMA"
  65. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  66. default n
  67. config BSP_UART1_TX_USING_DMA
  68. bool "Enable UART1 TX DMA"
  69. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  70. default n
  71. config BSP_UART1_RX_BUFSIZE
  72. int "Set UART1 RX buffer size"
  73. range 64 65535
  74. depends on RT_USING_SERIAL_V2
  75. default 1024
  76. config BSP_UART1_TX_BUFSIZE
  77. int "Set UART1 TX buffer size"
  78. range 0 65535
  79. depends on RT_USING_SERIAL_V2
  80. default 0
  81. config BSP_UART1_IRQ_PRIORITY
  82. int "UART1 Interrupt Priority"
  83. range 1 7
  84. default 1
  85. endif
  86. menuconfig BSP_USING_UART2
  87. bool "Enable UART2"
  88. default n
  89. if BSP_USING_UART2
  90. config BSP_UART2_RX_USING_DMA
  91. bool "Enable UART2 RX DMA"
  92. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  93. default n
  94. config BSP_UART2_TX_USING_DMA
  95. bool "Enable UART2 TX DMA"
  96. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  97. default n
  98. config BSP_UART2_RX_BUFSIZE
  99. int "Set UART2 RX buffer size"
  100. range 64 65535
  101. depends on RT_USING_SERIAL_V2
  102. default 1024
  103. config BSP_UART2_TX_BUFSIZE
  104. int "Set UART2 TX buffer size"
  105. range 0 65535
  106. depends on RT_USING_SERIAL_V2
  107. default 0
  108. config BSP_UART2_IRQ_PRIORITY
  109. int "UART2 Interrupt Priority"
  110. range 1 7
  111. default 1
  112. endif
  113. menuconfig BSP_USING_UART3
  114. bool "Enable UART3"
  115. default y
  116. if BSP_USING_UART3
  117. config BSP_UART3_RX_USING_DMA
  118. bool "Enable UART3 RX DMA"
  119. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  120. default n
  121. config BSP_UART3_TX_USING_DMA
  122. bool "Enable UART3 TX DMA"
  123. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  124. default n
  125. config BSP_UART3_RX_BUFSIZE
  126. int "Set UART3 RX buffer size"
  127. range 64 65535
  128. depends on RT_USING_SERIAL_V2
  129. default 1024
  130. config BSP_UART3_TX_BUFSIZE
  131. int "Set UART3 TX buffer size"
  132. range 0 65535
  133. depends on RT_USING_SERIAL_V2
  134. default 0
  135. config BSP_UART3_IRQ_PRIORITY
  136. int "UART3 Interrupt Priority"
  137. range 1 7
  138. default 1
  139. endif
  140. menuconfig BSP_USING_UART4
  141. bool "Enable UART4"
  142. default n
  143. if BSP_USING_UART4
  144. config BSP_UART4_RX_USING_DMA
  145. bool "Enable UART4 RX DMA"
  146. depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
  147. default n
  148. config BSP_UART4_TX_USING_DMA
  149. bool "Enable UART4 TX DMA"
  150. depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
  151. default n
  152. config BSP_UART4_RX_BUFSIZE
  153. int "Set UART4 RX buffer size"
  154. range 64 65535
  155. depends on RT_USING_SERIAL_V2
  156. default 1024
  157. config BSP_UART4_TX_BUFSIZE
  158. int "Set UART4 TX buffer size"
  159. range 0 65535
  160. depends on RT_USING_SERIAL_V2
  161. default 0
  162. config BSP_UART4_IRQ_PRIORITY
  163. int "UART4 Interrupt Priority"
  164. range 1 7
  165. default 1
  166. endif
  167. menuconfig BSP_USING_UART5
  168. bool "Enable UART5"
  169. default n
  170. if BSP_USING_UART5
  171. config BSP_UART5_RX_USING_DMA
  172. bool "Enable UART5 RX DMA"
  173. depends on BSP_USING_UART5 && RT_SERIAL_USING_DMA
  174. default n
  175. config BSP_UART5_TX_USING_DMA
  176. bool "Enable UART5 TX DMA"
  177. depends on BSP_USING_UART5 && RT_SERIAL_USING_DMA
  178. default n
  179. config BSP_UART5_RX_BUFSIZE
  180. int "Set UART5 RX buffer size"
  181. range 64 65535
  182. depends on RT_USING_SERIAL_V2
  183. default 1024
  184. config BSP_UART5_TX_BUFSIZE
  185. int "Set UART5 TX buffer size"
  186. range 0 65535
  187. depends on RT_USING_SERIAL_V2
  188. default 0
  189. config BSP_UART5_IRQ_PRIORITY
  190. int "UART5 Interrupt Priority"
  191. range 1 7
  192. default 1
  193. endif
  194. menuconfig BSP_USING_UART6
  195. bool "Enable UART6"
  196. default n
  197. if BSP_USING_UART6
  198. config BSP_UART6_RX_USING_DMA
  199. bool "Enable UART6 RX DMA"
  200. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  201. default n
  202. config BSP_UART6_TX_USING_DMA
  203. bool "Enable UART6 TX DMA"
  204. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  205. default n
  206. config BSP_UART6_RX_BUFSIZE
  207. int "Set UART6 RX buffer size"
  208. range 64 65535
  209. depends on RT_USING_SERIAL_V2
  210. default 1024
  211. config BSP_UART6_TX_BUFSIZE
  212. int "Set UART6 TX buffer size"
  213. range 0 65535
  214. depends on RT_USING_SERIAL_V2
  215. default 0
  216. config BSP_UART6_IRQ_PRIORITY
  217. int "UART6 Interrupt Priority"
  218. range 1 7
  219. default 1
  220. endif
  221. menuconfig BSP_USING_UART7
  222. bool "Enable UART7"
  223. default n
  224. if BSP_USING_UART7
  225. config BSP_UART7_RX_USING_DMA
  226. bool "Enable UART7 RX DMA"
  227. depends on BSP_USING_UART7 && RT_SERIAL_USING_DMA
  228. default n
  229. config BSP_UART7_TX_USING_DMA
  230. bool "Enable UART7 TX DMA"
  231. depends on BSP_USING_UART7 && RT_SERIAL_USING_DMA
  232. default n
  233. config BSP_UART7_RX_BUFSIZE
  234. int "Set UART7 RX buffer size"
  235. range 64 65535
  236. depends on RT_USING_SERIAL_V2
  237. default 1024
  238. config BSP_UART7_TX_BUFSIZE
  239. int "Set UART7 TX buffer size"
  240. range 0 65535
  241. depends on RT_USING_SERIAL_V2
  242. default 0
  243. config BSP_UART7_IRQ_PRIORITY
  244. int "UART7 Interrupt Priority"
  245. range 1 7
  246. default 1
  247. endif
  248. endif
  249. menuconfig BSP_USING_SPI
  250. bool "Enable SPI"
  251. default n
  252. select RT_USING_SPI if BSP_USING_SPI
  253. if BSP_USING_SPI
  254. config BSP_USING_SPI0
  255. bool "Enable SPI0"
  256. default n
  257. if BSP_USING_SPI0
  258. config BSP_SPI0_USING_DMA
  259. bool "Enable SPI0 DMA"
  260. default n
  261. config BSP_SPI0_IRQ_PRIORITY
  262. int "SPI0 Interrupt Priority"
  263. range 1 7
  264. default 1
  265. choice
  266. prompt "Select SPI0 CS TYPE"
  267. default BSP_SPI0_USING_SOFT_CS
  268. config BSP_SPI0_USING_SOFT_CS
  269. bool "Enable SPI0 software cs"
  270. config BSP_SPI0_USING_HARD_CS
  271. bool "Enable SPI0 hardware cs"
  272. endchoice
  273. choice
  274. prompt "Select SPI0 IO mode"
  275. default BSP_SPI0_USING_SINGLE_IO
  276. config BSP_SPI0_USING_SINGLE_IO
  277. bool "Enable SPI0 single IO mode"
  278. config BSP_SPI0_USING_DUAL_IO
  279. bool "Enable SPI0 dual IO mode"
  280. config BSP_SPI0_USING_QUAD_IO
  281. bool "Enable SPI0 quad IO mode"
  282. endchoice
  283. endif
  284. config BSP_USING_SPI1
  285. bool "Enable SPI1"
  286. default n
  287. if BSP_USING_SPI1
  288. config BSP_SPI1_USING_DMA
  289. bool "Enable SPI1 DMA"
  290. default n
  291. config BSP_SPI1_IRQ_PRIORITY
  292. int "SPI1 Interrupt Priority"
  293. range 1 7
  294. default 1
  295. choice
  296. prompt "Select SPI1 CS TYPE"
  297. default BSP_SPI1_USING_SOFT_CS
  298. config BSP_SPI1_USING_SOFT_CS
  299. bool "Enable SPI1 software cs"
  300. config BSP_SPI1_USING_HARD_CS
  301. bool "Enable SPI1 hardware cs"
  302. endchoice
  303. choice
  304. prompt "Select SPI1 IO mode"
  305. default BSP_SPI1_USING_SINGLE_IO
  306. config BSP_SPI1_USING_SINGLE_IO
  307. bool "Enable SPI1 single IO mode"
  308. config BSP_SPI1_USING_DUAL_IO
  309. bool "Enable SPI1 dual IO mode"
  310. config BSP_SPI1_USING_QUAD_IO
  311. bool "Enable SPI1 quad IO mode"
  312. endchoice
  313. endif
  314. config BSP_USING_SPI2
  315. bool "Enable SPI2"
  316. default n
  317. if BSP_USING_SPI2
  318. config BSP_SPI2_USING_DMA
  319. bool "Enable SPI2 DMA"
  320. default n
  321. config BSP_SPI2_IRQ_PRIORITY
  322. int "SPI2 Interrupt Priority"
  323. range 1 7
  324. default 1
  325. choice
  326. prompt "Select SPI2 CS TYPE"
  327. default BSP_SPI2_USING_SOFT_CS
  328. config BSP_SPI2_USING_SOFT_CS
  329. bool "Enable SPI2 software cs"
  330. config BSP_SPI2_USING_HARD_CS
  331. bool "Enable SPI2 hardware cs"
  332. endchoice
  333. choice
  334. prompt "Select SPI2 IO mode"
  335. default BSP_SPI2_USING_SINGLE_IO
  336. config BSP_SPI2_USING_SINGLE_IO
  337. bool "Enable SPI2 single IO mode"
  338. config BSP_SPI2_USING_DUAL_IO
  339. bool "Enable SPI2 dual IO mode"
  340. config BSP_SPI2_USING_QUAD_IO
  341. bool "Enable SPI2 quad IO mode"
  342. endchoice
  343. endif
  344. config BSP_USING_SPI3
  345. bool "Enable SPI3"
  346. default n
  347. if BSP_USING_SPI3
  348. config BSP_SPI3_USING_DMA
  349. bool "Enable SPI3 DMA"
  350. default n
  351. config BSP_SPI3_IRQ_PRIORITY
  352. int "SPI3 Interrupt Priority"
  353. range 1 7
  354. default 1
  355. choice
  356. prompt "Select SPI3 CS TYPE"
  357. default BSP_SPI3_USING_SOFT_CS
  358. config BSP_SPI3_USING_SOFT_CS
  359. bool "Enable SPI3 software cs"
  360. config BSP_SPI3_USING_HARD_CS
  361. bool "Enable SPI3 hardware cs"
  362. endchoice
  363. choice
  364. prompt "Select SPI3 IO mode"
  365. default BSP_SPI3_USING_SINGLE_IO
  366. config BSP_SPI3_USING_SINGLE_IO
  367. bool "Enable SPI3 single IO mode"
  368. config BSP_SPI3_USING_DUAL_IO
  369. bool "Enable SPI3 dual IO mode"
  370. config BSP_SPI3_USING_QUAD_IO
  371. bool "Enable SPI3 quad IO mode"
  372. endchoice
  373. endif
  374. endif
  375. menuconfig BSP_USING_RTC
  376. bool "Enable RTC"
  377. default n
  378. select RT_USING_RTC if BSP_USING_RTC
  379. menuconfig BSP_USING_ETH
  380. bool "Enable Ethernet"
  381. default n
  382. select RT_USING_ETH if BSP_USING_ETH
  383. select RT_USING_PHY if BSP_USING_ETH
  384. if BSP_USING_ETH
  385. choice
  386. prompt "ETH"
  387. default BSP_USING_ETH0
  388. config BSP_USING_ETH0
  389. bool "Enable ETH0"
  390. select BSP_USING_ENET_PHY_RTL8211
  391. endchoice
  392. endif
  393. menuconfig BSP_USING_SDXC
  394. bool "Enable SDXC"
  395. default n
  396. select RT_USING_SDIO if BSP_USING_SDXC
  397. select RT_USING_PIN if BSP_USING_SDXC
  398. if BSP_USING_SDXC
  399. config BSP_USING_SDXC0
  400. bool "Enable SDXC0"
  401. default n
  402. if BSP_USING_SDXC0
  403. config BSP_SDXC0_ENABLE_INTERRUPT_DRIVEN
  404. bool "Enable Interrupt-driven mode"
  405. default n
  406. choice
  407. prompt "Select buffer type for unaligned data transfer"
  408. default BSP_SDXC0_USE_CACHEABLE_BUFFER
  409. config BSP_SDXC0_USE_CACHEABLE_BUFFER
  410. bool "Use cacheable buffer"
  411. config BSP_SDXC0_USE_NONCACHEABLE_BUFFER
  412. bool "Use non-cacheable buffer"
  413. endchoice
  414. if BSP_SDXC0_USE_CACHEABLE_BUFFER
  415. config BSP_SDXC0_CACHEABLE_BUFFER_SIZE_IN_SECTOR
  416. int "Cacheable buffer size in sectors(512 bytes per sector)"
  417. range 1 1024
  418. default 32
  419. endif
  420. if BSP_SDXC0_USE_NONCACHEABLE_BUFFER
  421. config BSP_SDXC0_NONCACHEABLE_BUFFER_SIZE_IN_SECTOR
  422. int "Non-cacheable buffer size in sectors(512 bytes per sector)"
  423. range 1 1024
  424. default 32
  425. config BSP_SDXC0_NONCACHEABLE_BUF_IN_FAST_RAM
  426. bool "Place non-cacheable buffer into FAST RAM(available only if FAST_RAM is in ILM/DLM)"
  427. default n
  428. endif
  429. config BSP_SDXC0_IRQ_PRIORITY
  430. int "SDXC Interrupt Priority"
  431. range 1 7
  432. default 1
  433. choice
  434. prompt "Select BUS_WIDTH"
  435. default BSP_SDXC0_BUS_WIDTH_8BIT
  436. config BSP_SDXC0_BUS_WIDTH_1BIT
  437. bool "1-bit"
  438. config BSP_SDXC0_BUS_WIDTH_4BIT
  439. bool "4-bit"
  440. config BSP_SDXC0_BUS_WIDTH_8BIT
  441. bool "8-bit"
  442. endchoice
  443. choice
  444. prompt "Select Voltage"
  445. default BSP_SDXC0_VOLTAGE_1V8
  446. config BSP_SDXC0_VOLTAGE_3V3
  447. bool "3.3V"
  448. config BSP_SDXC0_VOLTAGE_1V8
  449. bool "1.8V"
  450. config BSP_SDXC0_VOLTAGE_DUAL
  451. bool "Dual voltage 3.3V / 1.8V"
  452. endchoice
  453. config BSP_SDXC0_VSEL_PIN
  454. default "None"
  455. string "VSEL pin name"
  456. config BSP_SDXC0_PWR_PIN
  457. default "None"
  458. string "PWR pin name"
  459. endif
  460. config BSP_USING_SDXC1
  461. bool "Enable SDXC1"
  462. default y
  463. if BSP_USING_SDXC1
  464. config BSP_SDXC1_ENABLE_INTERRUPT_DRIVEN
  465. bool "Enable Interrupt-driven mode"
  466. default n
  467. choice
  468. prompt "Select buffer type for unaligned data transfer"
  469. default BSP_SDXC1_USE_CACHEABLE_BUFFER
  470. config BSP_SDXC1_USE_CACHEABLE_BUFFER
  471. bool "Use cacheable buffer"
  472. config BSP_SDXC1_USE_NONCACHEABLE_BUFFER
  473. bool "Use non-cacheable buffer"
  474. endchoice
  475. if BSP_SDXC1_USE_CACHEABLE_BUFFER
  476. config BSP_SDXC1_CACHEABLE_BUFFER_SIZE_IN_SECTOR
  477. int "Cacheable buffer size in sectors(512 bytes per sector)"
  478. range 1 1024
  479. default 32
  480. endif
  481. if BSP_SDXC1_USE_NONCACHEABLE_BUFFER
  482. config BSP_SDXC1_NONCACHEABLE_BUFFER_SIZE_IN_SECTOR
  483. int "Non-cacheable buffer size in sectors(512 bytes per sector)"
  484. range 1 1024
  485. default 32
  486. config BSP_SDXC1_NONCACHEABLE_BUF_IN_FAST_RAM
  487. bool "Place non-cacheable buffer into FAST RAM(available only if FAST_RAM is in ILM/DLM)"
  488. default n
  489. endif
  490. config BSP_SDXC1_IRQ_PRIORITY
  491. int "SDXC Interrupt Priority"
  492. range 1 7
  493. default 1
  494. choice
  495. prompt "Select BUS_WIDTH"
  496. default BSP_SDXC1_BUS_WIDTH_4BIT
  497. config BSP_SDXC1_BUS_WIDTH_1BIT
  498. bool "1-bit"
  499. config BSP_SDXC1_BUS_WIDTH_4BIT
  500. bool "4-bit"
  501. endchoice
  502. choice
  503. prompt "Select Voltage"
  504. default BSP_SDXC1_VOLTAGE_3V3
  505. config BSP_SDXC1_VOLTAGE_3V3
  506. bool "3.3V"
  507. config BSP_SDXC1_VOLTAGE_1V8
  508. bool "1.8V"
  509. config BSP_SDXC1_VOLTAGE_DUAL
  510. bool "Dual voltage 3.3V / 1.8V"
  511. endchoice
  512. config BSP_SDXC1_VSEL_PIN
  513. default "PD12"
  514. string "VSEL pin name"
  515. config BSP_SDXC1_PWR_PIN
  516. default "PD07"
  517. string "PWR pin name"
  518. endif
  519. endif
  520. menuconfig BSP_USING_TOUCH
  521. bool "Enable touch"
  522. default n
  523. if BSP_USING_TOUCH
  524. config BSP_USING_TOUCH_GT9xx
  525. bool "Enable GT9xx"
  526. default y
  527. config BSP_USING_TOUCH_FT5406
  528. bool "Enable FT5406"
  529. default n
  530. endif
  531. menuconfig BSP_USING_LCD
  532. bool "Enable LCD"
  533. default n
  534. if BSP_USING_LCD
  535. config BSP_USING_LCD_ISR
  536. bool "Enable LCD interrupt"
  537. default n
  538. endif
  539. menuconfig BSP_USING_LVGL
  540. bool "Enable LVGL"
  541. default n
  542. select PKG_USING_LVGL if BSP_USING_LVGL
  543. select BSP_USING_PDMA if BSP_USING_LVGL
  544. menuconfig BSP_USING_PDMA
  545. bool "Enable PDMA Driver"
  546. default n
  547. menuconfig BSP_USING_GPTMR
  548. bool "Enable GPTMR"
  549. default n
  550. select RT_USING_HWTIMER if BSP_USING_GPTMR
  551. if BSP_USING_GPTMR
  552. config BSP_USING_GPTMR0
  553. bool "Enable GPTMR0"
  554. default n
  555. if BSP_USING_GPTMR0
  556. config BSP_GPTMR0_IRQ_PRIORITY
  557. int "GPTMR0 Interrupt Priority"
  558. range 1 7
  559. default 1
  560. endif
  561. config BSP_USING_GPTMR1
  562. bool "Enable GPTMR1"
  563. default n
  564. if BSP_USING_GPTMR1
  565. config BSP_GPTMR1_IRQ_PRIORITY
  566. int "GPTMR1 Interrupt Priority"
  567. range 1 7
  568. default 1
  569. endif
  570. config BSP_USING_GPTMR2
  571. bool "Enable GPTMR2"
  572. default n
  573. if BSP_USING_GPTMR2
  574. config BSP_GPTMR2_IRQ_PRIORITY
  575. int "GPTMR2 Interrupt Priority"
  576. range 1 7
  577. default 1
  578. endif
  579. config BSP_USING_GPTMR3
  580. bool "Enable GPTMR3"
  581. default n
  582. if BSP_USING_GPTMR3
  583. config BSP_GPTMR3_IRQ_PRIORITY
  584. int "GPTMR3 Interrupt Priority"
  585. range 1 7
  586. default 1
  587. endif
  588. config BSP_USING_GPTMR4
  589. bool "Enable GPTMR4"
  590. default n
  591. if BSP_USING_GPTMR4
  592. config BSP_GPTMR4_IRQ_PRIORITY
  593. int "GPTMR4 Interrupt Priority"
  594. range 1 7
  595. default 1
  596. endif
  597. config BSP_USING_GPTMR5
  598. bool "Enable GPTMR5"
  599. default n
  600. if BSP_USING_GPTMR5
  601. config BSP_GPTMR5_IRQ_PRIORITY
  602. int "GPTMR5 Interrupt Priority"
  603. range 1 7
  604. default 1
  605. endif
  606. config BSP_USING_GPTMR6
  607. bool "Enable GPTMR6"
  608. default n
  609. if BSP_USING_GPTMR6
  610. config BSP_GPTMR6_IRQ_PRIORITY
  611. int "GPTMR6 Interrupt Priority"
  612. range 1 7
  613. default 1
  614. endif
  615. config BSP_USING_GPTMR7
  616. bool "Enable GPTMR7"
  617. default n
  618. if BSP_USING_GPTMR7
  619. config BSP_GPTMR7_IRQ_PRIORITY
  620. int "GPTMR7 Interrupt Priority"
  621. range 1 7
  622. default 1
  623. endif
  624. endif
  625. menuconfig BSP_USING_I2C
  626. bool "Enable I2C"
  627. default n
  628. select RT_USING_I2C if BSP_USING_I2C
  629. if BSP_USING_I2C
  630. config BSP_USING_I2C0
  631. bool "Enable I2C0"
  632. default y
  633. if BSP_USING_I2C0
  634. config BSP_I2C0_USING_DMA
  635. bool "Enable I2C0 DMA"
  636. default n
  637. config BSP_I2C0_IRQ_PRIORITY
  638. int "I2C0 Interrupt Priority"
  639. range 1 7
  640. default 1
  641. endif
  642. config BSP_USING_I2C1
  643. bool "Enable I2C1"
  644. default n
  645. if BSP_USING_I2C1
  646. config BSP_I2C1_USING_DMA
  647. bool "Enable I2C1 DMA"
  648. default n
  649. config BSP_I2C1_IRQ_PRIORITY
  650. int "I2C1 Interrupt Priority"
  651. range 1 7
  652. default 1
  653. endif
  654. config BSP_USING_I2C2
  655. bool "Enable I2C2"
  656. default n
  657. if BSP_USING_I2C2
  658. config BSP_I2C2_USING_DMA
  659. bool "Enable I2C2 DMA"
  660. default n
  661. config BSP_I2C2_IRQ_PRIORITY
  662. int "I2C2 Interrupt Priority"
  663. range 1 7
  664. default 1
  665. endif
  666. config BSP_USING_I2C3
  667. bool "Enable I2C3"
  668. default n
  669. if BSP_USING_I2C3
  670. config BSP_I2C3_USING_DMA
  671. bool "Enable I2C3 DMA"
  672. default n
  673. config BSP_I2C3_IRQ_PRIORITY
  674. int "I2C3 Interrupt Priority"
  675. range 1 7
  676. default 1
  677. endif
  678. endif
  679. menuconfig INIT_EXT_RAM_FOR_DATA
  680. bool "INIT_EXT_RAM_FOR_DATA"
  681. default y
  682. menuconfig BSP_USING_XPI_FLASH
  683. bool "Enable XPI FLASH"
  684. default n
  685. select RT_USING_FAL if BSP_USING_XPI_FLASH
  686. menuconfig BSP_USING_DAO
  687. bool "Enable Audio DAO play"
  688. default n
  689. select RT_USING_AUDIO if BSP_USING_DAO
  690. menuconfig BSP_USING_PDM
  691. bool "Enable Audio PDM record"
  692. default n
  693. select RT_USING_AUDIO if BSP_USING_PDM
  694. menuconfig BSP_USING_I2S
  695. bool "Enable Audio I2S device"
  696. default n
  697. select RT_USING_AUDIO if BSP_USING_I2S
  698. if BSP_USING_I2S
  699. config BSP_USING_I2S3
  700. bool "Enable I2S3"
  701. default y
  702. config BSP_USING_AUDIO_CODEC_WM8960
  703. bool "Enable audio codec on board"
  704. default y
  705. endif
  706. menuconfig BSP_USING_USB
  707. bool "Enable USB"
  708. default n
  709. if BSP_USING_USB
  710. config BSP_USING_USB_DEVICE
  711. bool "Enable USB Device"
  712. select RT_USING_CACHE
  713. default n
  714. config BSP_USING_USB_HOST
  715. bool "Enable USB Host"
  716. select RT_USING_CACHE
  717. default n
  718. endif
  719. menuconfig BSP_USING_EWDG
  720. bool "Enable EWDG"
  721. default n
  722. select RT_USING_WDT if BSP_USING_EWDG
  723. if BSP_USING_EWDG
  724. config BSP_USING_EWDG0
  725. bool "Enable EWDG0"
  726. default n
  727. config BSP_USING_EWDG1
  728. bool "Enable EWDG1"
  729. default n
  730. endif
  731. menuconfig BSP_USING_MCAN
  732. bool "Enable MCAN"
  733. default n
  734. select RT_USING_CAN if BSP_USING_MCAN
  735. if BSP_USING_MCAN
  736. config BSP_USING_MCAN0
  737. bool "Enable MCAN0"
  738. default n
  739. if BSP_USING_MCAN0
  740. config BSP_MCAN0_IRQ_PRIORITY
  741. int "MCAN0 Interrupt Priority"
  742. range 1 7
  743. default 1
  744. endif
  745. config BSP_USING_MCAN1
  746. bool "Enable MCAN1"
  747. default n
  748. if BSP_USING_MCAN1
  749. config BSP_MCAN1_IRQ_PRIORITY
  750. int "MCAN1 Interrupt Priority"
  751. range 1 7
  752. default 1
  753. endif
  754. config BSP_USING_MCAN2
  755. bool "Enable MCAN2"
  756. default n
  757. if BSP_USING_MCAN2
  758. config BSP_MCAN2_IRQ_PRIORITY
  759. int "MCAN2 Interrupt Priority"
  760. range 1 7
  761. default 1
  762. endif
  763. config BSP_USING_MCAN3
  764. bool "Enable MCAN3"
  765. default n
  766. if BSP_USING_MCAN3
  767. config BSP_MCAN3_IRQ_PRIORITY
  768. int "MCAN3 Interrupt Priority"
  769. range 1 7
  770. default 1
  771. endif
  772. config BSP_USING_MCAN4
  773. bool "Enable MCAN4"
  774. default n
  775. if BSP_USING_MCAN4
  776. config BSP_MCAN4_IRQ_PRIORITY
  777. int "MCAN4 Interrupt Priority"
  778. range 1 7
  779. default 1
  780. endif
  781. config BSP_USING_MCAN5
  782. bool "Enable MCAN5"
  783. default n
  784. if BSP_USING_MCAN5
  785. config BSP_MCAN5_IRQ_PRIORITY
  786. int "MCAN5 Interrupt Priority"
  787. range 1 7
  788. default 1
  789. endif
  790. config BSP_USING_MCAN6
  791. bool "Enable MCAN6"
  792. default n
  793. if BSP_USING_MCAN6
  794. config BSP_MCAN6_IRQ_PRIORITY
  795. int "MCAN6 Interrupt Priority"
  796. range 1 7
  797. default 1
  798. endif
  799. config BSP_USING_MCAN7
  800. bool "Enable MCAN7"
  801. default n
  802. if BSP_USING_MCAN7
  803. config BSP_MCAN7_IRQ_PRIORITY
  804. int "MCAN7 Interrupt Priority"
  805. range 1 7
  806. default 1
  807. endif
  808. endif
  809. menuconfig BSP_USING_ADC
  810. bool "Enable ADC"
  811. default n
  812. select RT_USING_ADC if BSP_USING_ADC
  813. if BSP_USING_ADC
  814. menuconfig BSP_USING_ADC16
  815. bool "Enable ADC16"
  816. default n
  817. if BSP_USING_ADC16
  818. config BSP_USING_ADC3
  819. bool "Enable ADC3"
  820. default n
  821. endif
  822. endif
  823. menuconfig BSP_USING_CAMERA
  824. bool "Enable camera"
  825. default n
  826. select BSP_USING_CAM if BSP_USING_CAMERA
  827. select BSP_USING_MIPI_CSI if BSP_USING_CAMERA
  828. if BSP_USING_CAMERA
  829. choice
  830. prompt "Select camera"
  831. default BSP_USING_CAMERA_OV5640
  832. config BSP_USING_CAMERA_MT9M114
  833. bool "Enable mt9m114"
  834. config BSP_USING_CAMERA_OV5640
  835. bool "Enable ov5640"
  836. config BSP_USING_CAMERA_OV7725
  837. bool "Enable ov7725"
  838. endchoice
  839. endif
  840. menuconfig BSP_USING_JPEG
  841. bool "Enable JPEG Driver"
  842. default n
  843. menuconfig BSP_USING_CAM
  844. bool "Enable CAM Driver"
  845. default n
  846. menuconfig BSP_USING_PANEL
  847. bool "Enable panel"
  848. default n
  849. select BSP_USING_MIPI_DSI if BSP_USING_PANEL
  850. select BSP_USING_PIXELMUX if BSP_USING_PANEL
  851. if BSP_USING_PANEL
  852. choice
  853. prompt "Select Panel"
  854. default BSP_USEING_PANEL_MIPI_MC10128007_31B
  855. config BSP_USEING_PANEL_RGB_TM070RDH13
  856. bool "Enable RGB TM070RDH13"
  857. config BSP_USEING_PANEL_MIPI_MC10128007_31B
  858. bool "Enable MIPI MC10128007_31B"
  859. config BSP_USEING_PANEL_LVDS_TM103XDGP01
  860. bool "Enable LVDS TM103XDGP01"
  861. config BSP_USEING_PANEL_LVDS_CC10128007
  862. bool "Enable LVDS CC10128007"
  863. endchoice
  864. endif
  865. menuconfig BSP_USING_PIXELMUX
  866. bool "Enable pixelmux Driver"
  867. default n
  868. menuconfig BSP_USING_MIPI_CSI
  869. bool "Enable MIPI CSI Driver"
  870. default n
  871. menuconfig BSP_USING_MIPI_DSI
  872. bool "Enable MIPI DSI Driver"
  873. default n
  874. menuconfig BSP_USING_LVB
  875. bool "Enable LVB Driver"
  876. default n
  877. menuconfig BSP_USING_LCB
  878. bool "Enable LCB Driver"
  879. default n
  880. menuconfig BSP_USING_RTT_LCD_DRIVER
  881. bool "Enable RTT LCD Driver"
  882. select BSP_USING_LCD
  883. default n
  884. if BSP_USING_RTT_LCD_DRIVER
  885. config BSP_RTT_LCD_IRQ_PRIORITY
  886. int "RTT LCD Interrupt Priority"
  887. range 1 7
  888. default 1
  889. endif
  890. endmenu
  891. endmenu