Kconfig 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504
  1. config SOC_SERIES_N9H30
  2. bool
  3. select ARCH_ARM_ARM9
  4. select SOC_FAMILY_NUMICRO
  5. select RT_USING_COMPONENTS_INIT
  6. select RT_USING_USER_MAIN
  7. default y
  8. config BSP_USE_STDDRIVER_SOURCE
  9. bool "Build StdDriver source"
  10. default n
  11. config BSP_USING_MMU
  12. bool "Enable MMU"
  13. default y
  14. config BSP_USING_GPIO
  15. bool "Enable General Purpose I/O(GPIO)"
  16. select RT_USING_PIN
  17. default y
  18. menuconfig BSP_USING_CLK
  19. bool "Enable Clock Controller(CLK)"
  20. select RT_USING_PM
  21. select BSP_USING_TMR
  22. default y
  23. help
  24. Choose this option if you need CLK/PM function.
  25. Notice: Enable the option will hold timer3 resource
  26. if BSP_USING_CLK
  27. config NU_CLK_INVOKE_WKTMR
  28. bool "Enable SPD1 and DPD mode wakeup timer. (About 6.6 Secs)"
  29. default y
  30. endif
  31. menuconfig BSP_USING_EMAC
  32. bool "Enable Ethernet MAC Controller(EMAC)"
  33. select RT_USING_LWIP
  34. select RT_USING_NETDEV
  35. if BSP_USING_EMAC
  36. config BSP_USING_EMAC0
  37. bool "Enable EMAC0"
  38. config BSP_USING_EMAC1
  39. bool "Enable EMAC1"
  40. endif
  41. menuconfig BSP_USING_RTC
  42. bool "Enable Real Time Clock(RTC)"
  43. select RT_USING_RTC
  44. config NU_RTC_SUPPORT_IO_RW
  45. bool "Support device RW entry"
  46. depends on BSP_USING_RTC && RT_USING_RTC
  47. config NU_RTC_SUPPORT_MSH_CMD
  48. bool "Support module shell command"
  49. depends on BSP_USING_RTC && RT_USING_RTC
  50. menuconfig BSP_USING_ADC
  51. bool "Enable Analog-to-Digital Converter(ADC)"
  52. select RT_USING_ADC
  53. if BSP_USING_ADC
  54. config BSP_USING_ADC_TOUCH
  55. bool "Enable ADC Touching function"
  56. select RT_USING_TOUCH
  57. default y
  58. endif
  59. menuconfig BSP_USING_ETMR
  60. bool "Enable Enhance Timer Controller(ETIMER)"
  61. if BSP_USING_ETMR
  62. config BSP_USING_ETIMER
  63. bool
  64. config BSP_USING_ETIMER_CAPTURE
  65. bool
  66. config BSP_USING_ETMR0
  67. bool "Enable ETIMER0"
  68. depends on BSP_USING_ETMR
  69. if BSP_USING_ETMR0
  70. choice
  71. prompt "Select ETIMER0 function mode"
  72. config BSP_USING_ETIMER0
  73. select BSP_USING_ETIMER
  74. select RT_USING_HWTIMER
  75. bool "ETIMER"
  76. help
  77. Choose this option if you need TIMER function mode.
  78. config BSP_USING_ETIMER0_CAPTURE
  79. select BSP_USING_ETIMER_CAPTURE
  80. select RT_USING_INPUT_CAPTURE
  81. bool "ETIMER CAPTURE"
  82. help
  83. Choose this option if you need CAPTURE function mode.
  84. endchoice
  85. endif
  86. config BSP_USING_ETMR1
  87. bool "Enable ETIMER1"
  88. depends on BSP_USING_ETMR
  89. if BSP_USING_ETMR1
  90. choice
  91. prompt "Select ETIMER1 function mode"
  92. config BSP_USING_ETIMER1
  93. select BSP_USING_ETIMER
  94. select RT_USING_HWTIMER
  95. bool "ETIMER"
  96. help
  97. Choose this option if you need TIMER function mode.
  98. config BSP_USING_ETIMER1_CAPTURE
  99. select BSP_USING_ETIMER_CAPTURE
  100. select RT_USING_INPUT_CAPTURE
  101. bool "ETIMER CAPTURE"
  102. help
  103. Choose this option if you need CAPTURE function mode.
  104. endchoice
  105. endif
  106. config BSP_USING_ETMR2
  107. bool "Enable ETIMER2"
  108. depends on BSP_USING_ETMR
  109. if BSP_USING_ETMR2
  110. choice
  111. prompt "Select ETIMER2 function mode"
  112. config BSP_USING_ETIMER2
  113. select BSP_USING_ETIMER
  114. select RT_USING_HWTIMER
  115. bool "ETIMER"
  116. help
  117. Choose this option if you need TIMER function mode.
  118. config BSP_USING_ETIMER2_CAPTURE
  119. select BSP_USING_ETIMER_CAPTURE
  120. select RT_USING_INPUT_CAPTURE
  121. bool "ETIMER CAPTURE"
  122. help
  123. Choose this option if you need CAPTURE function mode.
  124. endchoice
  125. endif
  126. config BSP_USING_ETMR3
  127. bool "Enable ETIMER3"
  128. depends on BSP_USING_ETMR
  129. if BSP_USING_ETMR3
  130. choice
  131. prompt "Select ETIMER3 function mode"
  132. config BSP_USING_ETIMER3
  133. select BSP_USING_ETIMER
  134. select RT_USING_HWTIMER
  135. bool "ETIMER"
  136. help
  137. Choose this option if you need TIMER function mode.
  138. config BSP_USING_ETIMER3_CAPTURE
  139. select BSP_USING_ETIMER_CAPTURE
  140. select RT_USING_INPUT_CAPTURE
  141. bool "ETIMER CAPTURE"
  142. help
  143. Choose this option if you need CAPTURE function mode.
  144. endchoice
  145. endif
  146. endif
  147. menuconfig BSP_USING_TMR
  148. bool "Enable Timer Controller(TIMER)"
  149. if BSP_USING_TMR
  150. config BSP_USING_TIMER
  151. bool
  152. config BSP_USING_TIMER0
  153. select BSP_USING_TIMER
  154. select RT_USING_HWTIMER
  155. bool "TIMER0"
  156. help
  157. Choose this option if you need TIMER function mode.
  158. config BSP_USING_TIMER1
  159. select BSP_USING_TIMER
  160. select RT_USING_HWTIMER
  161. bool "TIMER1"
  162. help
  163. Choose this option if you need TIMER function mode.
  164. config BSP_USING_TIMER2
  165. select BSP_USING_TIMER
  166. select RT_USING_HWTIMER
  167. bool "TIMER2"
  168. help
  169. Choose this option if you need TIMER function mode.
  170. config BSP_USING_TIMER3
  171. select BSP_USING_TIMER
  172. select RT_USING_HWTIMER
  173. bool "TIMER3"
  174. help
  175. Choose this option if you need TIMER function mode.
  176. endif
  177. menuconfig BSP_USING_UART
  178. bool "Enable Universal Asynchronous Receiver/Transmitters(UART)"
  179. select RT_USING_SERIAL
  180. if BSP_USING_UART
  181. config BSP_USING_UART0
  182. bool "Enable UART0"
  183. config BSP_USING_UART1
  184. bool "Enable UART1"
  185. config BSP_USING_UART2
  186. bool "Enable UART2"
  187. config BSP_USING_UART3
  188. bool "Enable UART3"
  189. config BSP_USING_UART4
  190. bool "Enable UART4"
  191. config BSP_USING_UART5
  192. bool "Enable UART5"
  193. config BSP_USING_UART6
  194. bool "Enable UART6"
  195. config BSP_USING_UART7
  196. bool "Enable UART7"
  197. config BSP_USING_UART8
  198. bool "Enable UART8"
  199. config BSP_USING_UART9
  200. bool "Enable UART9"
  201. config BSP_USING_UART10
  202. bool "Enable UART10"
  203. endif
  204. menuconfig BSP_USING_I2C
  205. bool "Enable I2C Serial Interface Controller(I2C)"
  206. select RT_USING_I2C
  207. if BSP_USING_I2C
  208. config BSP_USING_I2C0
  209. bool "Enable I2C0"
  210. config BSP_USING_I2C1
  211. bool "Enable I2C1"
  212. endif
  213. menuconfig BSP_USING_SDH
  214. bool "Enable Secure Digital Host Controller(SDH)"
  215. select RT_USING_DFS
  216. if BSP_USING_SDH
  217. config BSP_USING_EMMC
  218. bool "Enable FMI_EMMC"
  219. config BSP_USING_SDH0
  220. bool "Enable SDH_PORT0"
  221. config BSP_USING_SDH1
  222. bool "Enable SDH_PORT1"
  223. config NU_SDH_HOTPLUG
  224. bool "Using HOTPLUG"
  225. default y
  226. config NU_SDH_MOUNT_ON_ROOT
  227. bool "Mount on root"
  228. endif
  229. menuconfig BSP_USING_CAN
  230. bool "Enable Controller Area Network(CAN)"
  231. select RT_USING_CAN
  232. if BSP_USING_CAN
  233. config BSP_USING_CAN0
  234. bool "Enable CAN0"
  235. config BSP_USING_CAN1
  236. bool "Enable CAN1"
  237. endif
  238. menuconfig BSP_USING_PWM
  239. bool "Enable PWM Generator (PWM)"
  240. select RT_USING_PWM
  241. if BSP_USING_PWM
  242. config BSP_USING_PWM0
  243. select RT_USING_PWM
  244. bool "Enable PWM0"
  245. help
  246. Choose this option if you need PWM function mode.
  247. endif
  248. menuconfig BSP_USING_QSPI
  249. bool "Enable Quad Serial Peripheral Interface(QSPI)"
  250. select RT_USING_SPI
  251. if BSP_USING_QSPI
  252. choice
  253. prompt "Select QSPI0 function mode"
  254. config BSP_USING_QSPI0_NONE
  255. bool "NONE"
  256. help
  257. Choose this option if you need not QSPI0.
  258. config BSP_USING_QSPI0
  259. bool "Enable QSPI0"
  260. help
  261. Choose this option if you need QSPI function mode.
  262. endchoice
  263. choice
  264. prompt "Select QSPI1 function mode"
  265. config BSP_USING_QSPI1_NONE
  266. bool "NONE"
  267. help
  268. Choose this option if you need not QSPI1.
  269. config BSP_USING_QSPI1
  270. bool "Enable QSPI1"
  271. help
  272. Choose this option if you need QSPI function mode.
  273. endchoice
  274. endif
  275. config BSP_USING_I2S
  276. bool "Enable I2S Controller(I2S)"
  277. select RT_USING_AUDIO
  278. if BSP_USING_I2S
  279. config NU_I2S_DMA_FIFO_SIZE
  280. int "DMA Buffer size of capture and playback"
  281. range 2048 4096
  282. default 2048
  283. endif
  284. menuconfig BSP_USING_SCUART
  285. bool "Enable Smart Card Host Interface - UART(SCUART)"
  286. if BSP_USING_SCUART
  287. config BSP_USING_SCUART0
  288. bool "Enable SCUART0"
  289. config BSP_USING_SCUART1
  290. bool "Enable SCUART1"
  291. endif
  292. menuconfig BSP_USING_CRYPTO
  293. bool "Enable Cryptographic Accelerator(CRYPTO)"
  294. select RT_USING_HWCRYPTO
  295. select RT_HWCRYPTO_USING_AES
  296. select RT_HWCRYPTO_USING_AES_ECB
  297. select RT_HWCRYPTO_USING_AES_CBC
  298. select RT_HWCRYPTO_USING_AES_CFB
  299. select RT_HWCRYPTO_USING_AES_CTR
  300. select RT_HWCRYPTO_USING_AES_CFB
  301. select RT_HWCRYPTO_USING_AES_OFB
  302. select RT_HWCRYPTO_USING_SHA1
  303. select RT_HWCRYPTO_USING_SHA2
  304. select RT_HWCRYPTO_USING_SHA2_224
  305. select RT_HWCRYPTO_USING_SHA2_256
  306. select RT_HWCRYPTO_USING_SHA2_384
  307. select RT_HWCRYPTO_USING_SHA2_512
  308. select RT_HWCRYPTO_USING_RNG
  309. if BSP_USING_CRYPTO
  310. config NU_PRNG_USE_SEED
  311. bool "Use specified seed value."
  312. help
  313. Specify the seed value to PRNG.
  314. if NU_PRNG_USE_SEED
  315. config NU_PRNG_SEED_VALUE
  316. hex "Enter seed value"
  317. range 0 0xFFFFFFFF
  318. default 0
  319. endif
  320. endif
  321. menuconfig BSP_USING_SOFT_I2C
  322. bool "Enable SOFT I2C"
  323. if BSP_USING_SOFT_I2C
  324. config BSP_USING_SOFT_I2C0
  325. bool "Enable SOFT I2C0"
  326. select RT_USING_I2C
  327. select RT_USING_I2C_BITOPS
  328. default n
  329. if BSP_USING_SOFT_I2C0
  330. config BSP_SOFT_I2C0_SCL_PIN
  331. hex "Specify the pin index of SCL of SOFT I2C0"
  332. range 0 0x7F
  333. default 0x18
  334. config BSP_SOFT_I2C0_SDA_PIN
  335. hex "Specify the pin index of SDA of SOFT I2C0"
  336. range 0 0x7F
  337. default 0x17
  338. endif
  339. config BSP_USING_SOFT_I2C1
  340. bool "Enable SOFT I2C1"
  341. select RT_USING_I2C
  342. select RT_USING_I2C_BITOPS
  343. default n
  344. if BSP_USING_SOFT_I2C1
  345. config BSP_SOFT_I2C1_SCL_PIN
  346. hex "Specify the pin index of SCL of SOFT I2C1"
  347. range 0 0x7F
  348. default 0x0B
  349. config BSP_SOFT_I2C1_SDA_PIN
  350. hex "Specify the pin index of SDA of SOFT I2C1"
  351. range 0 0x7F
  352. default 0x0A
  353. endif
  354. endif
  355. config BSP_USING_WDT
  356. bool "Enable Watchdog Timer(WDT)"
  357. select RT_USING_WDT
  358. default y
  359. config BSP_USING_EBI
  360. bool "Enable External Bus Interface(EBI)"
  361. default n
  362. config BSP_USING_VPOST
  363. bool "Enable LCD Display engine(VPOST)"
  364. default y
  365. if BSP_USING_VPOST
  366. choice
  367. prompt "Select Supported LCM panel"
  368. default LCM_USING_FW070TFT
  369. config LCM_USING_E50A2V1
  370. bool "LCM_E50A2V1(800x480x2)"
  371. config LCM_USING_LSA40AT9001
  372. bool "LCM_LSA40AT9001(800x600x2)"
  373. config LCM_USING_FW070TFT
  374. bool "LCM_FW070TFT(800x480x4)"
  375. endchoice
  376. config VPOST_USING_LCD_IDX
  377. int
  378. default 0 if LCM_USING_E50A2V1
  379. default 2 if LCM_USING_LSA40AT9001
  380. default 3 if LCM_USING_FW070TFT
  381. config LCM_USING_BPP
  382. int
  383. default 2 if LCM_USING_E50A2V1
  384. default 2 if LCM_USING_LSA40AT9001
  385. default 4 if LCM_USING_FW070TFT
  386. config BSP_USING_VPOST_OSD
  387. bool "Enable VPOST OSD layer"
  388. default n
  389. endif
  390. config BSP_USING_USBD
  391. bool "Enable USB Device Controller(USBD)"
  392. select RT_USING_USB_DEVICE
  393. config BSP_USING_USBH
  394. bool "Enable USB Host Controller(USBH)"
  395. select RT_USING_USB_HOST
  396. select RT_USBH_MSTORAGE