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