Kconfig 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # Copyright 2008 Openmoko, Inc.
  4. # Simtec Electronics, Ben Dooks <ben@simtec.co.uk>
  5. menuconfig ARCH_S3C64XX
  6. bool "Samsung S3C64XX"
  7. depends on ARCH_MULTI_V6
  8. select ARM_AMBA
  9. select ARM_VIC
  10. select CLKSRC_SAMSUNG_PWM
  11. select COMMON_CLK_SAMSUNG
  12. select GPIO_SAMSUNG if ATAGS
  13. select GPIOLIB
  14. select HAVE_S3C2410_I2C if I2C
  15. select HAVE_S3C2410_WATCHDOG if WATCHDOG
  16. select HAVE_TCM
  17. select PLAT_SAMSUNG
  18. select PM_GENERIC_DOMAINS if PM
  19. select S3C_DEV_NAND if ATAGS
  20. select S3C_GPIO_TRACK if ATAGS
  21. select SAMSUNG_ATAGS if ATAGS
  22. select SAMSUNG_WAKEMASK if PM
  23. select SAMSUNG_WDT_RESET
  24. help
  25. Samsung S3C64XX series based systems
  26. if ARCH_S3C64XX
  27. # Configuration options for the S3C6410 CPU
  28. config CPU_S3C6400
  29. bool
  30. help
  31. Enable S3C6400 CPU support
  32. config CPU_S3C6410
  33. bool
  34. help
  35. Enable S3C6410 CPU support
  36. config S3C64XX_PL080
  37. def_bool DMADEVICES
  38. select AMBA_PL08X
  39. config S3C64XX_SETUP_SDHCI
  40. bool
  41. select S3C64XX_SETUP_SDHCI_GPIO
  42. help
  43. Internal configuration for default SDHCI setup for S3C6400 and
  44. S3C6410 SoCs.
  45. config S3C64XX_DEV_ONENAND1
  46. bool
  47. help
  48. Compile in platform device definition for OneNAND1 controller
  49. config SAMSUNG_DEV_BACKLIGHT
  50. bool
  51. depends on SAMSUNG_DEV_PWM
  52. help
  53. Compile in platform device definition LCD backlight with PWM Timer
  54. # platform specific device setup
  55. config S3C64XX_SETUP_I2C0
  56. bool
  57. default y
  58. help
  59. Common setup code for i2c bus 0.
  60. Note, currently since i2c0 is always compiled, this setup helper
  61. is always compiled with it.
  62. config S3C64XX_SETUP_I2C1
  63. bool
  64. help
  65. Common setup code for i2c bus 1.
  66. config S3C64XX_SETUP_IDE
  67. bool
  68. help
  69. Common setup code for S3C64XX IDE.
  70. config S3C64XX_SETUP_FB_24BPP
  71. bool
  72. help
  73. Common setup code for S3C64XX with an 24bpp RGB display helper.
  74. config S3C64XX_SETUP_KEYPAD
  75. bool
  76. help
  77. Common setup code for S3C64XX KEYPAD GPIO configurations
  78. config S3C64XX_SETUP_SDHCI_GPIO
  79. bool
  80. help
  81. Common setup code for S3C64XX SDHCI GPIO configurations
  82. config S3C64XX_SETUP_SPI
  83. bool
  84. help
  85. Common setup code for SPI GPIO configurations
  86. config S3C64XX_SETUP_USB_PHY
  87. bool
  88. help
  89. Common setup code for USB PHY controller
  90. # S36400 Macchine support
  91. config MACH_SMDK6400
  92. bool "SMDK6400"
  93. depends on ATAGS
  94. select CPU_S3C6400
  95. select S3C64XX_SETUP_SDHCI
  96. select S3C_DEV_HSMMC1
  97. help
  98. Machine support for the Samsung SMDK6400
  99. # S3C6410 machine support
  100. config MACH_ANW6410
  101. bool "A&W6410"
  102. depends on ATAGS
  103. select CPU_S3C6410
  104. select S3C64XX_SETUP_FB_24BPP
  105. select S3C_DEV_FB
  106. help
  107. Machine support for the A&W6410
  108. config MACH_MINI6410
  109. bool "MINI6410"
  110. depends on ATAGS
  111. select CPU_S3C6410
  112. select S3C64XX_SETUP_FB_24BPP
  113. select S3C64XX_SETUP_SDHCI
  114. select S3C_DEV_FB
  115. select S3C_DEV_HSMMC
  116. select S3C_DEV_HSMMC1
  117. select S3C_DEV_NAND
  118. select S3C_DEV_USB_HOST
  119. select SAMSUNG_DEV_ADC
  120. select SAMSUNG_DEV_TS
  121. help
  122. Machine support for the FriendlyARM MINI6410
  123. config MACH_REAL6410
  124. bool "REAL6410"
  125. depends on ATAGS
  126. select CPU_S3C6410
  127. select S3C64XX_SETUP_FB_24BPP
  128. select S3C64XX_SETUP_SDHCI
  129. select S3C_DEV_FB
  130. select S3C_DEV_HSMMC
  131. select S3C_DEV_HSMMC1
  132. select S3C_DEV_NAND
  133. select S3C_DEV_USB_HOST
  134. select SAMSUNG_DEV_ADC
  135. select SAMSUNG_DEV_TS
  136. help
  137. Machine support for the CoreWind REAL6410
  138. config MACH_SMDK6410
  139. bool "SMDK6410"
  140. depends on ATAGS
  141. select CPU_S3C6410
  142. select HAVE_S3C2410_WATCHDOG if WATCHDOG
  143. select S3C64XX_SETUP_FB_24BPP
  144. select S3C64XX_SETUP_I2C1
  145. select S3C64XX_SETUP_IDE
  146. select S3C64XX_SETUP_KEYPAD
  147. select S3C64XX_SETUP_SDHCI
  148. select S3C64XX_SETUP_USB_PHY
  149. select S3C_DEV_FB
  150. select S3C_DEV_HSMMC
  151. select S3C_DEV_HSMMC1
  152. select S3C_DEV_I2C1
  153. select S3C_DEV_RTC
  154. select S3C_DEV_USB_HOST
  155. select S3C_DEV_USB_HSOTG
  156. select S3C_DEV_WDT
  157. select SAMSUNG_DEV_ADC
  158. select SAMSUNG_DEV_BACKLIGHT
  159. select SAMSUNG_DEV_IDE
  160. select SAMSUNG_DEV_KEYPAD
  161. select SAMSUNG_DEV_PWM
  162. select SAMSUNG_DEV_TS
  163. help
  164. Machine support for the Samsung SMDK6410
  165. # At least some of the SMDK6410s were shipped with the card detect
  166. # for the MMC/SD slots connected to the same input. This means that
  167. # either the boards need to be altered to have channel0 to an alternate
  168. # configuration or that only one slot can be used.
  169. choice
  170. prompt "SMDK6410 MMC/SD slot setup"
  171. depends on MACH_SMDK6410
  172. config SMDK6410_SD_CH0
  173. bool "Use channel 0 only"
  174. depends on MACH_SMDK6410
  175. help
  176. Select CON7 (channel 0) as the MMC/SD slot, as
  177. at least some SMDK6410 boards come with the
  178. resistors fitted so that the card detects for
  179. channels 0 and 1 are the same.
  180. config SMDK6410_SD_CH1
  181. bool "Use channel 1 only"
  182. depends on MACH_SMDK6410
  183. help
  184. Select CON6 (channel 1) as the MMC/SD slot, as
  185. at least some SMDK6410 boards come with the
  186. resistors fitted so that the card detects for
  187. channels 0 and 1 are the same.
  188. endchoice
  189. config SMDK6410_WM1190_EV1
  190. bool "Support Wolfson Microelectronics 1190-EV1 PMIC card"
  191. depends on MACH_SMDK6410
  192. depends on I2C=y
  193. select MFD_WM8350_I2C
  194. select REGULATOR
  195. select REGULATOR_WM8350
  196. help
  197. The Wolfson Microelectronics 1190-EV1 is a WM835x based PMIC
  198. and audio daughtercard for the Samsung SMDK6410 reference
  199. platform. Enabling this option will build support for this
  200. module into the kernel. The presence of the module will be
  201. detected at runtime so the resulting kernel can be used
  202. with or without the 1190-EV1 fitted.
  203. config SMDK6410_WM1192_EV1
  204. bool "Support Wolfson Microelectronics 1192-EV1 PMIC card"
  205. depends on MACH_SMDK6410
  206. depends on I2C=y
  207. select MFD_WM831X
  208. select MFD_WM831X_I2C
  209. select REGULATOR
  210. select REGULATOR_WM831X
  211. help
  212. The Wolfson Microelectronics 1192-EV1 is a WM831x based PMIC
  213. daughtercard for the Samsung SMDK6410 reference platform.
  214. Enabling this option will build support for this module into
  215. the kernel. The presence of the daughtercard will be
  216. detected at runtime so the resulting kernel can be used
  217. with or without the 1192-EV1 fitted.
  218. config MACH_NCP
  219. bool "NCP"
  220. depends on ATAGS
  221. select CPU_S3C6410
  222. select S3C64XX_SETUP_I2C1
  223. select S3C_DEV_HSMMC1
  224. select S3C_DEV_I2C1
  225. help
  226. Machine support for the Samsung NCP
  227. config MACH_HMT
  228. bool "Airgoo HMT"
  229. depends on ATAGS
  230. select CPU_S3C6410
  231. select S3C64XX_SETUP_FB_24BPP
  232. select S3C_DEV_FB
  233. select S3C_DEV_NAND
  234. select S3C_DEV_USB_HOST
  235. select SAMSUNG_DEV_PWM
  236. help
  237. Machine support for the Airgoo HMT
  238. config MACH_SMARTQ
  239. bool
  240. select CPU_S3C6410
  241. select S3C64XX_SETUP_FB_24BPP
  242. select S3C64XX_SETUP_SDHCI
  243. select S3C64XX_SETUP_USB_PHY
  244. select S3C_DEV_FB
  245. select S3C_DEV_HSMMC
  246. select S3C_DEV_HSMMC1
  247. select S3C_DEV_HSMMC2
  248. select S3C_DEV_HWMON
  249. select S3C_DEV_RTC
  250. select S3C_DEV_USB_HOST
  251. select S3C_DEV_USB_HSOTG
  252. select SAMSUNG_DEV_ADC
  253. select SAMSUNG_DEV_PWM
  254. select SAMSUNG_DEV_TS
  255. help
  256. Shared machine support for SmartQ 5/7
  257. config MACH_SMARTQ5
  258. bool "SmartQ 5"
  259. depends on ATAGS
  260. select MACH_SMARTQ
  261. help
  262. Machine support for the SmartQ 5
  263. config MACH_SMARTQ7
  264. bool "SmartQ 7"
  265. depends on ATAGS
  266. select MACH_SMARTQ
  267. help
  268. Machine support for the SmartQ 7
  269. config MACH_WLF_CRAGG_6410
  270. bool "Wolfson Cragganmore 6410"
  271. depends on ATAGS
  272. depends on I2C=y
  273. select CPU_S3C6410
  274. select LEDS_GPIO_REGISTER
  275. select S3C64XX_DEV_SPI0
  276. select S3C64XX_SETUP_FB_24BPP
  277. select S3C64XX_SETUP_I2C1
  278. select S3C64XX_SETUP_IDE
  279. select S3C64XX_SETUP_KEYPAD
  280. select S3C64XX_SETUP_SDHCI
  281. select S3C64XX_SETUP_SPI
  282. select S3C64XX_SETUP_USB_PHY
  283. select S3C_DEV_FB
  284. select S3C_DEV_HSMMC
  285. select S3C_DEV_HSMMC1
  286. select S3C_DEV_HSMMC2
  287. select S3C_DEV_I2C1
  288. select S3C_DEV_RTC
  289. select S3C_DEV_USB_HOST
  290. select S3C_DEV_USB_HSOTG
  291. select S3C_DEV_WDT
  292. select SAMSUNG_DEV_ADC
  293. select SAMSUNG_DEV_KEYPAD
  294. select SAMSUNG_DEV_PWM
  295. help
  296. Machine support for the Wolfson Cragganmore S3C6410 variant.
  297. config MACH_S3C64XX_DT
  298. bool "Samsung S3C6400/S3C6410 machine using Device Tree"
  299. select TIMER_OF
  300. select CPU_S3C6400
  301. select CPU_S3C6410
  302. select PINCTRL
  303. select PINCTRL_S3C64XX
  304. help
  305. Machine support for Samsung S3C6400/S3C6410 machines with Device Tree
  306. enabled.
  307. Select this if a fdt blob is available for your S3C64XX SoC based
  308. board.
  309. Note: This is under development and not all peripherals can be
  310. supported with this machine file.
  311. endif