Kconfig 12 KB

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