Kconfig 11 KB

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