1 # arch/arm/plat-samsung/Kconfig
3 # Copyright 2009 Simtec Electronics
9 depends on PLAT_S3C24XX || ARCH_S3C64XX || PLAT_S5P
11 select GENERIC_IRQ_CHIP
14 Base platform code for all Samsung SoC based systems
18 depends on (ARCH_S5P64X0 || ARCH_S5PC100 || ARCH_S5PV210 || ARCH_EXYNOS)
20 select ARCH_REQUIRE_GPIOLIB
21 select ARM_GIC if ARCH_EXYNOS
22 select ARM_VIC if !ARCH_EXYNOS
23 select GIC_NON_BANKED if ARCH_EXYNOS4
27 select S5P_GPIO_DRVSTR
28 select SAMSUNG_CLKSRC if !COMMON_CLK
29 select SAMSUNG_GPIOLIB_4BIT
30 select SAMSUNG_IRQ_VIC_TIMER
32 Base platform code for Samsung's S5P series SoC.
38 comment "Boot options"
40 config S3C_BOOT_ERROR_RESET
41 bool "S3C Reboot on decompression error"
43 Say y here to use the watchdog to reset the system if the
44 kernel decompressor detects an error during decompression.
46 config S3C_BOOT_UART_FORCE_FIFO
47 bool "Force UART FIFO on during boot process"
50 Say Y here to force the UART FIFOs on during the kernel
54 config S3C_LOWLEVEL_UART_PORT
55 int "S3C UART to use for low-level messages"
58 Choice of which UART port to use for the low-level messages,
59 such as the `Uncompressing...` at start time. The value of
60 this configuration should be between zero and two. The port
61 must have been initialised by the boot-loader before use.
67 select SAMSUNG_DEV_PWM
69 Use the High Resolution timer support
75 default y if !COMMON_CLK
80 Select the clock code for the clksrc implementation
81 used by newer systems such as the S3C64XX.
84 def_bool (ARCH_S5P64X0 || ARCH_S5PC100 || ARCH_S5PV210)
86 Support common clock part for ARCH_S5P and ARCH_EXYNOS SoCs
88 # options for IRQ support
90 config SAMSUNG_IRQ_VIC_TIMER
93 Internal configuration to build the VIC timer interrupt code.
96 def_bool (ARCH_S5P64X0 || ARCH_S5PC100 || ARCH_S5PV210)
98 Support common interrupt part for ARCH_S5P SoCs
103 Use the external interrupts (other than GPIO interrupts.)
104 Note: Do not choose this for S5P6440 and S5P6450.
109 Common code for the GPIO interrupts (other than external interrupts.)
111 # options for gpio configuration support
113 config SAMSUNG_GPIOLIB_4BIT
116 GPIOlib file contains the 4 bit modification functions for gpio
117 configuration. GPIOlib shall be compiled only for S3C64XX and S5P
118 series of processors.
120 config S5P_GPIO_DRVSTR
123 Internal configuration to get and set correct GPIO driver strength
126 config SAMSUNG_GPIO_EXTRA
127 int "Number of additional GPIO pins"
128 default 128 if SAMSUNG_GPIO_EXTRA128
129 default 64 if SAMSUNG_GPIO_EXTRA64
132 Use additional GPIO space in addition to the GPIO's the SOC
133 provides. This allows expanding the GPIO space for use with
136 config SAMSUNG_GPIO_EXTRA64
139 config SAMSUNG_GPIO_EXTRA128
142 config S3C_GPIO_SPACE
143 int "Space between gpio banks"
146 Add a number of spare GPIO entries between each bank for debugging
147 purposes. This allows any problems where an counter overflows from
148 one bank to another to be caught, at the expense of using a little
151 config S3C_GPIO_TRACK
154 Internal configuration option to enable the s3c specific gpio
155 chip tracking if the platform requires it.
161 depends on (ARCH_S5P64X0 || ARCH_S5PC100 || ARCH_S5PV210)
166 bool "ADC common driver support"
168 Core support for the ADC block found in the Samsung SoC systems
169 for drivers such as the touchscreen and hwmon to use to share
172 # device definitions to compile in
177 Compile in platform device definitions for HSMMC code
179 config S3C_DEV_HSMMC1
182 Compile in platform device definitions for HSMMC channel 1
184 config S3C_DEV_HSMMC2
187 Compile in platform device definitions for HSMMC channel 2
189 config S3C_DEV_HSMMC3
192 Compile in platform device definitions for HSMMC channel 3
197 Compile in platform device definitions for HWMON
202 Compile in platform device definitions for I2C channel 1
207 Compile in platform device definitions for I2C channel 2
212 Compile in platform device definition for I2C controller 3
217 Compile in platform device definition for I2C controller 4
222 Compile in platform device definition for I2C controller 5
227 Compile in platform device definition for I2C controller 6
232 Compile in platform device definition for I2C controller 7
237 Compile in platform device definition for framebuffer
239 config S3C_DEV_USB_HOST
242 Compile in platform device definition for USB host.
244 config S3C_DEV_USB_HSOTG
247 Compile in platform device definition for USB high-speed OtG
251 default y if ARCH_S3C24XX
253 Complie in platform device definition for Watchdog Timer
258 Compile in platform device definition for NAND controller
260 config S3C_DEV_ONENAND
263 Compile in platform device definition for OneNAND controller
268 Complie in platform device definition for RTC
270 config SAMSUNG_DEV_ADC
273 Compile in platform device definition for ADC controller
275 config SAMSUNG_DEV_IDE
278 Compile in platform device definitions for IDE
280 config S3C64XX_DEV_SPI0
283 Compile in platform device definitions for S3C64XX's type
286 config S3C64XX_DEV_SPI1
289 Compile in platform device definitions for S3C64XX's type
292 config S3C64XX_DEV_SPI2
295 Compile in platform device definitions for S3C64XX's type
298 config SAMSUNG_DEV_TS
301 Common in platform device definitions for touchscreen device
303 config SAMSUNG_DEV_KEYPAD
306 Compile in platform device definitions for keypad
308 config SAMSUNG_DEV_PWM
310 default y if ARCH_S3C24XX
312 Compile in platform device definition for PWM Timer
314 config SAMSUNG_DEV_BACKLIGHT
316 depends on SAMSUNG_DEV_PWM
318 Compile in platform device definition LCD backlight with PWM Timer
323 Compile in platform device definitions for MIPI-CSIS channel 0
328 Compile in platform device definitions for MIPI-CSIS channel 1
333 Compile in platform device definitions for FIMC controller 0
338 Compile in platform device definitions for FIMC controller 1
343 Compile in platform device definitions for FIMC controller 2
348 Compile in platform device definitions for FIMC controller 3
353 Compile in platform device definitions for FIMD controller 0
358 Compile in platform device definitions for G2D device
360 config S5P_DEV_I2C_HDMIPHY
363 Compile in platform device definitions for I2C HDMIPHY controller
368 Compile in platform device definitions for JPEG codec
373 Compile in setup memory (init) code for MFC
375 config S5P_DEV_ONENAND
378 Compile in platform device definition for OneNAND controller
383 Compile in platform device definition for TV interface
385 config S5P_DEV_USB_EHCI
388 Compile in platform device definition for USB EHCI
391 bool "PWM device support"
395 Support for exporting the PWM timer blocks via the pwm device
398 config S5P_SETUP_MIPIPHY
401 Compile in common setup code for MIPI-CSIS and MIPI-DSIM devices
403 config S3C_SETUP_CAMIF
406 Compile in common setup code for S3C CAMIF devices
413 Internal configuration for S3C DMA core
415 config SAMSUNG_DMADEV
419 select PL330_DMA if (ARCH_EXYNOS5 || ARCH_EXYNOS4 || CPU_S5PV210 || CPU_S5PC100 || \
420 CPU_S5P6450 || CPU_S5P6440)
422 Use DMA device engine for PL330 DMAC.
424 comment "Power management"
426 config SAMSUNG_PM_DEBUG
427 bool "S3C2410 PM Suspend debug"
431 Say Y here if you want verbose debugging from the PM Suspend and
432 Resume code. See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
433 for more information.
435 config S3C_PM_DEBUG_LED_SMDK
436 bool "SMDK LED suspend/resume debugging"
437 depends on PM && (MACH_SMDK6410)
439 Say Y here to enable the use of the SMDK LEDs on the baseboard
440 for debugging of the state of the suspend and resume process.
442 Note, this currently only works for S3C64XX based SMDK boards.
444 config SAMSUNG_PM_CHECK
445 bool "S3C2410 PM Suspend Memory CRC"
446 depends on PM && CRC32
448 Enable the PM code's memory area checksum over sleep. This option
449 will generate CRCs of all blocks of memory, and store them before
450 going to sleep. The blocks are then checked on resume for any
453 Note, this can take several seconds depending on memory size
456 See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
458 config SAMSUNG_PM_CHECK_CHUNKSIZE
459 int "S3C2410 PM Suspend CRC Chunksize (KiB)"
460 depends on PM && SAMSUNG_PM_CHECK
463 Set the chunksize in Kilobytes of the CRC for checking memory
464 corruption over suspend and resume. A smaller value will mean that
465 the CRC data block will take more memory, but wil identify any
466 faults with better precision.
468 See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
470 config SAMSUNG_WAKEMASK
474 Compile support for wakeup-mask controls found on the S3C6400
475 and above. This code allows a set of interrupt to wakeup-mask
476 mappings. See <plat/wakeup-mask.h>
481 Common code for power management support on S5P and newer SoCs
482 Note: Do not select this for S5P6440 and S5P6450.
487 Internal config node to apply common S5P sleep management code.
488 Can be selected by S5P and newer SoCs with similar sleep procedure.
490 config DEBUG_S3C_UART
491 depends on PLAT_SAMSUNG
493 default "0" if DEBUG_S3C_UART0
494 default "1" if DEBUG_S3C_UART1
495 default "2" if DEBUG_S3C_UART2
496 default "3" if DEBUG_S3C_UART3