Kconfig 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534
  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. config BSP_USING_FMINAND
  148. bool "Enable FMI NAND Controller"
  149. select RT_USING_MTD_NAND
  150. default y
  151. menuconfig BSP_USING_TMR
  152. bool "Enable Timer Controller(TIMER)"
  153. if BSP_USING_TMR
  154. config BSP_USING_TIMER
  155. bool
  156. config BSP_USING_TIMER0
  157. select BSP_USING_TIMER
  158. select RT_USING_HWTIMER
  159. bool "TIMER0"
  160. help
  161. Choose this option if you need TIMER function mode.
  162. config BSP_USING_TIMER1
  163. select BSP_USING_TIMER
  164. select RT_USING_HWTIMER
  165. bool "TIMER1"
  166. help
  167. Choose this option if you need TIMER function mode.
  168. config BSP_USING_TIMER2
  169. select BSP_USING_TIMER
  170. select RT_USING_HWTIMER
  171. bool "TIMER2"
  172. help
  173. Choose this option if you need TIMER function mode.
  174. config BSP_USING_TIMER3
  175. select BSP_USING_TIMER
  176. select RT_USING_HWTIMER
  177. bool "TIMER3"
  178. help
  179. Choose this option if you need TIMER function mode.
  180. endif
  181. menuconfig BSP_USING_UART
  182. bool "Enable Universal Asynchronous Receiver/Transmitters(UART)"
  183. select RT_USING_SERIAL
  184. if BSP_USING_UART
  185. config BSP_USING_UART0
  186. bool "Enable UART0"
  187. config BSP_USING_UART1
  188. bool "Enable UART1"
  189. config BSP_USING_UART2
  190. bool "Enable UART2"
  191. config BSP_USING_UART3
  192. bool "Enable UART3"
  193. config BSP_USING_UART4
  194. bool "Enable UART4"
  195. config BSP_USING_UART5
  196. bool "Enable UART5"
  197. config BSP_USING_UART6
  198. bool "Enable UART6"
  199. config BSP_USING_UART7
  200. bool "Enable UART7"
  201. config BSP_USING_UART8
  202. bool "Enable UART8"
  203. config BSP_USING_UART9
  204. bool "Enable UART9"
  205. config BSP_USING_UART10
  206. bool "Enable UART10"
  207. endif
  208. menuconfig BSP_USING_I2C
  209. bool "Enable I2C Serial Interface Controller(I2C)"
  210. select RT_USING_I2C
  211. if BSP_USING_I2C
  212. config BSP_USING_I2C0
  213. bool "Enable I2C0"
  214. config BSP_USING_I2C1
  215. bool "Enable I2C1"
  216. endif
  217. menuconfig BSP_USING_SDH
  218. bool "Enable Secure Digital Host Controller(SDH)"
  219. select RT_USING_DFS
  220. select DFS_USING_POSIX
  221. if BSP_USING_SDH
  222. config BSP_USING_EMMC
  223. bool "Enable FMI_EMMC"
  224. config BSP_USING_SDH0
  225. bool "Enable SDH_PORT0"
  226. config BSP_USING_SDH1
  227. bool "Enable SDH_PORT1"
  228. config NU_SDH_HOTPLUG
  229. bool "Using HOTPLUG"
  230. default y
  231. config NU_SDH_MOUNT_ON_ROOT
  232. bool "Mount on root"
  233. endif
  234. menuconfig BSP_USING_CAN
  235. bool "Enable Controller Area Network(CAN)"
  236. select RT_USING_CAN
  237. if BSP_USING_CAN
  238. config BSP_USING_CAN0
  239. bool "Enable CAN0"
  240. config BSP_USING_CAN1
  241. bool "Enable CAN1"
  242. endif
  243. menuconfig BSP_USING_PWM
  244. bool "Enable PWM Generator (PWM)"
  245. select RT_USING_PWM
  246. if BSP_USING_PWM
  247. config BSP_USING_PWM0
  248. select RT_USING_PWM
  249. bool "Enable PWM0"
  250. help
  251. Choose this option if you need PWM function mode.
  252. endif
  253. menuconfig BSP_USING_QSPI
  254. bool "Enable Quad Serial Peripheral Interface(QSPI)"
  255. select RT_USING_SPI
  256. if BSP_USING_QSPI
  257. choice
  258. prompt "Select QSPI0 function mode"
  259. config BSP_USING_QSPI0_NONE
  260. bool "NONE"
  261. help
  262. Choose this option if you need not QSPI0.
  263. config BSP_USING_QSPI0
  264. bool "Enable QSPI0"
  265. help
  266. Choose this option if you need QSPI function mode.
  267. endchoice
  268. choice
  269. prompt "Select QSPI1 function mode"
  270. config BSP_USING_QSPI1_NONE
  271. bool "NONE"
  272. help
  273. Choose this option if you need not QSPI1.
  274. config BSP_USING_QSPI1
  275. bool "Enable QSPI1"
  276. help
  277. Choose this option if you need QSPI function mode.
  278. endchoice
  279. endif
  280. config BSP_USING_I2S
  281. bool "Enable I2S Controller(I2S)"
  282. select RT_USING_AUDIO
  283. if BSP_USING_I2S
  284. config NU_I2S_DMA_FIFO_SIZE
  285. int "DMA Buffer size of capture and playback"
  286. range 2048 4096
  287. default 2048
  288. endif
  289. menuconfig BSP_USING_SCUART
  290. bool "Enable Smart Card Host Interface - UART(SCUART)"
  291. if BSP_USING_SCUART
  292. config BSP_USING_SCUART0
  293. bool "Enable SCUART0"
  294. config BSP_USING_SCUART1
  295. bool "Enable SCUART1"
  296. endif
  297. menuconfig BSP_USING_CRYPTO
  298. bool "Enable Cryptographic Accelerator(CRYPTO)"
  299. select RT_USING_HWCRYPTO
  300. select RT_HWCRYPTO_USING_AES
  301. select RT_HWCRYPTO_USING_AES_ECB
  302. select RT_HWCRYPTO_USING_AES_CBC
  303. select RT_HWCRYPTO_USING_AES_CFB
  304. select RT_HWCRYPTO_USING_AES_CTR
  305. select RT_HWCRYPTO_USING_AES_CFB
  306. select RT_HWCRYPTO_USING_AES_OFB
  307. select RT_HWCRYPTO_USING_SHA1
  308. select RT_HWCRYPTO_USING_SHA2
  309. select RT_HWCRYPTO_USING_SHA2_224
  310. select RT_HWCRYPTO_USING_SHA2_256
  311. select RT_HWCRYPTO_USING_SHA2_384
  312. select RT_HWCRYPTO_USING_SHA2_512
  313. select RT_HWCRYPTO_USING_RNG
  314. if BSP_USING_CRYPTO
  315. config NU_PRNG_USE_SEED
  316. bool "Use specified seed value."
  317. help
  318. Specify the seed value to PRNG.
  319. if NU_PRNG_USE_SEED
  320. config NU_PRNG_SEED_VALUE
  321. hex "Enter seed value"
  322. range 0 0xFFFFFFFF
  323. default 0
  324. endif
  325. endif
  326. menuconfig BSP_USING_SOFT_I2C
  327. bool "Enable SOFT I2C"
  328. if BSP_USING_SOFT_I2C
  329. config BSP_USING_SOFT_I2C0
  330. bool "Enable SOFT I2C0"
  331. select RT_USING_I2C
  332. select RT_USING_I2C_BITOPS
  333. default n
  334. if BSP_USING_SOFT_I2C0
  335. config BSP_SOFT_I2C0_SCL_PIN
  336. hex "Specify the pin index of SCL of SOFT I2C0"
  337. range 0 0x7F
  338. default 0x18
  339. config BSP_SOFT_I2C0_SDA_PIN
  340. hex "Specify the pin index of SDA of SOFT I2C0"
  341. range 0 0x7F
  342. default 0x17
  343. endif
  344. config BSP_USING_SOFT_I2C1
  345. bool "Enable SOFT I2C1"
  346. select RT_USING_I2C
  347. select RT_USING_I2C_BITOPS
  348. default n
  349. if BSP_USING_SOFT_I2C1
  350. config BSP_SOFT_I2C1_SCL_PIN
  351. hex "Specify the pin index of SCL of SOFT I2C1"
  352. range 0 0x7F
  353. default 0x0B
  354. config BSP_SOFT_I2C1_SDA_PIN
  355. hex "Specify the pin index of SDA of SOFT I2C1"
  356. range 0 0x7F
  357. default 0x0A
  358. endif
  359. endif
  360. config BSP_USING_WDT
  361. bool "Enable Watchdog Timer(WDT)"
  362. select RT_USING_WDT
  363. default y
  364. config BSP_USING_EBI
  365. bool "Enable External Bus Interface(EBI)"
  366. default n
  367. config BSP_USING_VPOST
  368. bool "Enable LCD Display engine(VPOST)"
  369. default y
  370. if BSP_USING_VPOST
  371. choice
  372. prompt "Select Supported LCM panel"
  373. default LCM_USING_FW070TFT
  374. config LCM_USING_E50A2V1
  375. bool "LCM_E50A2V1(800x480-RGB565)"
  376. config LCM_USING_LSA40AT9001
  377. bool "LCM_LSA40AT9001(800x600-RGB565)"
  378. config LCM_USING_FW070TFT
  379. bool "LCM_FW070TFT(800x480-RGB888)"
  380. config LCM_USING_FW043TFT
  381. bool "LCM_FW043TFT(480x272-RGB888)"
  382. config LCM_USING_FW070TFT_WSVGA
  383. bool "LCM_USING_FW070TFT_WSVGA(1024x600-RGB888)"
  384. endchoice
  385. config VPOST_USING_LCD_IDX
  386. int
  387. default 0 if LCM_USING_E50A2V1
  388. default 2 if LCM_USING_LSA40AT9001
  389. default 3 if LCM_USING_FW070TFT
  390. default 4 if LCM_USING_FW043TFT
  391. default 5 if LCM_USING_FW070TFT_WSVGA
  392. config BSP_LCD_BPP
  393. int
  394. default 16 if LCM_USING_E50A2V1
  395. default 16 if LCM_USING_LSA40AT9001
  396. default 32 if LCM_USING_FW070TFT
  397. default 32 if LCM_USING_FW043TFT
  398. default 32 if LCM_USING_FW070TFT_WSVGA
  399. config BSP_LCD_WIDTH
  400. int
  401. default 800 if LCM_USING_E50A2V1
  402. default 800 if LCM_USING_LSA40AT9001
  403. default 800 if LCM_USING_FW070TFT
  404. default 480 if LCM_USING_FW043TFT
  405. default 1024 if LCM_USING_FW070TFT_WSVGA
  406. config BSP_LCD_HEIGHT
  407. int
  408. default 480 if LCM_USING_E50A2V1
  409. default 600 if LCM_USING_LSA40AT9001
  410. default 480 if LCM_USING_FW070TFT
  411. default 272 if LCM_USING_FW043TFT
  412. default 600 if LCM_USING_FW070TFT_WSVGA
  413. config BSP_USING_VPOST_OSD
  414. bool "Enable VPOST OSD layer"
  415. default n
  416. endif
  417. config BSP_USING_USBD
  418. bool "Enable USB Device Controller(USBD)"
  419. select RT_USING_USB_DEVICE
  420. config BSP_USING_USBH
  421. bool "Enable USB Host Controller(USBH)"
  422. select RT_USING_USB_HOST
  423. select RT_USBH_MSTORAGE