1 # arch/arm/plat-samsung/Kconfig
3 # Copyright 2009 Simtec Electronics
9 depends on PLAT_S3C24XX || ARCH_S3C64XX || PLAT_S5P || ARCH_EXYNOS
11 select GENERIC_IRQ_CHIP
14 Base platform code for all Samsung SoC based systems
18 depends on (ARCH_S5P64X0 || ARCH_S5PC100 || ARCH_S5PV210)
20 select ARCH_REQUIRE_GPIOLIB
25 select S5P_GPIO_DRVSTR
26 select SAMSUNG_CLKSRC if !COMMON_CLK
27 select SAMSUNG_GPIOLIB_4BIT
28 select SAMSUNG_IRQ_VIC_TIMER
30 Base platform code for Samsung's S5P series SoC.
34 depends on PM && (PLAT_S3C24XX || ARCH_S3C64XX || ARCH_S5P64X0 || S5P_PM)
37 Base platform power management code for samsung code
43 comment "Boot options"
45 config S3C_BOOT_ERROR_RESET
46 bool "S3C Reboot on decompression error"
48 Say y here to use the watchdog to reset the system if the
49 kernel decompressor detects an error during decompression.
51 config S3C_BOOT_UART_FORCE_FIFO
52 bool "Force UART FIFO on during boot process"
55 Say Y here to force the UART FIFOs on during the kernel
59 config S3C_LOWLEVEL_UART_PORT
60 int "S3C UART to use for low-level messages"
63 Choice of which UART port to use for the low-level messages,
64 such as the `Uncompressing...` at start time. The value of
65 this configuration should be between zero and two. The port
66 must have been initialised by the boot-loader before use.
70 depends on !ARCH_MULTIPLATFORM
73 This option enables ATAGS based boot support code for
74 Samsung platforms, including static platform devices, legacy
75 clock, timer and interrupt initialization, etc.
77 Platforms that support only DT based boot need not to select
86 select SAMSUNG_DEV_PWM
88 Use the High Resolution timer support
94 default y if !COMMON_CLK
99 Select the clock code for the clksrc implementation
100 used by newer systems such as the S3C64XX.
103 def_bool (ARCH_S5P64X0 || ARCH_S5PC100 || ARCH_S5PV210)
105 Support common clock part for ARCH_S5P and ARCH_EXYNOS SoCs
107 # options for IRQ support
109 config SAMSUNG_IRQ_VIC_TIMER
112 Internal configuration to build the VIC timer interrupt code.
115 def_bool (ARCH_S5P64X0 || ARCH_S5PC100 || ARCH_S5PV210)
117 Support common interrupt part for ARCH_S5P SoCs
122 Use the external interrupts (other than GPIO interrupts.)
123 Note: Do not choose this for S5P6440 and S5P6450.
128 Common code for the GPIO interrupts (other than external interrupts.)
130 # options for gpio configuration support
132 config SAMSUNG_GPIOLIB_4BIT
135 GPIOlib file contains the 4 bit modification functions for gpio
136 configuration. GPIOlib shall be compiled only for S3C64XX and S5P
137 series of processors.
139 config S5P_GPIO_DRVSTR
142 Internal configuration to get and set correct GPIO driver strength
145 config SAMSUNG_GPIO_EXTRA
146 int "Number of additional GPIO pins"
147 default 128 if SAMSUNG_GPIO_EXTRA128
148 default 64 if SAMSUNG_GPIO_EXTRA64
151 Use additional GPIO space in addition to the GPIO's the SOC
152 provides. This allows expanding the GPIO space for use with
155 config SAMSUNG_GPIO_EXTRA64
158 config SAMSUNG_GPIO_EXTRA128
161 config S3C_GPIO_SPACE
162 int "Space between gpio banks"
165 Add a number of spare GPIO entries between each bank for debugging
166 purposes. This allows any problems where an counter overflows from
167 one bank to another to be caught, at the expense of using a little
170 config S3C_GPIO_TRACK
173 Internal configuration option to enable the s3c specific gpio
174 chip tracking if the platform requires it.
180 depends on (ARCH_S5P64X0 || ARCH_S5PC100 || ARCH_S5PV210)
185 bool "ADC common driver support"
187 Core support for the ADC block found in the Samsung SoC systems
188 for drivers such as the touchscreen and hwmon to use to share
191 # device definitions to compile in
196 Compile in platform device definitions for HSMMC code
198 config S3C_DEV_HSMMC1
201 Compile in platform device definitions for HSMMC channel 1
203 config S3C_DEV_HSMMC2
206 Compile in platform device definitions for HSMMC channel 2
208 config S3C_DEV_HSMMC3
211 Compile in platform device definitions for HSMMC channel 3
216 Compile in platform device definitions for HWMON
221 Compile in platform device definitions for I2C channel 1
226 Compile in platform device definitions for I2C channel 2
231 Compile in platform device definition for I2C controller 3
236 Compile in platform device definition for I2C controller 4
241 Compile in platform device definition for I2C controller 5
246 Compile in platform device definition for I2C controller 6
251 Compile in platform device definition for I2C controller 7
256 Compile in platform device definition for framebuffer
258 config S3C_DEV_USB_HOST
261 Compile in platform device definition for USB host.
263 config S3C_DEV_USB_HSOTG
266 Compile in platform device definition for USB high-speed OtG
270 default y if ARCH_S3C24XX
272 Complie in platform device definition for Watchdog Timer
277 Compile in platform device definition for NAND controller
279 config S3C_DEV_ONENAND
282 Compile in platform device definition for OneNAND controller
287 Complie in platform device definition for RTC
289 config SAMSUNG_DEV_ADC
292 Compile in platform device definition for ADC controller
294 config SAMSUNG_DEV_IDE
297 Compile in platform device definitions for IDE
299 config S3C64XX_DEV_SPI0
302 Compile in platform device definitions for S3C64XX's type
305 config S3C64XX_DEV_SPI1
308 Compile in platform device definitions for S3C64XX's type
311 config S3C64XX_DEV_SPI2
314 Compile in platform device definitions for S3C64XX's type
317 config SAMSUNG_DEV_TS
320 Common in platform device definitions for touchscreen device
322 config SAMSUNG_DEV_KEYPAD
325 Compile in platform device definitions for keypad
327 config SAMSUNG_DEV_PWM
329 default y if ARCH_S3C24XX
331 Compile in platform device definition for PWM Timer
333 config SAMSUNG_DEV_BACKLIGHT
335 depends on SAMSUNG_DEV_PWM
337 Compile in platform device definition LCD backlight with PWM Timer
342 Compile in platform device definitions for MIPI-CSIS channel 0
347 Compile in platform device definitions for MIPI-CSIS channel 1
352 Compile in platform device definitions for FIMC controller 0
357 Compile in platform device definitions for FIMC controller 1
362 Compile in platform device definitions for FIMC controller 2
367 Compile in platform device definitions for FIMC controller 3
372 Compile in platform device definitions for FIMD controller 0
377 Compile in platform device definitions for G2D device
379 config S5P_DEV_I2C_HDMIPHY
382 Compile in platform device definitions for I2C HDMIPHY controller
387 Compile in platform device definitions for JPEG codec
389 config S5P_DEV_ONENAND
392 Compile in platform device definition for OneNAND controller
397 Compile in platform device definition for TV interface
399 config S5P_DEV_USB_EHCI
402 Compile in platform device definition for USB EHCI
405 bool "PWM device support"
409 Support for exporting the PWM timer blocks via the pwm device
412 config S5P_SETUP_MIPIPHY
415 Compile in common setup code for MIPI-CSIS and MIPI-DSIM devices
417 config S3C_SETUP_CAMIF
420 Compile in common setup code for S3C CAMIF devices
427 Internal configuration for S3C DMA core
433 Legacy IRQ power management for S5P platforms
435 config SAMSUNG_PM_GPIO
437 default y if GPIO_SAMSUNG && PM
439 Include legacy GPIO power management code for platforms not using
440 pinctrl-samsung driver.
444 config SAMSUNG_DMADEV
448 select PL330_DMA if (ARCH_EXYNOS5 || ARCH_EXYNOS4 || CPU_S5PV210 || CPU_S5PC100 || \
449 CPU_S5P6450 || CPU_S5P6440)
451 Use DMA device engine for PL330 DMAC.
456 Compile in setup memory (init) code for MFC
458 comment "Power management"
460 config SAMSUNG_PM_DEBUG
461 bool "S3C2410 PM Suspend debug"
465 Say Y here if you want verbose debugging from the PM Suspend and
466 Resume code. See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
467 for more information.
469 config S3C_PM_DEBUG_LED_SMDK
470 bool "SMDK LED suspend/resume debugging"
471 depends on PM && (MACH_SMDK6410)
473 Say Y here to enable the use of the SMDK LEDs on the baseboard
474 for debugging of the state of the suspend and resume process.
476 Note, this currently only works for S3C64XX based SMDK boards.
478 config SAMSUNG_PM_CHECK
479 bool "S3C2410 PM Suspend Memory CRC"
480 depends on PM && CRC32
482 Enable the PM code's memory area checksum over sleep. This option
483 will generate CRCs of all blocks of memory, and store them before
484 going to sleep. The blocks are then checked on resume for any
487 Note, this can take several seconds depending on memory size
490 See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
492 config SAMSUNG_PM_CHECK_CHUNKSIZE
493 int "S3C2410 PM Suspend CRC Chunksize (KiB)"
494 depends on PM && SAMSUNG_PM_CHECK
497 Set the chunksize in Kilobytes of the CRC for checking memory
498 corruption over suspend and resume. A smaller value will mean that
499 the CRC data block will take more memory, but wil identify any
500 faults with better precision.
502 See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
504 config SAMSUNG_WAKEMASK
508 Compile support for wakeup-mask controls found on the S3C6400
509 and above. This code allows a set of interrupt to wakeup-mask
510 mappings. See <plat/wakeup-mask.h>
512 config SAMSUNG_WDT_RESET
515 Compile support for system restart by triggering watchdog reset.
516 Used on SoCs that do not provide dedicated reset control.
521 Common code for power management support on S5P and newer SoCs
522 Note: Do not select this for S5P6440 and S5P6450.
527 Internal config node to apply common S5P sleep management code.
528 Can be selected by S5P and newer SoCs with similar sleep procedure.
530 config DEBUG_S3C_UART
531 depends on PLAT_SAMSUNG
533 default "0" if DEBUG_S3C_UART0
534 default "1" if DEBUG_S3C_UART1
535 default "2" if DEBUG_S3C_UART2
536 default "3" if DEBUG_S3C_UART3