Kconfig 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462
  1. mainmenu "RT-Thread Configuration"
  2. config $BSP_DIR
  3. string
  4. option env="BSP_ROOT"
  5. default "."
  6. config $RTT_DIR
  7. string
  8. option env="RTT_ROOT"
  9. default "../.."
  10. config $PKGS_DIR
  11. string
  12. option env="PKGS_ROOT"
  13. default "packages"
  14. source "$RTT_DIR/Kconfig"
  15. source "$PKGS_DIR/Kconfig"
  16. config SOC_IMXRT1052
  17. bool
  18. select ARCH_ARM_CORTEX_M7
  19. default y
  20. config BOARD_USING_HYPERFLASH
  21. bool
  22. default n
  23. config BOARD_USING_QSPIFLASH
  24. bool
  25. default n
  26. # RT1050 board select!
  27. choice
  28. prompt "RT1050 Board select"
  29. default BOARD_RT1050_EVK
  30. config BOARD_RT1050_EVK
  31. bool "RT1050_EVK"
  32. select BOARD_USING_HYPERFLASH
  33. config BOARD_RT1050_FIRE
  34. bool "RT1050_FIRE"
  35. select BOARD_USING_QSPIFLASH
  36. config BOARD_RT1050_ShareBoard
  37. bool "RT1050_ShareBoard"
  38. select BOARD_USING_QSPIFLASH
  39. config BOARD_RT1050_ATK
  40. bool "RT1050_ATK"
  41. select BOARD_USING_QSPIFLASH
  42. config BOARD_RT1050_SeeedStudio
  43. bool "RT1050_SeeedStudio"
  44. select BOARD_USING_HYPERFLASH
  45. endchoice
  46. menu "RT1050 Bsp Config"
  47. menu "Select uart drivers"
  48. config RT_USING_UART1
  49. bool "Using uart1"
  50. select RT_USING_SERIAL
  51. default y
  52. config RT_USING_UART2
  53. bool "Using uart2"
  54. select RT_USING_SERIAL
  55. default n
  56. config RT_USING_UART3
  57. bool "Using uart3"
  58. select RT_USING_SERIAL
  59. default n
  60. if !BOARD_RT1050_SeeedStudio
  61. config RT_USING_UART4
  62. bool "Using uart4"
  63. select RT_USING_SERIAL
  64. default n
  65. config RT_USING_UART5
  66. bool "Using uart5"
  67. select RT_USING_SERIAL
  68. default n
  69. config RT_USING_UART6
  70. bool "Using uart6"
  71. select RT_USING_SERIAL
  72. default n
  73. endif
  74. if !BOARD_RT1050_ATK && !BOARD_RT1050_SeeedStudio
  75. config RT_USING_UART7
  76. bool "Using uart7"
  77. select RT_USING_SERIAL
  78. default n
  79. endif
  80. config RT_USING_UART8
  81. bool "Using uart8"
  82. select RT_USING_SERIAL
  83. default n
  84. endmenu
  85. menu "Select spi bus and dev drivers"
  86. choice
  87. prompt "SPI bus clock source"
  88. default LPSPI_CLK_SOURCE_FROM_PLL3PFD1
  89. config LPSPI_CLK_SOURCE_FROM_PLL3PFD1
  90. bool "PLL3PFD1"
  91. config LPSPI_CLK_SOURCE_FROM_PLL3PFD0
  92. bool "PLL3PFD0"
  93. config LPSPI_CLK_SOURCE_FROM_PLL2
  94. bool "PLL2"
  95. config LPSPI_CLK_SOURCE_FROM_PLL2PFD2
  96. bool "PLL2PFD2"
  97. endchoice
  98. config LPSPI_CLK_SOURCE
  99. int
  100. default 0 if LPSPI_CLK_SOURCE_FROM_PLL3PFD1
  101. default 1 if LPSPI_CLK_SOURCE_FROM_PLL3PFD0
  102. default 2 if LPSPI_CLK_SOURCE_FROM_PLL2
  103. default 3 if LPSPI_CLK_SOURCE_FROM_PLL2PFD2
  104. config LPSPI_CLK_SOURCE_DIVIDER
  105. int "SPI bus clock source divider"
  106. range 1 8
  107. default 8
  108. if !BOARD_RT1050_SeeedStudio
  109. config RT_USING_SPIBUS1
  110. bool "Using spi1 bus"
  111. select RT_USING_SPI
  112. default n
  113. choice
  114. prompt "spi1 bus sck io choice"
  115. default LPSPI1_SCK_GPIO_1
  116. depends on RT_USING_SPIBUS1
  117. config LPSPI1_SCK_GPIO_1
  118. bool "GPIO_EMC_27"
  119. config LPSPI1_SCK_GPIO_2
  120. bool "GPIO_SD_B0_00"
  121. endchoice
  122. choice
  123. prompt "spi1 bus sdo io choice"
  124. default LPSPI1_SDO_GPIO_1
  125. depends on RT_USING_SPIBUS1
  126. config LPSPI1_SDO_GPIO_1
  127. bool "GPIO_EMC_28"
  128. config LPSPI1_SDO_GPIO_2
  129. bool "GPIO_SD_B0_02"
  130. endchoice
  131. choice
  132. prompt "spi1 bus sdi io choice"
  133. default LPSPI1_SDI_GPIO_1
  134. depends on RT_USING_SPIBUS1
  135. config LPSPI1_SDI_GPIO_1
  136. bool "GPIO_EMC_29"
  137. config LPSPI1_SDI_GPIO_2
  138. bool "GPIO_SD_B0_03"
  139. endchoice
  140. config RT_USING_SPIBUS2
  141. bool "Using spi2 bus"
  142. select RT_USING_SPI
  143. default n
  144. choice
  145. prompt "spi2 bus sck io choice"
  146. default LPSPI2_SCK_GPIO_1
  147. depends on RT_USING_SPIBUS2
  148. config LPSPI2_SCK_GPIO_1
  149. bool "GPIO_SD_B1_07"
  150. config LPSPI2_SCK_GPIO_2
  151. bool "GPIO_EMC_00"
  152. endchoice
  153. choice
  154. prompt "spi2 bus sdo io choice"
  155. default LPSPI2_SDO_GPIO_1
  156. depends on RT_USING_SPIBUS2
  157. config LPSPI2_SDO_GPIO_1
  158. bool "GPIO_SD_B1_08"
  159. config LPSPI2_SDO_GPIO_2
  160. bool "GPIO_EMC_02"
  161. endchoice
  162. choice
  163. prompt "spi2 bus sdi io choice"
  164. default LPSPI2_SDI_GPIO_1
  165. depends on RT_USING_SPIBUS2
  166. config LPSPI2_SDI_GPIO_1
  167. bool "GPIO_SD_B1_09"
  168. config LPSPI2_SDI_GPIO_2
  169. bool "GPIO_EMC_03"
  170. endchoice
  171. endif
  172. config RT_USING_SPIBUS3
  173. bool "Using spi3 bus"
  174. select RT_USING_SPI
  175. default n
  176. choice
  177. prompt "spi3 bus sck io choice"
  178. default LPSPI3_SCK_GPIO_1
  179. depends on RT_USING_SPIBUS3
  180. config LPSPI3_SCK_GPIO_1
  181. bool "GPIO_AD_B1_15"
  182. config LPSPI3_SCK_GPIO_2
  183. bool "GPIO_AD_B0_00"
  184. depends on !BOARD_RT1050_SeeedStudio
  185. endchoice
  186. choice
  187. prompt "spi3 bus sdo io choice"
  188. default LPSPI3_SDO_GPIO_1
  189. depends on RT_USING_SPIBUS3
  190. config LPSPI3_SDO_GPIO_1
  191. bool "GPIO_AD_B1_14"
  192. config LPSPI3_SDO_GPIO_2
  193. bool "GPIO_AD_B0_01"
  194. depends on !BOARD_RT1050_SeeedStudio
  195. endchoice
  196. choice
  197. prompt "spi3 bus sdi io choice"
  198. default LPSPI3_SDI_GPIO_1
  199. depends on RT_USING_SPIBUS3
  200. config LPSPI3_SDI_GPIO_1
  201. bool "GPIO_AD_B1_13"
  202. config LPSPI3_SDI_GPIO_2
  203. bool "GPIO_AD_B0_02"
  204. depends on !BOARD_RT1050_SeeedStudio
  205. endchoice
  206. config RT_USING_SPIBUS4
  207. bool "Using spi4 bus"
  208. select RT_USING_SPI
  209. default y
  210. choice
  211. prompt "spi4 bus sck io choice"
  212. default LPSPI4_SCK_GPIO_1
  213. depends on RT_USING_SPIBUS4
  214. config LPSPI4_SCK_GPIO_1
  215. bool "GPIO_B0_03"
  216. depends on !BOARD_RT1050_SeeedStudio
  217. config LPSPI4_SCK_GPIO_2
  218. bool "GPIO_B1_07"
  219. endchoice
  220. choice
  221. prompt "spi4 bus sdo io choice"
  222. default LPSPI4_SDO_GPIO_1
  223. depends on RT_USING_SPIBUS4
  224. config LPSPI4_SDO_GPIO_1
  225. bool "GPIO_B0_02"
  226. depends on !BOARD_RT1050_SeeedStudio
  227. config LPSPI4_SDO_GPIO_2
  228. bool "GPIO_B1_06"
  229. endchoice
  230. choice
  231. prompt "spi4 bus sdi io choice"
  232. default LPSPI4_SDI_GPIO_1
  233. depends on RT_USING_SPIBUS4
  234. config LPSPI4_SDI_GPIO_1
  235. bool "GPIO_B0_01"
  236. depends on !BOARD_RT1050_SeeedStudio
  237. config LPSPI4_SDI_GPIO_2
  238. bool "GPIO_B1_05"
  239. endchoice
  240. config RT_USING_SPI_FLASH
  241. bool "Using spi flash with sfud"
  242. default n
  243. select RT_USING_SPI
  244. select RT_USING_SFUD
  245. select RT_USING_PIN
  246. choice
  247. prompt "SPI flash using spibus"
  248. default SPI_FLASH_USING_SPIBUS4
  249. depends on RT_USING_SPI_FLASH
  250. config SPI_FLASH_USING_SPIBUS1
  251. bool "spi1"
  252. select RT_USING_SPIBUS1
  253. config SPI_FLASH_USING_SPIBUS2
  254. bool "spi2"
  255. select RT_USING_SPIBUS2
  256. config SPI_FLASH_USING_SPIBUS3
  257. bool "spi3"
  258. select RT_USING_SPIBUS3
  259. config SPI_FLASH_USING_SPIBUS4
  260. bool "spi4"
  261. select RT_USING_SPIBUS4
  262. endchoice
  263. config SPI_FLASH_USING_SPIBUS_NAME
  264. string
  265. default "spi1" if SPI_FLASH_USING_SPIBUS1
  266. default "spi2" if SPI_FLASH_USING_SPIBUS2
  267. default "spi3" if SPI_FLASH_USING_SPIBUS3
  268. default "spi4" if SPI_FLASH_USING_SPIBUS4
  269. config SPI_FLASH_NAME
  270. string "SPI flash device name"
  271. default "flash0"
  272. depends on RT_USING_SPI_FLASH
  273. config SPI_FLASH_USING_CS_PIN
  274. int "SPI flash cs pin index"
  275. default 79
  276. range 1 127
  277. depends on RT_USING_SPI_FLASH
  278. endmenu
  279. menu "Select iic bus drivers"
  280. config RT_USING_HW_I2C1
  281. bool "using hardware i2c1"
  282. select RT_USING_I2C
  283. default y
  284. choice
  285. prompt "i2c1 bus badurate choice"
  286. default HW_I2C1_BADURATE_100kHZ
  287. depends on RT_USING_HW_I2C1
  288. config HW_I2C1_BADURATE_100kHZ
  289. bool "100kHZ"
  290. config HW_I2C1_BADURATE_400kHZ
  291. bool "400kHZ"
  292. endchoice
  293. if !BOARD_RT1050_SeeedStudio
  294. config RT_USING_HW_I2C2
  295. bool "using hardware i2c2"
  296. select RT_USING_I2C
  297. default n
  298. choice
  299. prompt "i2c2 bus badurate choice"
  300. default HW_I2C2_BADURATE_100kHZ
  301. depends on RT_USING_HW_I2C2
  302. config HW_I2C2_BADURATE_100kHZ
  303. bool "100kHZ"
  304. config HW_I2C2_BADURATE_400kHZ
  305. bool "400kHZ"
  306. endchoice
  307. endif
  308. config RT_USING_HW_I2C3
  309. bool "using hardware i2c3"
  310. select RT_USING_I2C
  311. default n
  312. choice
  313. prompt "i2c3 bus badurate choice"
  314. default HW_I2C3_BADURATE_100kHZ
  315. depends on RT_USING_HW_I2C3
  316. config HW_I2C3_BADURATE_100kHZ
  317. bool "100kHZ"
  318. config HW_I2C3_BADURATE_400kHZ
  319. bool "400kHZ"
  320. endchoice
  321. config RT_USING_HW_I2C4
  322. bool "using hardware i2c4"
  323. select RT_USING_I2C
  324. default n
  325. choice
  326. prompt "i2c4 bus badurate choice"
  327. default HW_I2C4_BADURATE_100kHZ
  328. depends on RT_USING_HW_I2C4
  329. config HW_I2C4_BADURATE_100kHZ
  330. bool "100kHZ"
  331. config HW_I2C4_BADURATE_400kHZ
  332. bool "400kHZ"
  333. endchoice
  334. endmenu
  335. menu "Select lcd driver"
  336. if RT_USING_LCD && BOARD_RT1050_EVK
  337. comment "Notice: Evk Board para: 480*272 4 4 8 2 40 10 106 45"
  338. endif
  339. if RT_USING_LCD && BOARD_RT1050_ShareBoard
  340. comment "Notice: ShareBoard Board para: 800*480 4 4 8 2 40 10 58 45"
  341. endif
  342. if RT_USING_LCD && BOARD_RT1050_FIRE
  343. comment "Notice: Fire Board para: 800*480 4 4 8 2 40 10 58 45"
  344. endif
  345. if RT_USING_LCD && BOARD_RT1050_ATK
  346. comment "Notice: ATK Board para: 480*272 4 4 8 2 40 10 109 45"
  347. endif
  348. if RT_USING_LCD && BOARD_RT1050_SeeedStudio
  349. comment "Notice: SeeedStudio Board para: 480*272 4 4 8 2 40 10 127 45"
  350. endif
  351. config RT_USING_LCD
  352. bool "Using lcd"
  353. default n
  354. config LCD_WIDTH
  355. int "Width pixel num"
  356. default 480 if (BOARD_RT1050_EVK || BOARD_RT1050_ATK || BOARD_RT1050_SeeedStudio)
  357. default 800 if (BOARD_RT1050_FIRE || BOARD_RT1050_ShareBoard)
  358. depends on RT_USING_LCD
  359. config LCD_HEIGHT
  360. int "Height pixel num"
  361. default 272 if (BOARD_RT1050_EVK || BOARD_RT1050_ATK || BOARD_RT1050_SeeedStudio)
  362. default 480 if (BOARD_RT1050_FIRE || BOARD_RT1050_ShareBoard)
  363. depends on RT_USING_LCD
  364. config LCD_HFP
  365. int "HFP"
  366. default 4 if (BOARD_RT1050_EVK || BOARD_RT1050_ATK || BOARD_RT1050_SeeedStudio)
  367. default 4 if (BOARD_RT1050_FIRE || BOARD_RT1050_ShareBoard)
  368. depends on RT_USING_LCD
  369. config LCD_VFP
  370. int "VFP"
  371. default 4 if (BOARD_RT1050_EVK || BOARD_RT1050_ATK || BOARD_RT1050_SeeedStudio)
  372. default 4 if (BOARD_RT1050_FIRE || BOARD_RT1050_ShareBoard)
  373. depends on RT_USING_LCD
  374. config LCD_HBP
  375. int "HBP"
  376. default 8 if (BOARD_RT1050_EVK || BOARD_RT1050_ATK || BOARD_RT1050_SeeedStudio)
  377. default 8 if (BOARD_RT1050_FIRE || BOARD_RT1050_ShareBoard)
  378. depends on RT_USING_LCD
  379. config LCD_VBP
  380. int "VBP"
  381. default 2 if (BOARD_RT1050_EVK || BOARD_RT1050_ATK || BOARD_RT1050_SeeedStudio)
  382. default 2 if (BOARD_RT1050_FIRE || BOARD_RT1050_ShareBoard)
  383. depends on RT_USING_LCD
  384. config LCD_HSW
  385. int "HSW"
  386. default 40 if (BOARD_RT1050_EVK || BOARD_RT1050_ATK || BOARD_RT1050_SeeedStudio)
  387. default 40 if (BOARD_RT1050_FIRE || BOARD_RT1050_ShareBoard)
  388. depends on RT_USING_LCD
  389. config LCD_VSW
  390. int "VSW"
  391. default 10 if (BOARD_RT1050_EVK || BOARD_RT1050_ATK || BOARD_RT1050_SeeedStudio)
  392. default 10 if (BOARD_RT1050_FIRE || BOARD_RT1050_ShareBoard)
  393. depends on RT_USING_LCD
  394. config LCD_BL_PIN
  395. int "Backlight pin index"
  396. default 127 if BOARD_RT1050_SeeedStudio
  397. default 109 if BOARD_RT1050_ATK
  398. default 106 if BOARD_RT1050_EVK
  399. default 58 if (BOARD_RT1050_FIRE || BOARD_RT1050_ShareBoard)
  400. depends on RT_USING_LCD
  401. config LCD_RST_PIN
  402. int "Reset pin index"
  403. default 45 if (BOARD_RT1050_EVK || BOARD_RT1050_ATK || BOARD_RT1050_SeeedStudio)
  404. default 45 if (BOARD_RT1050_FIRE || BOARD_RT1050_ShareBoard)
  405. depends on RT_USING_LCD
  406. endmenu
  407. #menu "Select SDRAM driver"
  408. config RT_USING_SDRAM
  409. bool "Using sdram"
  410. default y
  411. #endmenu
  412. #menu "Select RTC driver"
  413. config RT_USING_RTC_HP
  414. bool "Using hp rtc"
  415. select RT_USING_RTC
  416. default n
  417. #endmenu
  418. if RT_USING_USB_DEVICE
  419. choice
  420. prompt "select usb device controller"
  421. default RT_USING_EHCI0_AS_DEVICE
  422. config RT_USING_EHCI0_AS_DEVICE
  423. bool "set EHCI0 as device"
  424. config RT_USING_EHCI1_AS_DEVICE
  425. bool "set EHCI1 as device"
  426. endchoice
  427. endif
  428. endmenu