Kconfig 34 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184
  1. config SOC_SERIES_MA35D1
  2. bool
  3. select SOC_FAMILY_NUMICRO
  4. select RT_USING_COMPONENTS_INIT
  5. select RT_USING_USER_MAIN
  6. default y
  7. config BSP_USING_SSPCC
  8. bool
  9. depends on SOC_SERIES_MA35D1 && !USE_MA35D1_SUBM
  10. default y
  11. config BSP_USING_SSMCC
  12. bool
  13. depends on SOC_SERIES_MA35D1 && !USE_MA35D1_SUBM
  14. default y
  15. config BSP_USING_UMCTL2
  16. bool
  17. depends on SOC_SERIES_MA35D1 && !USE_MA35D1_SUBM
  18. default y
  19. config BSP_USING_RTP
  20. bool
  21. depends on SOC_SERIES_MA35D1 && !USE_MA35D1_SUBM
  22. default y
  23. if BSP_USING_RTP
  24. config RTP_USING_AT_STARTUP
  25. bool "Enable RTP Executation at startup"
  26. default y
  27. endif
  28. config USE_MA35D1_AARCH32
  29. bool
  30. select ARCH_ARM_CORTEX_A
  31. select RT_USING_GIC_V2
  32. select RT_USING_FPU
  33. select ARCH_ARMV8
  34. select RT_SMP_AUTO_BOOT
  35. config USE_MA35D1_AARCH64
  36. bool
  37. select ARCH_ARMV8
  38. if USE_MA35D1_AARCH64
  39. config BSP_USING_GIC
  40. bool
  41. default y
  42. config BSP_USING_GICV2
  43. bool
  44. default y
  45. endif
  46. config USE_MA35D1_SUBM
  47. bool
  48. select ARCH_ARM_CORTEX_M4
  49. config RT_USING_FPU
  50. bool
  51. config BSP_USE_STDDRIVER_SOURCE
  52. bool "Build StdDriver source"
  53. default n
  54. menuconfig BSP_USING_PDMA
  55. bool "Enable Peripheral Direct Memory Access Controller(PDMA)"
  56. default y
  57. if BSP_USING_PDMA
  58. config BSP_USING_PDMA0
  59. bool "Enable PDMA0"
  60. depends on !USE_MA35D1_SUBM
  61. config BSP_USING_PDMA1
  62. bool "Enable PDMA1"
  63. depends on !USE_MA35D1_SUBM
  64. config BSP_USING_PDMA2
  65. bool "Enable PDMA2"
  66. config BSP_USING_PDMA3
  67. bool "Enable PDMA3"
  68. config NU_PDMA_MEMFUN_ACTOR_MAX
  69. int "Specify maximum mem actor for memfun"
  70. range 1 4
  71. default 2
  72. endif
  73. config BSP_USING_GPIO
  74. bool "Enable General Purpose I/O(GPIO)"
  75. select RT_USING_PIN
  76. default y
  77. menuconfig BSP_USING_GMAC
  78. bool "Enable Ethernet Gigabit MAC Controller(GMAC)"
  79. select RT_USING_LWIP
  80. select RT_USING_NETDEV
  81. depends on !USE_MA35D1_SUBM
  82. if BSP_USING_GMAC
  83. config BSP_USING_GMAC0
  84. bool "Enable GMAC0"
  85. config BSP_USING_GMAC1
  86. bool "Enable GMAC1"
  87. endif
  88. menuconfig BSP_USING_RTC
  89. bool "Enable Real Time Clock(RTC)"
  90. select RT_USING_RTC
  91. config NU_RTC_SUPPORT_IO_RW
  92. bool "Support device RW entry"
  93. depends on BSP_USING_RTC && RT_USING_RTC
  94. config NU_RTC_SUPPORT_MSH_CMD
  95. bool "Support module shell command"
  96. depends on BSP_USING_RTC && RT_USING_RTC
  97. menuconfig BSP_USING_ADC
  98. bool "Enable Analog-to-Digital Converter(ADC)"
  99. select RT_USING_ADC
  100. depends on !USE_MA35D1_SUBM
  101. if BSP_USING_ADC
  102. config BSP_USING_ADC_TOUCH
  103. bool "Enable ADC Touching function"
  104. select RT_USING_TOUCH
  105. default y
  106. endif
  107. menuconfig BSP_USING_CCAP
  108. bool "Enable Camera Capture Interface Controller(CCAP)"
  109. select RT_USING_PIN
  110. depends on !USE_MA35D1_SUBM
  111. if BSP_USING_CCAP
  112. config BSP_USING_CCAP0
  113. bool "Enable CCAP0"
  114. config BSP_USING_CCAP1
  115. bool "Enable CCAP1"
  116. endif
  117. menuconfig BSP_USING_EADC
  118. bool "Enable Enhanced Analog-to-Digital Converter(EADC)"
  119. select RT_USING_ADC
  120. if BSP_USING_EADC
  121. config BSP_USING_EADC0
  122. bool "Enable EADC0"
  123. endif
  124. menuconfig BSP_USING_TMR
  125. bool "Enable Timer Controller(TIMER)"
  126. if BSP_USING_TMR
  127. config BSP_USING_TIMER
  128. bool
  129. config BSP_USING_TPWM
  130. bool
  131. config BSP_USING_TMR0
  132. bool "Enable TIMER0"
  133. depends on BSP_USING_TMR && !USE_MA35D1_SUBM
  134. if BSP_USING_TMR0
  135. choice
  136. prompt "Select TIMER0 function mode"
  137. config BSP_USING_TIMER0
  138. select BSP_USING_TIMER
  139. select RT_USING_HWTIMER
  140. bool "Timer"
  141. help
  142. Choose this option if you need TIMER function mode.
  143. config BSP_USING_TPWM0
  144. select BSP_USING_TPWM
  145. select RT_USING_PWM
  146. bool "Timer PWM"
  147. help
  148. Choose this option if you need Timer PWM function mode.
  149. endchoice
  150. endif
  151. config BSP_USING_TMR1
  152. bool "Enable TIMER1"
  153. depends on BSP_USING_TMR && !USE_MA35D1_SUBM
  154. if BSP_USING_TMR1
  155. choice
  156. prompt "Select TIMER1 function mode"
  157. config BSP_USING_TIMER1
  158. select BSP_USING_TIMER
  159. select RT_USING_HWTIMER
  160. bool "Timer"
  161. help
  162. Choose this option if you need TIMER function mode.
  163. config BSP_USING_TPWM1
  164. select BSP_USING_TPWM
  165. select RT_USING_PWM
  166. bool "Timer PWM"
  167. help
  168. Choose this option if you need Timer PWM function mode.
  169. endchoice
  170. endif
  171. config BSP_USING_TMR2
  172. bool "Enable TIMER2"
  173. depends on BSP_USING_TMR
  174. if BSP_USING_TMR2
  175. choice
  176. prompt "Select TIMER2 function mode"
  177. config BSP_USING_TIMER2
  178. select BSP_USING_TIMER
  179. select RT_USING_HWTIMER
  180. bool "Timer"
  181. help
  182. Choose this option if you need TIMER function mode.
  183. config BSP_USING_TPWM2
  184. select BSP_USING_TPWM
  185. select RT_USING_PWM
  186. bool "Timer PWM"
  187. help
  188. Choose this option if you need Timer PWM function mode.
  189. endchoice
  190. endif
  191. config BSP_USING_TMR3
  192. bool "Enable TIMER3"
  193. depends on BSP_USING_TMR
  194. if BSP_USING_TMR3
  195. choice
  196. prompt "Select TIMER3 function mode"
  197. config BSP_USING_TIMER3
  198. select BSP_USING_TIMER
  199. select RT_USING_HWTIMER
  200. bool "Timer"
  201. help
  202. Choose this option if you need TIMER function mode.
  203. config BSP_USING_TPWM3
  204. select BSP_USING_TPWM
  205. select RT_USING_PWM
  206. bool "Timer PWM"
  207. help
  208. Choose this option if you need Timer PWM function mode.
  209. endchoice
  210. endif
  211. config BSP_USING_TMR4
  212. bool "Enable TIMER4"
  213. depends on BSP_USING_TMR
  214. if BSP_USING_TMR4
  215. choice
  216. prompt "Select TIMER4 function mode"
  217. config BSP_USING_TIMER4
  218. select BSP_USING_TIMER
  219. select RT_USING_HWTIMER
  220. bool "Timer"
  221. help
  222. Choose this option if you need TIMER function mode.
  223. config BSP_USING_TPWM4
  224. select BSP_USING_TPWM
  225. select RT_USING_PWM
  226. bool "Timer PWM"
  227. help
  228. Choose this option if you need Timer PWM function mode.
  229. endchoice
  230. endif
  231. config BSP_USING_TMR5
  232. bool "Enable TIMER5"
  233. depends on BSP_USING_TMR
  234. if BSP_USING_TMR5
  235. choice
  236. prompt "Select TIMER5 function mode"
  237. config BSP_USING_TIMER5
  238. select BSP_USING_TIMER
  239. select RT_USING_HWTIMER
  240. bool "Timer"
  241. help
  242. Choose this option if you need TIMER function mode.
  243. config BSP_USING_TPWM5
  244. select BSP_USING_TPWM
  245. select RT_USING_PWM
  246. bool "Timer PWM"
  247. help
  248. Choose this option if you need Timer PWM function mode.
  249. endchoice
  250. endif
  251. config BSP_USING_TMR6
  252. bool "Enable TIMER6"
  253. depends on BSP_USING_TMR
  254. if BSP_USING_TMR6
  255. choice
  256. prompt "Select TIMER6 function mode"
  257. config BSP_USING_TIMER6
  258. select BSP_USING_TIMER
  259. select RT_USING_HWTIMER
  260. bool "Timer"
  261. help
  262. Choose this option if you need TIMER function mode.
  263. config BSP_USING_TPWM6
  264. select BSP_USING_TPWM
  265. select RT_USING_PWM
  266. bool "Timer PWM"
  267. help
  268. Choose this option if you need Timer PWM function mode.
  269. endchoice
  270. endif
  271. config BSP_USING_TMR7
  272. bool "Enable TIMER7"
  273. depends on BSP_USING_TMR
  274. if BSP_USING_TMR7
  275. choice
  276. prompt "Select TIMER7 function mode"
  277. config BSP_USING_TIMER7
  278. select BSP_USING_TIMER
  279. select RT_USING_HWTIMER
  280. bool "Timer"
  281. help
  282. Choose this option if you need TIMER function mode.
  283. config BSP_USING_TPWM7
  284. select BSP_USING_TPWM
  285. select RT_USING_PWM
  286. bool "Timer PWM"
  287. help
  288. Choose this option if you need Timer PWM function mode.
  289. endchoice
  290. endif
  291. config BSP_USING_TMR8
  292. bool "Enable TIMER8"
  293. depends on BSP_USING_TMR
  294. if BSP_USING_TMR8
  295. choice
  296. prompt "Select TIMER8 function mode"
  297. config BSP_USING_TIMER8
  298. select BSP_USING_TIMER
  299. select RT_USING_HWTIMER
  300. bool "Timer"
  301. help
  302. Choose this option if you need TIMER function mode.
  303. config BSP_USING_TPWM8
  304. select BSP_USING_TPWM
  305. select RT_USING_PWM
  306. bool "Timer PWM"
  307. help
  308. Choose this option if you need Timer PWM function mode.
  309. endchoice
  310. endif
  311. config BSP_USING_TMR9
  312. bool "Enable TIMER9"
  313. depends on BSP_USING_TMR
  314. if BSP_USING_TMR9
  315. choice
  316. prompt "Select TIMER9 function mode"
  317. config BSP_USING_TIMER9
  318. select BSP_USING_TIMER
  319. select RT_USING_HWTIMER
  320. bool "Timer"
  321. help
  322. Choose this option if you need TIMER function mode.
  323. config BSP_USING_TPWM9
  324. select BSP_USING_TPWM
  325. select RT_USING_PWM
  326. bool "Timer PWM"
  327. help
  328. Choose this option if you need Timer PWM function mode.
  329. endchoice
  330. endif
  331. config BSP_USING_TMR10
  332. bool "Enable TIMER10"
  333. depends on BSP_USING_TMR
  334. if BSP_USING_TMR10
  335. choice
  336. prompt "Select TIMER10 function mode"
  337. config BSP_USING_TIMER10
  338. select BSP_USING_TIMER
  339. select RT_USING_HWTIMER
  340. bool "Timer"
  341. help
  342. Choose this option if you need TIMER function mode.
  343. config BSP_USING_TPWM10
  344. select BSP_USING_TPWM
  345. select RT_USING_PWM
  346. bool "Timer PWM"
  347. help
  348. Choose this option if you need Timer PWM function mode.
  349. endchoice
  350. endif
  351. config BSP_USING_TMR11
  352. bool "Enable TIMER11"
  353. depends on BSP_USING_TMR
  354. if BSP_USING_TMR11
  355. choice
  356. prompt "Select TIMER11 function mode"
  357. config BSP_USING_TIMER11
  358. select BSP_USING_TIMER
  359. select RT_USING_HWTIMER
  360. bool "Timer"
  361. help
  362. Choose this option if you need TIMER function mode.
  363. config BSP_USING_TPWM11
  364. select BSP_USING_TPWM
  365. select RT_USING_PWM
  366. bool "Timer PWM"
  367. help
  368. Choose this option if you need Timer PWM function mode.
  369. endchoice
  370. endif
  371. endif
  372. menuconfig BSP_USING_UART
  373. bool "Enable Universal Asynchronous Receiver/Transmitters(UART)"
  374. select RT_USING_SERIAL
  375. if BSP_USING_UART
  376. config BSP_USING_UART0
  377. bool "Enable UART0"
  378. depends on !USE_MA35D1_SUBM
  379. config BSP_USING_UART0_TX_DMA
  380. bool "Enable UART0 TX DMA"
  381. depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA
  382. config BSP_USING_UART0_RX_DMA
  383. bool "Enable UART0 RX DMA"
  384. depends on BSP_USING_UART0 && RT_SERIAL_USING_DMA
  385. config BSP_USING_UART1
  386. bool "Enable UART1"
  387. config BSP_USING_UART1_TX_DMA
  388. bool "Enable UART1 TX DMA"
  389. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  390. config BSP_USING_UART1_RX_DMA
  391. bool "Enable UART1 RX DMA"
  392. depends on BSP_USING_UART1 && RT_SERIAL_USING_DMA
  393. config BSP_USING_UART2
  394. bool "Enable UART2"
  395. config BSP_USING_UART2_TX_DMA
  396. bool "Enable UART2 TX DMA"
  397. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  398. config BSP_USING_UART2_RX_DMA
  399. bool "Enable UART2 RX DMA"
  400. depends on BSP_USING_UART2 && RT_SERIAL_USING_DMA
  401. config BSP_USING_UART3
  402. bool "Enable UART3"
  403. config BSP_USING_UART3_TX_DMA
  404. bool "Enable UART3 TX DMA"
  405. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  406. config BSP_USING_UART3_RX_DMA
  407. bool "Enable UART3 RX DMA"
  408. depends on BSP_USING_UART3 && RT_SERIAL_USING_DMA
  409. config BSP_USING_UART4
  410. bool "Enable UART4"
  411. config BSP_USING_UART4_TX_DMA
  412. bool "Enable UART4 TX DMA"
  413. depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
  414. config BSP_USING_UART4_RX_DMA
  415. bool "Enable UART4 RX DMA"
  416. depends on BSP_USING_UART4 && RT_SERIAL_USING_DMA
  417. config BSP_USING_UART5
  418. bool "Enable UART5"
  419. config BSP_USING_UART5_TX_DMA
  420. bool "Enable UART5 TX DMA"
  421. depends on BSP_USING_UART5 && RT_SERIAL_USING_DMA
  422. config BSP_USING_UART5_RX_DMA
  423. bool "Enable UART5 RX DMA"
  424. depends on BSP_USING_UART5 && RT_SERIAL_USING_DMA
  425. config BSP_USING_UART6
  426. bool "Enable UART6"
  427. config BSP_USING_UART6_TX_DMA
  428. bool "Enable UART6 TX DMA"
  429. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  430. config BSP_USING_UART6_RX_DMA
  431. bool "Enable UART6 RX DMA"
  432. depends on BSP_USING_UART6 && RT_SERIAL_USING_DMA
  433. config BSP_USING_UART7
  434. bool "Enable UART7"
  435. config BSP_USING_UART7_TX_DMA
  436. bool "Enable UART7 TX DMA"
  437. depends on BSP_USING_UART7 && RT_SERIAL_USING_DMA
  438. config BSP_USING_UART7_RX_DMA
  439. bool "Enable UART7 RX DMA"
  440. depends on BSP_USING_UART7 && RT_SERIAL_USING_DMA
  441. config BSP_USING_UART8
  442. bool "Enable UART8"
  443. config BSP_USING_UART8_TX_DMA
  444. bool "Enable UART8 TX DMA"
  445. depends on BSP_USING_UART8 && RT_SERIAL_USING_DMA
  446. config BSP_USING_UART8_RX_DMA
  447. bool "Enable UART8 RX DMA"
  448. depends on BSP_USING_UART8 && RT_SERIAL_USING_DMA
  449. config BSP_USING_UART9
  450. bool "Enable UART9"
  451. config BSP_USING_UART9_TX_DMA
  452. bool "Enable UART9 TX DMA"
  453. depends on BSP_USING_UART9 && RT_SERIAL_USING_DMA
  454. config BSP_USING_UART9_RX_DMA
  455. bool "Enable UART9 RX DMA"
  456. depends on BSP_USING_UART9 && RT_SERIAL_USING_DMA
  457. config BSP_USING_UART10
  458. bool "Enable UART10"
  459. config BSP_USING_UART10_TX_DMA
  460. bool "Enable UART10 TX DMA"
  461. depends on BSP_USING_UART10 && RT_SERIAL_USING_DMA
  462. config BSP_USING_UART10_RX_DMA
  463. bool "Enable UART10 RX DMA"
  464. depends on BSP_USING_UART10 && RT_SERIAL_USING_DMA
  465. config BSP_USING_UART11
  466. bool "Enable UART11"
  467. config BSP_USING_UART11_TX_DMA
  468. bool "Enable UART11 TX DMA"
  469. depends on BSP_USING_UART11 && RT_SERIAL_USING_DMA
  470. config BSP_USING_UART11_RX_DMA
  471. bool "Enable UART11 RX DMA"
  472. depends on BSP_USING_UART11 && RT_SERIAL_USING_DMA
  473. config BSP_USING_UART12
  474. bool "Enable UART12"
  475. config BSP_USING_UART12_TX_DMA
  476. bool "Enable UART12 TX DMA"
  477. depends on BSP_USING_UART12 && RT_SERIAL_USING_DMA
  478. config BSP_USING_UART12_RX_DMA
  479. bool "Enable UART12 RX DMA"
  480. depends on BSP_USING_UART12 && RT_SERIAL_USING_DMA
  481. config BSP_USING_UART13
  482. bool "Enable UART13"
  483. config BSP_USING_UART13_TX_DMA
  484. bool "Enable UART13 TX DMA"
  485. depends on BSP_USING_UART13 && RT_SERIAL_USING_DMA
  486. config BSP_USING_UART13_RX_DMA
  487. bool "Enable UART13 RX DMA"
  488. depends on BSP_USING_UART13 && RT_SERIAL_USING_DMA
  489. config BSP_USING_UART14
  490. bool "Enable UART14"
  491. config BSP_USING_UART14_TX_DMA
  492. bool "Enable UART14 TX DMA"
  493. depends on BSP_USING_UART14 && RT_SERIAL_USING_DMA
  494. config BSP_USING_UART14_RX_DMA
  495. bool "Enable UART14 RX DMA"
  496. depends on BSP_USING_UART14 && RT_SERIAL_USING_DMA
  497. config BSP_USING_UART15
  498. bool "Enable UART15"
  499. config BSP_USING_UART15_TX_DMA
  500. bool "Enable UART15 TX DMA"
  501. depends on BSP_USING_UART15 && RT_SERIAL_USING_DMA
  502. config BSP_USING_UART15_RX_DMA
  503. bool "Enable UART15 RX DMA"
  504. depends on BSP_USING_UART15 && RT_SERIAL_USING_DMA
  505. config BSP_USING_UART16
  506. bool "Enable UART16"
  507. config BSP_USING_UART16_TX_DMA
  508. bool "Enable UART16 TX DMA"
  509. depends on BSP_USING_UART16 && RT_SERIAL_USING_DMA
  510. config BSP_USING_UART16_RX_DMA
  511. bool "Enable UART16 RX DMA"
  512. depends on BSP_USING_UART16 && RT_SERIAL_USING_DMA
  513. endif
  514. menuconfig BSP_USING_I2C
  515. bool "Enable I2C Serial Interface Controller(I2C)"
  516. select RT_USING_I2C
  517. if BSP_USING_I2C
  518. config BSP_USING_I2C0
  519. bool "Enable I2C0"
  520. config BSP_USING_I2C1
  521. bool "Enable I2C1"
  522. config BSP_USING_I2C2
  523. bool "Enable I2C2"
  524. config BSP_USING_I2C3
  525. bool "Enable I2C3"
  526. config BSP_USING_I2C4
  527. bool "Enable I2C4"
  528. config BSP_USING_I2C5
  529. bool "Enable I2C5"
  530. endif
  531. menuconfig BSP_USING_SDH
  532. bool "Enable Secure Digital Host Controller(SDH)"
  533. select RT_USING_DFS
  534. select RT_USING_SDIO
  535. depends on !USE_MA35D1_SUBM
  536. if BSP_USING_SDH
  537. config BSP_USING_SDH0
  538. bool "Enable SDH0"
  539. config BSP_USING_SDH1
  540. bool "Enable SDH1"
  541. endif
  542. menuconfig BSP_USING_CANFD
  543. bool "Enable CAN with Flexible Data-rate(CAN FD)"
  544. select RT_USING_CAN
  545. if BSP_USING_CANFD
  546. config BSP_USING_CANFD0
  547. bool "Enable CANFD0"
  548. config BSP_USING_CANFD1
  549. bool "Enable CANFD1"
  550. config BSP_USING_CANFD2
  551. bool "Enable CANFD2"
  552. config BSP_USING_CANFD3
  553. bool "Enable CANFD3"
  554. endif
  555. menuconfig BSP_USING_EPWM
  556. bool "Enable EPWM Generator and Capture Timer(EPWM)"
  557. if BSP_USING_EPWM
  558. config BSP_USING_EPWM0
  559. bool "Enable EPWM0"
  560. depends on BSP_USING_EPWM && !USE_MA35D1_SUBM
  561. config BSP_USING_EPWM_CAPTURE
  562. bool
  563. if BSP_USING_EPWM0
  564. choice
  565. prompt "Select EPWM0 function mode"
  566. config BSP_USING_EPWM0_PWM
  567. select RT_USING_PWM
  568. bool "EPWM0 PWM"
  569. help
  570. Choose this option if you need PWM function mode.
  571. config BSP_USING_EPWM0_CAPTURE
  572. select RT_USING_INPUT_CAPTURE
  573. select BSP_USING_EPWM_CAPTURE
  574. bool "EPWM0 CAPTURE"
  575. help
  576. Choose this option if you need PWM capture function mode.
  577. endchoice
  578. endif
  579. config BSP_USING_EPWM1
  580. bool "Enable EPWM1"
  581. depends on BSP_USING_EPWM && !USE_MA35D1_SUBM
  582. if BSP_USING_EPWM1
  583. choice
  584. prompt "Select EPWM1 function mode"
  585. config BSP_USING_EPWM1_PWM
  586. select RT_USING_PWM
  587. bool "EPWM1 PWM"
  588. help
  589. Choose this option if you need PWM function mode.
  590. config BSP_USING_EPWM1_CAPTURE
  591. select RT_USING_INPUT_CAPTURE
  592. select BSP_USING_EPWM_CAPTURE
  593. bool "EPWM1 CAPTURE"
  594. help
  595. Choose this option if you need PWM capture function mode.
  596. endchoice
  597. endif
  598. config BSP_USING_EPWM2
  599. bool "Enable EPWM2"
  600. depends on BSP_USING_EPWM && !USE_MA35D1_SUBM
  601. if BSP_USING_EPWM2
  602. choice
  603. prompt "Select EPWM2 function mode"
  604. config BSP_USING_EPWM2_PWM
  605. select RT_USING_PWM
  606. bool "EPWM2 PWM"
  607. help
  608. Choose this option if you need PWM function mode.
  609. config BSP_USING_EPWM2_CAPTURE
  610. select RT_USING_INPUT_CAPTURE
  611. select BSP_USING_EPWM_CAPTURE
  612. bool "EPWM2 CAPTURE"
  613. help
  614. Choose this option if you need PWM capture function mode.
  615. endchoice
  616. endif
  617. endif
  618. menuconfig BSP_USING_SPI
  619. bool "Enable Serial Peripheral Interface(SPI)"
  620. select RT_USING_SPI
  621. if BSP_USING_SPI
  622. config BSP_USING_SPI_PDMA
  623. bool
  624. default n
  625. config BSP_USING_SPII2S
  626. bool
  627. choice
  628. prompt "Select SPI0 function mode"
  629. config BSP_USING_SPI0_NONE
  630. bool "NONE"
  631. help
  632. Choose this option if you need not SPI0.
  633. config BSP_USING_SPI0
  634. bool "Enable SPI0"
  635. help
  636. Choose this option if you need SPI function mode.
  637. config BSP_USING_SPII2S0
  638. select RT_USING_AUDIO
  639. select BSP_USING_SPII2S
  640. bool "Enable SPII2S0"
  641. help
  642. Choose this option if you need SPII2S function mode.
  643. endchoice
  644. if BSP_USING_SPI0
  645. config BSP_USING_SPI0_PDMA
  646. bool "Enable PDMA for SPI0"
  647. select BSP_USING_SPI_PDMA
  648. depends on BSP_USING_SPI0
  649. endif
  650. choice
  651. prompt "Select SPI1 function mode"
  652. config BSP_USING_SPI1_NONE
  653. bool "NONE"
  654. help
  655. Choose this option if you need not SPI1.
  656. config BSP_USING_SPI1
  657. bool "Enable SPI1"
  658. help
  659. Choose this option if you need SPI function mode.
  660. config BSP_USING_SPII2S1
  661. select RT_USING_AUDIO
  662. select BSP_USING_SPII2S
  663. bool "Enable SPII2S1"
  664. help
  665. Choose this option if you need SPII2S function mode.
  666. endchoice
  667. if BSP_USING_SPI1
  668. config BSP_USING_SPI1_PDMA
  669. bool "Enable PDMA for SPI1"
  670. select BSP_USING_SPI_PDMA
  671. depends on BSP_USING_SPI1
  672. endif
  673. choice
  674. prompt "Select SPI2 function mode"
  675. config BSP_USING_SPI2_NONE
  676. bool "NONE"
  677. help
  678. Choose this option if you need not SPI2.
  679. config BSP_USING_SPI2
  680. bool "Enable SPI2"
  681. help
  682. Choose this option if you need SPI function mode.
  683. config BSP_USING_SPII2S2
  684. select RT_USING_AUDIO
  685. select BSP_USING_SPII2S
  686. bool "Enable SPII2S2"
  687. help
  688. Choose this option if you need SPII2S function mode.
  689. endchoice
  690. if BSP_USING_SPI2
  691. config BSP_USING_SPI1_PDMA
  692. bool "Enable PDMA for SPI2"
  693. select BSP_USING_SPI_PDMA
  694. depends on BSP_USING_SPI2
  695. endif
  696. choice
  697. prompt "Select SPI3 function mode"
  698. config BSP_USING_SPI3_NONE
  699. bool "NONE"
  700. help
  701. Choose this option if you need not SPI3.
  702. config BSP_USING_SPI3
  703. bool "Enable SPI3"
  704. help
  705. Choose this option if you need SPI function mode.
  706. config BSP_USING_SPII2S3
  707. select RT_USING_AUDIO
  708. select BSP_USING_SPII2S
  709. bool "Enable SPII2S3"
  710. help
  711. Choose this option if you need SPII2S function mode.
  712. endchoice
  713. if BSP_USING_SPI3
  714. config BSP_USING_SPI3_PDMA
  715. bool "Enable PDMA for SPI3"
  716. select BSP_USING_SPI_PDMA
  717. depends on BSP_USING_SPI3
  718. endif
  719. endif
  720. menuconfig BSP_USING_I2S
  721. bool "Enable I2S Controller(I2S)"
  722. select RT_USING_AUDIO
  723. if BSP_USING_I2S
  724. config BSP_USING_I2S0
  725. bool "Enable I2S0"
  726. config BSP_USING_I2S1
  727. bool "Enable I2S1"
  728. config NU_I2S_DMA_FIFO_SIZE
  729. int "DMA Buffer size of capture and playback"
  730. range 2048 4096
  731. default 2048
  732. endif
  733. menuconfig BSP_USING_QSPI
  734. bool "Enable Quad Serial Peripheral Interface(QSPI)"
  735. select RT_USING_SPI
  736. select RT_USING_QSPI
  737. select BSP_USING_SPI
  738. if BSP_USING_QSPI
  739. config BSP_USING_QSPI_PDMA
  740. bool
  741. select BSP_USING_SPI_PDMA
  742. default n
  743. config BSP_USING_QSPI0
  744. bool "Enable QSPI0"
  745. config BSP_USING_QSPI0_PDMA
  746. bool "Enable PDMA for QSPI0"
  747. select BSP_USING_QSPI_PDMA
  748. depends on BSP_USING_QSPI0
  749. config BSP_USING_QSPI1
  750. bool "Enable QSPI1"
  751. config BSP_USING_QSPI1_PDMA
  752. bool "Enable PDMA for QSPI1"
  753. select BSP_USING_QSPI_PDMA
  754. depends on BSP_USING_QSPI1
  755. endif
  756. menuconfig BSP_USING_SCUART
  757. bool "Enable Smart Card Host Interface - UART(SCUART)"
  758. if BSP_USING_SCUART
  759. config BSP_USING_SCUART0
  760. bool "Enable SCUART0"
  761. config BSP_USING_SCUART1
  762. bool "Enable SCUART1"
  763. endif
  764. menuconfig BSP_USING_ECAP
  765. bool "Enable Enhanced Input Capture Timer(ECAP)"
  766. select RT_USING_INPUT_CAPTURE
  767. if BSP_USING_ECAP
  768. config BSP_USING_ECAP0
  769. select RT_USING_INPUT_CAPTURE
  770. bool "Enable ECAP0"
  771. help
  772. Choose this option if you need ECAP0.
  773. config BSP_USING_ECAP1
  774. select RT_USING_INPUT_CAPTURE
  775. bool "Enable ECAP1"
  776. help
  777. Choose this option if you need ECAP1.
  778. config BSP_USING_ECAP2
  779. select RT_USING_INPUT_CAPTURE
  780. bool "Enable ECAP2"
  781. help
  782. Choose this option if you need ECAP2.
  783. endif
  784. menuconfig BSP_USING_QEI
  785. bool "Enable Quadrature Encoder Interface(QEI)"
  786. if BSP_USING_QEI
  787. config BSP_USING_QEI0
  788. bool "Enable QEI0"
  789. select RT_USING_PULSE_ENCODER
  790. config BSP_USING_QEI1
  791. bool "Enable QEI1"
  792. select RT_USING_PULSE_ENCODER
  793. config BSP_USING_QEI2
  794. bool "Enable QEI2"
  795. select RT_USING_PULSE_ENCODER
  796. endif
  797. menuconfig BSP_USING_SOFT_I2C
  798. bool "Enable SOFT I2C"
  799. if BSP_USING_SOFT_I2C
  800. config BSP_USING_SOFT_I2C0
  801. bool "Enable SOFT I2C0"
  802. select RT_USING_I2C
  803. select RT_USING_I2C_BITOPS
  804. default n
  805. if BSP_USING_SOFT_I2C0
  806. config BSP_SOFT_I2C0_SCL_PIN
  807. hex "Specify the pin index of SCL of SOFT I2C0"
  808. range 0 0xDF
  809. default 0x19
  810. config BSP_SOFT_I2C0_SDA_PIN
  811. hex "Specify the pin index of SDA of SOFT I2C0"
  812. range 0 0xDF
  813. default 0x18
  814. endif
  815. config BSP_USING_SOFT_I2C1
  816. bool "Enable SOFT I2C1"
  817. select RT_USING_I2C
  818. select RT_USING_I2C_BITOPS
  819. default n
  820. if BSP_USING_SOFT_I2C1
  821. config BSP_SOFT_I2C1_SCL_PIN
  822. hex "Specify the pin index of SCL of SOFT I2C1"
  823. range 0 0xDF
  824. default 0x0B
  825. config BSP_SOFT_I2C1_SDA_PIN
  826. hex "Specify the pin index of SDA of SOFT I2C1"
  827. range 0 0xDF
  828. default 0x0A
  829. endif
  830. endif
  831. config BSP_USING_DISP
  832. bool "Enable Display"
  833. depends on !USE_MA35D1_SUBM
  834. default y
  835. if BSP_USING_DISP
  836. choice
  837. prompt "Select Supported LCM panel"
  838. default LCM_USING_FW070TFT_WSVGA
  839. config LCM_USING_FW070TFT_WSVGA
  840. bool "eDispLcd_1024x600(1024x600-RGB888)"
  841. config LCM_USING_FW070TFT_WVGA
  842. bool "eDispLcd_800x480(800x480-RGB888)"
  843. config LCM_USING_FHD
  844. bool "eDispLcd_1920x1080(1920x1080-RGB888)"
  845. endchoice
  846. config DISP_USING_LCD_IDX
  847. int
  848. default 0 if LCM_USING_FW070TFT_WSVGA
  849. default 1 if LCM_USING_FW070TFT_WVGA
  850. default 2 if LCM_USING_FHD
  851. config BSP_LCD_BPP
  852. int
  853. default 32 if LCM_USING_FW070TFT_WSVGA
  854. default 32 if LCM_USING_FW070TFT_WVGA
  855. default 32 if LCM_USING_FHD
  856. config BSP_LCD_WIDTH
  857. int
  858. default 1024 if LCM_USING_FW070TFT_WSVGA
  859. default 800 if LCM_USING_FW070TFT_WVGA
  860. default 1920 if LCM_USING_FHD
  861. config BSP_LCD_HEIGHT
  862. int
  863. default 600 if LCM_USING_FW070TFT_WSVGA
  864. default 480 if LCM_USING_FW070TFT_WVGA
  865. default 1080 if LCM_USING_FHD
  866. config DISP_USING_OVERLAY
  867. bool "Enable Overlay layer"
  868. default n
  869. endif
  870. config BSP_USING_WDT
  871. bool "Enable Watchdog Timer(WDT)"
  872. select RT_USING_WDT
  873. default y
  874. if BSP_USING_WDT
  875. config BSP_USING_WDT0
  876. bool "Enable WDT0"
  877. select RT_USING_WATCHDOG
  878. depends on !USE_MA35D1_SUBM
  879. default n
  880. config BSP_USING_WDT1
  881. bool "Enable WDT1"
  882. select RT_USING_WATCHDOG
  883. depends on !USE_MA35D1_SUBM
  884. default n
  885. config BSP_USING_WDT2
  886. bool "Enable WDT2"
  887. select RT_USING_WATCHDOG
  888. default n
  889. endif
  890. config BSP_USING_HWSEM
  891. bool "Enable Hardware semaphore(HWSEM)"
  892. default y
  893. if BSP_USING_HWSEM
  894. config BSP_USING_HWSEM0
  895. bool "Enable HWSEM0"
  896. default y
  897. endif
  898. config BSP_USING_WHC
  899. bool "Enable Wormhole(WHC)"
  900. default y
  901. if BSP_USING_WHC
  902. config BSP_USING_WHC0
  903. bool "Enable WHC0"
  904. default y
  905. config BSP_USING_WHC1
  906. bool "Enable WHC1"
  907. depends on !USE_MA35D1_SUBM
  908. default n
  909. endif
  910. config BSP_USING_NFI
  911. bool "Enable Raw NAND flash Interface(NFI)"
  912. depends on !USE_MA35D1_SUBM
  913. default y
  914. config BSP_USING_EBI
  915. bool "Enable External Bus Interface(EBI)"
  916. default n
  917. config BSP_USING_USBH
  918. bool "Enable USB Host Controller(USBH)"
  919. select RT_USING_USB_HOST
  920. select RT_USBH_MSTORAGE
  921. depends on !USE_MA35D1_SUBM
  922. if BSP_USING_USBH
  923. config BSP_USING_HSUSBH0
  924. bool "Enable HSUSBH0"
  925. default y
  926. config BSP_USING_HSUSBH1
  927. bool "Enable HSUSBH1"
  928. default y
  929. endif