Kconfig 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  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 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 7
  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. endmenu
  212. menu "Select iic drivers"
  213. config LPI2C_CLOCK_SOURCE_DIVIDER
  214. int "lpi2c bus clock source divider"
  215. range 1 64
  216. default 4
  217. config RT_USING_I2C1
  218. bool "USING I2C1"
  219. select RT_USING_I2C
  220. default y
  221. if RT_USING_I2C1
  222. config RT_USING_I2C1_BITOPS
  223. select RT_USING_I2C_BITOPS
  224. default n
  225. bool "using simulate I2C1"
  226. endif
  227. config RT_USING_I2C2
  228. bool "USING I2C2"
  229. select RT_USING_I2C
  230. default n
  231. if RT_USING_I2C2
  232. config RT_USING_I2C2_BITOPS
  233. select RT_USING_I2C_BITOPS
  234. default n
  235. bool "using simulate I2C2"
  236. endif
  237. config RT_USING_I2C3
  238. bool "USING I2C3"
  239. select RT_USING_I2C
  240. default n
  241. if RT_USING_I2C3
  242. config RT_USING_I2C3_BITOPS
  243. select RT_USING_I2C_BITOPS
  244. default n
  245. bool "using simulate I2C3"
  246. endif
  247. config RT_USING_I2C4
  248. bool "USING I2C4"
  249. select RT_USING_I2C
  250. default n
  251. if RT_USING_I2C4
  252. config RT_USING_I2C4_BITOPS
  253. select RT_USING_I2C_BITOPS
  254. default n
  255. bool "using simulate I2C4"
  256. endif
  257. endmenu
  258. #menu "SDRAM driver support"
  259. config RT_USING_SDRAM
  260. bool "Using sdram"
  261. default y
  262. #endmenu
  263. #menu "RTC driver support"
  264. config RT_USING_RTC_HP
  265. bool "Using hp rtc"
  266. select RT_USING_RTC
  267. default n
  268. #endmenu
  269. if BOARD_RT1050_EVK
  270. if RT_USING_USB_DEVICE
  271. choice
  272. prompt "select usb device controller"
  273. default RT_USING_EHCI0_AS_DEVICE
  274. config RT_USING_EHCI0_AS_DEVICE
  275. bool "set EHCI0 as device"
  276. config RT_USING_EHCI1_AS_DEVICE
  277. bool "set EHCI1 as device"
  278. endchoice
  279. endif
  280. endif
  281. endmenu