f8185b542218e147d1d408b792fcf7a460a87c99
[deliverable/linux.git] / arch / arm / plat-samsung / Kconfig
1 # arch/arm/plat-samsung/Kconfig
2 #
3 # Copyright 2009 Simtec Electronics
4 #
5 # Licensed under GPLv2
6
7 config PLAT_SAMSUNG
8 bool
9 depends on PLAT_S3C24XX || ARCH_S3C64XX || PLAT_S5P || ARCH_EXYNOS
10 default y
11 select GENERIC_IRQ_CHIP
12 select NO_IOPORT_MAP
13 help
14 Base platform code for all Samsung SoC based systems
15
16 config PLAT_S5P
17 bool
18 depends on ARCH_S5PV210
19 default y
20 select ARCH_REQUIRE_GPIOLIB
21 select ARM_VIC
22 select NO_IOPORT_MAP
23 select PLAT_SAMSUNG
24 select S3C_GPIO_TRACK
25 select S5P_GPIO_DRVSTR
26 help
27 Base platform code for Samsung's S5P series SoC.
28
29 config SAMSUNG_PM
30 bool
31 depends on PM && (PLAT_S3C24XX || ARCH_S3C64XX || S5P_PM)
32 default y
33 help
34 Base platform power management code for samsung code
35
36 if PLAT_SAMSUNG
37 menu "Samsung Common options"
38
39 # boot configurations
40
41 comment "Boot options"
42
43 config S3C_LOWLEVEL_UART_PORT
44 int "S3C UART to use for low-level messages"
45 depends on ARCH_S3C64XX
46 default 0
47 help
48 Choice of which UART port to use for the low-level messages,
49 such as the `Uncompressing...` at start time. The value of
50 this configuration should be between zero and two. The port
51 must have been initialised by the boot-loader before use.
52
53 config SAMSUNG_ATAGS
54 def_bool n
55 depends on !ARCH_MULTIPLATFORM
56 depends on ATAGS
57 help
58 This option enables ATAGS based boot support code for
59 Samsung platforms, including static platform devices, legacy
60 clock, timer and interrupt initialization, etc.
61
62 Platforms that support only DT based boot need not to select
63 this option.
64
65 if SAMSUNG_ATAGS
66
67 # options for IRQ support
68
69 config S5P_IRQ
70 def_bool ARCH_S5PV210
71 help
72 Support common interrupt part for ARCH_S5P SoCs
73
74 config S5P_EXT_INT
75 bool
76 help
77 Use the external interrupts (other than GPIO interrupts.)
78
79 config S5P_GPIO_INT
80 bool
81 help
82 Common code for the GPIO interrupts (other than external interrupts.)
83
84 # options for gpio configuration support
85
86 config S5P_GPIO_DRVSTR
87 bool
88 help
89 Internal configuration to get and set correct GPIO driver strength
90 helper
91
92 config SAMSUNG_GPIO_EXTRA
93 int "Number of additional GPIO pins"
94 default 128 if SAMSUNG_GPIO_EXTRA128
95 default 64 if SAMSUNG_GPIO_EXTRA64
96 default 0
97 help
98 Use additional GPIO space in addition to the GPIO's the SOC
99 provides. This allows expanding the GPIO space for use with
100 GPIO expanders.
101
102 config SAMSUNG_GPIO_EXTRA64
103 bool
104
105 config SAMSUNG_GPIO_EXTRA128
106 bool
107
108 config S3C_GPIO_SPACE
109 int "Space between gpio banks"
110 default 0
111 help
112 Add a number of spare GPIO entries between each bank for debugging
113 purposes. This allows any problems where an counter overflows from
114 one bank to another to be caught, at the expense of using a little
115 more memory.
116
117 config S3C_GPIO_TRACK
118 bool
119 help
120 Internal configuration option to enable the s3c specific gpio
121 chip tracking if the platform requires it.
122
123 # uart options
124
125 config S5P_DEV_UART
126 def_bool y
127 depends on ARCH_S5PV210
128
129 # ADC driver
130
131 config S3C_ADC
132 bool "ADC common driver support"
133 help
134 Core support for the ADC block found in the Samsung SoC systems
135 for drivers such as the touchscreen and hwmon to use to share
136 this resource.
137
138 # device definitions to compile in
139
140 config S3C_DEV_HSMMC
141 bool
142 help
143 Compile in platform device definitions for HSMMC code
144
145 config S3C_DEV_HSMMC1
146 bool
147 help
148 Compile in platform device definitions for HSMMC channel 1
149
150 config S3C_DEV_HSMMC2
151 bool
152 help
153 Compile in platform device definitions for HSMMC channel 2
154
155 config S3C_DEV_HSMMC3
156 bool
157 help
158 Compile in platform device definitions for HSMMC channel 3
159
160 config S3C_DEV_HWMON
161 bool
162 help
163 Compile in platform device definitions for HWMON
164
165 config S3C_DEV_I2C1
166 bool
167 help
168 Compile in platform device definitions for I2C channel 1
169
170 config S3C_DEV_I2C2
171 bool
172 help
173 Compile in platform device definitions for I2C channel 2
174
175 config S3C_DEV_I2C3
176 bool
177 help
178 Compile in platform device definition for I2C controller 3
179
180 config S3C_DEV_I2C4
181 bool
182 help
183 Compile in platform device definition for I2C controller 4
184
185 config S3C_DEV_I2C5
186 bool
187 help
188 Compile in platform device definition for I2C controller 5
189
190 config S3C_DEV_I2C6
191 bool
192 help
193 Compile in platform device definition for I2C controller 6
194
195 config S3C_DEV_I2C7
196 bool
197 help
198 Compile in platform device definition for I2C controller 7
199
200 config S3C_DEV_FB
201 bool
202 help
203 Compile in platform device definition for framebuffer
204
205 config S3C_DEV_USB_HOST
206 bool
207 help
208 Compile in platform device definition for USB host.
209
210 config S3C_DEV_USB_HSOTG
211 bool
212 help
213 Compile in platform device definition for USB high-speed OtG
214
215 config S3C_DEV_WDT
216 bool
217 default y if ARCH_S3C24XX
218 help
219 Complie in platform device definition for Watchdog Timer
220
221 config S3C_DEV_NAND
222 bool
223 help
224 Compile in platform device definition for NAND controller
225
226 config S3C_DEV_ONENAND
227 bool
228 help
229 Compile in platform device definition for OneNAND controller
230
231 config S3C_DEV_RTC
232 bool
233 help
234 Complie in platform device definition for RTC
235
236 config SAMSUNG_DEV_ADC
237 bool
238 help
239 Compile in platform device definition for ADC controller
240
241 config SAMSUNG_DEV_IDE
242 bool
243 help
244 Compile in platform device definitions for IDE
245
246 config S3C64XX_DEV_SPI0
247 bool
248 help
249 Compile in platform device definitions for S3C64XX's type
250 SPI controller 0
251
252 config S3C64XX_DEV_SPI1
253 bool
254 help
255 Compile in platform device definitions for S3C64XX's type
256 SPI controller 1
257
258 config S3C64XX_DEV_SPI2
259 bool
260 help
261 Compile in platform device definitions for S3C64XX's type
262 SPI controller 2
263
264 config SAMSUNG_DEV_TS
265 bool
266 help
267 Common in platform device definitions for touchscreen device
268
269 config SAMSUNG_DEV_KEYPAD
270 bool
271 help
272 Compile in platform device definitions for keypad
273
274 config SAMSUNG_DEV_PWM
275 bool
276 default y if ARCH_S3C24XX
277 help
278 Compile in platform device definition for PWM Timer
279
280 config SAMSUNG_DEV_BACKLIGHT
281 bool
282 depends on SAMSUNG_DEV_PWM
283 help
284 Compile in platform device definition LCD backlight with PWM Timer
285
286 config S5P_DEV_CSIS0
287 bool
288 help
289 Compile in platform device definitions for MIPI-CSIS channel 0
290
291 config S5P_DEV_CSIS1
292 bool
293 help
294 Compile in platform device definitions for MIPI-CSIS channel 1
295
296 config S5P_DEV_FIMC0
297 bool
298 help
299 Compile in platform device definitions for FIMC controller 0
300
301 config S5P_DEV_FIMC1
302 bool
303 help
304 Compile in platform device definitions for FIMC controller 1
305
306 config S5P_DEV_FIMC2
307 bool
308 help
309 Compile in platform device definitions for FIMC controller 2
310
311 config S5P_DEV_FIMC3
312 bool
313 help
314 Compile in platform device definitions for FIMC controller 3
315
316 config S5P_DEV_FIMD0
317 bool
318 help
319 Compile in platform device definitions for FIMD controller 0
320
321 config S5P_DEV_G2D
322 bool
323 help
324 Compile in platform device definitions for G2D device
325
326 config S5P_DEV_I2C_HDMIPHY
327 bool
328 help
329 Compile in platform device definitions for I2C HDMIPHY controller
330
331 config S5P_DEV_JPEG
332 bool
333 help
334 Compile in platform device definitions for JPEG codec
335
336 config S5P_DEV_ONENAND
337 bool
338 help
339 Compile in platform device definition for OneNAND controller
340
341 config S5P_DEV_TV
342 bool
343 help
344 Compile in platform device definition for TV interface
345
346 config S3C24XX_PWM
347 bool "PWM device support"
348 select PWM
349 select PWM_SAMSUNG
350 help
351 Support for exporting the PWM timer blocks via the pwm device
352 system
353
354 config S3C_SETUP_CAMIF
355 bool
356 help
357 Compile in common setup code for S3C CAMIF devices
358
359 # DMA
360
361 config S3C_DMA
362 bool
363 help
364 Internal configuration for S3C DMA core
365
366 config S5P_IRQ_PM
367 bool
368 default y if S5P_PM
369 help
370 Legacy IRQ power management for S5P platforms
371
372 config SAMSUNG_PM_GPIO
373 bool
374 default y if GPIO_SAMSUNG && PM
375 help
376 Include legacy GPIO power management code for platforms not using
377 pinctrl-samsung driver.
378
379 config SAMSUNG_DMADEV
380 bool "Use legacy Samsung DMA abstraction"
381 depends on CPU_S5PV210 || ARCH_S3C64XX
382 select DMADEVICES
383 default y
384 help
385 Use DMA device engine for PL330 DMAC.
386
387 endif
388
389 config S5P_DEV_MFC
390 bool
391 help
392 Compile in setup memory (init) code for MFC
393
394 comment "Power management"
395
396 config SAMSUNG_PM_DEBUG
397 bool "S3C2410 PM Suspend debug"
398 depends on PM && DEBUG_KERNEL && DEBUG_S3C_UART
399 help
400 Say Y here if you want verbose debugging from the PM Suspend and
401 Resume code. See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
402 for more information.
403
404 config S3C_PM_DEBUG_LED_SMDK
405 bool "SMDK LED suspend/resume debugging"
406 depends on PM && (MACH_SMDK6410)
407 help
408 Say Y here to enable the use of the SMDK LEDs on the baseboard
409 for debugging of the state of the suspend and resume process.
410
411 Note, this currently only works for S3C64XX based SMDK boards.
412
413 config SAMSUNG_PM_CHECK
414 bool "S3C2410 PM Suspend Memory CRC"
415 depends on PM
416 select CRC32
417 help
418 Enable the PM code's memory area checksum over sleep. This option
419 will generate CRCs of all blocks of memory, and store them before
420 going to sleep. The blocks are then checked on resume for any
421 errors.
422
423 Note, this can take several seconds depending on memory size
424 and CPU speed.
425
426 See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
427
428 config SAMSUNG_PM_CHECK_CHUNKSIZE
429 int "S3C2410 PM Suspend CRC Chunksize (KiB)"
430 depends on PM && SAMSUNG_PM_CHECK
431 default 64
432 help
433 Set the chunksize in Kilobytes of the CRC for checking memory
434 corruption over suspend and resume. A smaller value will mean that
435 the CRC data block will take more memory, but wil identify any
436 faults with better precision.
437
438 See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
439
440 config SAMSUNG_WAKEMASK
441 bool
442 depends on PM
443 help
444 Compile support for wakeup-mask controls found on the S3C6400
445 and above. This code allows a set of interrupt to wakeup-mask
446 mappings. See <plat/wakeup-mask.h>
447
448 config SAMSUNG_WDT_RESET
449 bool
450 help
451 Compile support for system restart by triggering watchdog reset.
452 Used on SoCs that do not provide dedicated reset control.
453
454 config S5P_PM
455 bool
456 help
457 Common code for power management support on S5P and newer SoCs
458
459 config S5P_SLEEP
460 bool
461 help
462 Internal config node to apply common S5P sleep management code.
463 Can be selected by S5P and newer SoCs with similar sleep procedure.
464
465 config DEBUG_S3C_UART
466 depends on PLAT_SAMSUNG
467 int
468 default "0" if DEBUG_S3C_UART0
469 default "1" if DEBUG_S3C_UART1
470 default "2" if DEBUG_S3C_UART2
471 default "3" if DEBUG_S3C_UART3
472
473 endmenu
474 endif
This page took 0.038775 seconds and 4 git commands to generate.