Merge tag 's5pv210-dt' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux...
[deliverable/linux.git] / arch / arm / plat-samsung / Kconfig
CommitLineData
cf383678
BD
1# arch/arm/plat-samsung/Kconfig
2#
3# Copyright 2009 Simtec Electronics
4#
5# Licensed under GPLv2
6
7config PLAT_SAMSUNG
8 bool
d78c16cc 9 depends on PLAT_S3C24XX || ARCH_S3C64XX || ARCH_EXYNOS || ARCH_S5PV210
cf383678 10 default y
b1b3f49c 11 select GENERIC_IRQ_CHIP
ce816fa8 12 select NO_IOPORT_MAP
cf383678
BD
13 help
14 Base platform code for all Samsung SoC based systems
15
89693016
ADK
16config SAMSUNG_PM
17 bool
d78c16cc 18 depends on PM && (PLAT_S3C24XX || ARCH_S3C64XX)
89693016
ADK
19 default y
20 help
21 Base platform power management code for samsung code
22
cf383678 23if PLAT_SAMSUNG
e509b289 24menu "Samsung Common options"
cf383678 25
89f1fa08
BD
26# boot configurations
27
28comment "Boot options"
29
89f1fa08
BD
30config S3C_LOWLEVEL_UART_PORT
31 int "S3C UART to use for low-level messages"
e509b289 32 depends on ARCH_S3C64XX
89f1fa08
BD
33 default 0
34 help
35 Choice of which UART port to use for the low-level messages,
36 such as the `Uncompressing...` at start time. The value of
37 this configuration should be between zero and two. The port
38 must have been initialised by the boot-loader before use.
39
cd8dc7ae
TF
40config SAMSUNG_ATAGS
41 def_bool n
42 depends on !ARCH_MULTIPLATFORM
43 depends on ATAGS
44 help
45 This option enables ATAGS based boot support code for
46 Samsung platforms, including static platform devices, legacy
47 clock, timer and interrupt initialization, etc.
48
49 Platforms that support only DT based boot need not to select
50 this option.
51
52if SAMSUNG_ATAGS
53
85841bce
KK
54config SAMSUNG_GPIO_EXTRA
55 int "Number of additional GPIO pins"
4ff13995
MB
56 default 128 if SAMSUNG_GPIO_EXTRA128
57 default 64 if SAMSUNG_GPIO_EXTRA64
85841bce
KK
58 default 0
59 help
60 Use additional GPIO space in addition to the GPIO's the SOC
61 provides. This allows expanding the GPIO space for use with
62 GPIO expanders.
63
4ff13995
MB
64config SAMSUNG_GPIO_EXTRA64
65 bool
66
67config SAMSUNG_GPIO_EXTRA128
68 bool
69
89f1fa08
BD
70config S3C_GPIO_SPACE
71 int "Space between gpio banks"
72 default 0
73 help
74 Add a number of spare GPIO entries between each bank for debugging
75 purposes. This allows any problems where an counter overflows from
76 one bank to another to be caught, at the expense of using a little
77 more memory.
78
79config S3C_GPIO_TRACK
80 bool
81 help
82 Internal configuration option to enable the s3c specific gpio
83 chip tracking if the platform requires it.
84
3929e1e7
MC
85# ADC driver
86
87config S3C_ADC
88 bool "ADC common driver support"
89 help
90 Core support for the ADC block found in the Samsung SoC systems
91 for drivers such as the touchscreen and hwmon to use to share
92 this resource.
93
b6a60413
BD
94# device definitions to compile in
95
96config S3C_DEV_HSMMC
97 bool
98 help
99 Compile in platform device definitions for HSMMC code
100
101config S3C_DEV_HSMMC1
102 bool
103 help
104 Compile in platform device definitions for HSMMC channel 1
105
106config S3C_DEV_HSMMC2
107 bool
108 help
109 Compile in platform device definitions for HSMMC channel 2
110
b3c674bc
HL
111config S3C_DEV_HSMMC3
112 bool
113 help
114 Compile in platform device definitions for HSMMC channel 3
115
6cd82ffe
MC
116config S3C_DEV_HWMON
117 bool
118 help
119 Compile in platform device definitions for HWMON
120
b6a60413
BD
121config S3C_DEV_I2C1
122 bool
123 help
124 Compile in platform device definitions for I2C channel 1
125
c8d833bf
MS
126config S3C_DEV_I2C2
127 bool
128 help
129 Compile in platform device definitions for I2C channel 2
130
b7a98255
KP
131config S3C_DEV_I2C3
132 bool
133 help
134 Compile in platform device definition for I2C controller 3
135
136config S3C_DEV_I2C4
137 bool
138 help
139 Compile in platform device definition for I2C controller 4
140
141config S3C_DEV_I2C5
142 bool
143 help
144 Compile in platform device definition for I2C controller 5
145
146config S3C_DEV_I2C6
147 bool
148 help
149 Compile in platform device definition for I2C controller 6
150
151config S3C_DEV_I2C7
152 bool
153 help
154 Compile in platform device definition for I2C controller 7
155
b6a60413
BD
156config S3C_DEV_FB
157 bool
158 help
159 Compile in platform device definition for framebuffer
160
161config S3C_DEV_USB_HOST
162 bool
163 help
164 Compile in platform device definition for USB host.
165
166config S3C_DEV_USB_HSOTG
167 bool
168 help
169 Compile in platform device definition for USB high-speed OtG
170
e1d5c93e
BG
171config S3C_DEV_WDT
172 bool
b130d5c2 173 default y if ARCH_S3C24XX
e1d5c93e
BG
174 help
175 Complie in platform device definition for Watchdog Timer
176
b6a60413
BD
177config S3C_DEV_NAND
178 bool
179 help
180 Compile in platform device definition for NAND controller
181
999304be
MS
182config S3C_DEV_ONENAND
183 bool
184 help
185 Compile in platform device definition for OneNAND controller
186
adc0950c
AD
187config S3C_DEV_RTC
188 bool
189 help
190 Complie in platform device definition for RTC
191
4f7cdc38
NK
192config SAMSUNG_DEV_ADC
193 bool
194 help
195 Compile in platform device definition for ADC controller
196
db90005b
AK
197config SAMSUNG_DEV_IDE
198 bool
199 help
200 Compile in platform device definitions for IDE
201
875a5937 202config S3C64XX_DEV_SPI0
4b4c6625
JB
203 bool
204 help
205 Compile in platform device definitions for S3C64XX's type
875a5937
PV
206 SPI controller 0
207
208config S3C64XX_DEV_SPI1
209 bool
210 help
211 Compile in platform device definitions for S3C64XX's type
212 SPI controller 1
213
214config S3C64XX_DEV_SPI2
215 bool
216 help
217 Compile in platform device definitions for S3C64XX's type
218 SPI controller 2
4b4c6625 219
2b6c02ab 220config SAMSUNG_DEV_TS
909de0d6
MC
221 bool
222 help
2b6c02ab 223 Common in platform device definitions for touchscreen device
909de0d6 224
995c48ad
JS
225config SAMSUNG_DEV_KEYPAD
226 bool
227 help
228 Compile in platform device definitions for keypad
229
2ce30137
BG
230config SAMSUNG_DEV_PWM
231 bool
b130d5c2 232 default y if ARCH_S3C24XX
2ce30137
BG
233 help
234 Compile in platform device definition for PWM Timer
235
f00207b2
BG
236config SAMSUNG_DEV_BACKLIGHT
237 bool
238 depends on SAMSUNG_DEV_PWM
239 help
240 Compile in platform device definition LCD backlight with PWM Timer
241
2ce30137
BG
242config S3C24XX_PWM
243 bool "PWM device support"
35e79061
AB
244 select PWM
245 select PWM_SAMSUNG
2ce30137
BG
246 help
247 Support for exporting the PWM timer blocks via the pwm device
248 system
249
e51d5486
SN
250config S3C_SETUP_CAMIF
251 bool
252 help
253 Compile in common setup code for S3C CAMIF devices
254
89f1fa08
BD
255# DMA
256
257config S3C_DMA
258 bool
259 help
260 Internal configuration for S3C DMA core
261
105dddbf
TF
262config SAMSUNG_PM_GPIO
263 bool
264 default y if GPIO_SAMSUNG && PM
265 help
266 Include legacy GPIO power management code for platforms not using
267 pinctrl-samsung driver.
268
aa0de00e 269config SAMSUNG_DMADEV
27873b05 270 bool "Use legacy Samsung DMA abstraction"
b8529ec1 271 depends on CPU_S5PV210 || ARCH_S3C64XX
aa0de00e 272 select DMADEVICES
27873b05 273 default y
d800edeb 274 help
aa0de00e 275 Use DMA device engine for PL330 DMAC.
d800edeb 276
27873b05
AB
277endif
278
cd8dc7ae
TF
279config S5P_DEV_MFC
280 bool
281 help
282 Compile in setup memory (init) code for MFC
283
8005745d
BD
284comment "Power management"
285
286config SAMSUNG_PM_DEBUG
287 bool "S3C2410 PM Suspend debug"
af960151 288 depends on PM && DEBUG_KERNEL && DEBUG_S3C_UART
8005745d
BD
289 help
290 Say Y here if you want verbose debugging from the PM Suspend and
291 Resume code. See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
292 for more information.
293
294config S3C_PM_DEBUG_LED_SMDK
295 bool "SMDK LED suspend/resume debugging"
296 depends on PM && (MACH_SMDK6410)
297 help
298 Say Y here to enable the use of the SMDK LEDs on the baseboard
299 for debugging of the state of the suspend and resume process.
300
301 Note, this currently only works for S3C64XX based SMDK boards.
302
303config SAMSUNG_PM_CHECK
304 bool "S3C2410 PM Suspend Memory CRC"
714e3302
AB
305 depends on PM
306 select CRC32
8005745d
BD
307 help
308 Enable the PM code's memory area checksum over sleep. This option
309 will generate CRCs of all blocks of memory, and store them before
310 going to sleep. The blocks are then checked on resume for any
311 errors.
312
313 Note, this can take several seconds depending on memory size
314 and CPU speed.
315
316 See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
317
318config SAMSUNG_PM_CHECK_CHUNKSIZE
319 int "S3C2410 PM Suspend CRC Chunksize (KiB)"
320 depends on PM && SAMSUNG_PM_CHECK
321 default 64
322 help
323 Set the chunksize in Kilobytes of the CRC for checking memory
324 corruption over suspend and resume. A smaller value will mean that
325 the CRC data block will take more memory, but wil identify any
326 faults with better precision.
327
328 See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
329
0317e52e
BD
330config SAMSUNG_WAKEMASK
331 bool
332 depends on PM
333 help
334 Compile support for wakeup-mask controls found on the S3C6400
335 and above. This code allows a set of interrupt to wakeup-mask
336 mappings. See <plat/wakeup-mask.h>
337
a4658e57
TF
338config SAMSUNG_WDT_RESET
339 bool
340 help
341 Compile support for system restart by triggering watchdog reset.
342 Used on SoCs that do not provide dedicated reset control.
343
952aeeb2
WD
344config DEBUG_S3C_UART
345 depends on PLAT_SAMSUNG
346 int
347 default "0" if DEBUG_S3C_UART0
348 default "1" if DEBUG_S3C_UART1
349 default "2" if DEBUG_S3C_UART2
5fa23dde 350 default "3" if DEBUG_S3C_UART3
952aeeb2 351
e509b289 352endmenu
cf383678 353endif
This page took 0.269146 seconds and 5 git commands to generate.