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