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_S5PV210
20 select ARCH_REQUIRE_GPIOLIB
25 select S5P_GPIO_DRVSTR
26 select SAMSUNG_CLKSRC if !COMMON_CLK
28 Base platform code for Samsung's S5P series SoC.
32 depends on PM && (PLAT_S3C24XX || ARCH_S3C64XX || S5P_PM)
35 Base platform power management code for samsung code
38 menu "Samsung Common options"
42 comment "Boot options"
44 config S3C_LOWLEVEL_UART_PORT
45 int "S3C UART to use for low-level messages"
46 depends on ARCH_S3C64XX
49 Choice of which UART port to use for the low-level messages,
50 such as the `Uncompressing...` at start time. The value of
51 this configuration should be between zero and two. The port
52 must have been initialised by the boot-loader before use.
56 depends on !ARCH_MULTIPLATFORM
59 This option enables ATAGS based boot support code for
60 Samsung platforms, including static platform devices, legacy
61 clock, timer and interrupt initialization, etc.
63 Platforms that support only DT based boot need not to select
72 default y if !COMMON_CLK
77 Select the clock code for the clksrc implementation
78 used by newer systems such as the S3C64XX.
83 Support common clock part for ARCH_S5P and ARCH_EXYNOS SoCs
85 # options for IRQ support
90 Support common interrupt part for ARCH_S5P SoCs
95 Use the external interrupts (other than GPIO interrupts.)
100 Common code for the GPIO interrupts (other than external interrupts.)
102 # options for gpio configuration support
104 config S5P_GPIO_DRVSTR
107 Internal configuration to get and set correct GPIO driver strength
110 config SAMSUNG_GPIO_EXTRA
111 int "Number of additional GPIO pins"
112 default 128 if SAMSUNG_GPIO_EXTRA128
113 default 64 if SAMSUNG_GPIO_EXTRA64
116 Use additional GPIO space in addition to the GPIO's the SOC
117 provides. This allows expanding the GPIO space for use with
120 config SAMSUNG_GPIO_EXTRA64
123 config SAMSUNG_GPIO_EXTRA128
126 config S3C_GPIO_SPACE
127 int "Space between gpio banks"
130 Add a number of spare GPIO entries between each bank for debugging
131 purposes. This allows any problems where an counter overflows from
132 one bank to another to be caught, at the expense of using a little
135 config S3C_GPIO_TRACK
138 Internal configuration option to enable the s3c specific gpio
139 chip tracking if the platform requires it.
145 depends on ARCH_S5PV210
150 bool "ADC common driver support"
152 Core support for the ADC block found in the Samsung SoC systems
153 for drivers such as the touchscreen and hwmon to use to share
156 # device definitions to compile in
161 Compile in platform device definitions for HSMMC code
163 config S3C_DEV_HSMMC1
166 Compile in platform device definitions for HSMMC channel 1
168 config S3C_DEV_HSMMC2
171 Compile in platform device definitions for HSMMC channel 2
173 config S3C_DEV_HSMMC3
176 Compile in platform device definitions for HSMMC channel 3
181 Compile in platform device definitions for HWMON
186 Compile in platform device definitions for I2C channel 1
191 Compile in platform device definitions for I2C channel 2
196 Compile in platform device definition for I2C controller 3
201 Compile in platform device definition for I2C controller 4
206 Compile in platform device definition for I2C controller 5
211 Compile in platform device definition for I2C controller 6
216 Compile in platform device definition for I2C controller 7
221 Compile in platform device definition for framebuffer
223 config S3C_DEV_USB_HOST
226 Compile in platform device definition for USB host.
228 config S3C_DEV_USB_HSOTG
231 Compile in platform device definition for USB high-speed OtG
235 default y if ARCH_S3C24XX
237 Complie in platform device definition for Watchdog Timer
242 Compile in platform device definition for NAND controller
244 config S3C_DEV_ONENAND
247 Compile in platform device definition for OneNAND controller
252 Complie in platform device definition for RTC
254 config SAMSUNG_DEV_ADC
257 Compile in platform device definition for ADC controller
259 config SAMSUNG_DEV_IDE
262 Compile in platform device definitions for IDE
264 config S3C64XX_DEV_SPI0
267 Compile in platform device definitions for S3C64XX's type
270 config S3C64XX_DEV_SPI1
273 Compile in platform device definitions for S3C64XX's type
276 config S3C64XX_DEV_SPI2
279 Compile in platform device definitions for S3C64XX's type
282 config SAMSUNG_DEV_TS
285 Common in platform device definitions for touchscreen device
287 config SAMSUNG_DEV_KEYPAD
290 Compile in platform device definitions for keypad
292 config SAMSUNG_DEV_PWM
294 default y if ARCH_S3C24XX
296 Compile in platform device definition for PWM Timer
298 config SAMSUNG_DEV_BACKLIGHT
300 depends on SAMSUNG_DEV_PWM
302 Compile in platform device definition LCD backlight with PWM Timer
307 Compile in platform device definitions for MIPI-CSIS channel 0
312 Compile in platform device definitions for MIPI-CSIS channel 1
317 Compile in platform device definitions for FIMC controller 0
322 Compile in platform device definitions for FIMC controller 1
327 Compile in platform device definitions for FIMC controller 2
332 Compile in platform device definitions for FIMC controller 3
337 Compile in platform device definitions for FIMD controller 0
342 Compile in platform device definitions for G2D device
344 config S5P_DEV_I2C_HDMIPHY
347 Compile in platform device definitions for I2C HDMIPHY controller
352 Compile in platform device definitions for JPEG codec
354 config S5P_DEV_ONENAND
357 Compile in platform device definition for OneNAND controller
362 Compile in platform device definition for TV interface
365 bool "PWM device support"
369 Support for exporting the PWM timer blocks via the pwm device
372 config S3C_SETUP_CAMIF
375 Compile in common setup code for S3C CAMIF devices
382 Internal configuration for S3C DMA core
388 Legacy IRQ power management for S5P platforms
390 config SAMSUNG_PM_GPIO
392 default y if GPIO_SAMSUNG && PM
394 Include legacy GPIO power management code for platforms not using
395 pinctrl-samsung driver.
397 config SAMSUNG_DMADEV
398 bool "Use legacy Samsung DMA abstraction"
399 depends on CPU_S5PV210 || ARCH_S3C64XX
403 Use DMA device engine for PL330 DMAC.
410 Compile in setup memory (init) code for MFC
412 comment "Power management"
414 config SAMSUNG_PM_DEBUG
415 bool "S3C2410 PM Suspend debug"
416 depends on PM && DEBUG_KERNEL && DEBUG_S3C_UART
418 Say Y here if you want verbose debugging from the PM Suspend and
419 Resume code. See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
420 for more information.
422 config S3C_PM_DEBUG_LED_SMDK
423 bool "SMDK LED suspend/resume debugging"
424 depends on PM && (MACH_SMDK6410)
426 Say Y here to enable the use of the SMDK LEDs on the baseboard
427 for debugging of the state of the suspend and resume process.
429 Note, this currently only works for S3C64XX based SMDK boards.
431 config SAMSUNG_PM_CHECK
432 bool "S3C2410 PM Suspend Memory CRC"
436 Enable the PM code's memory area checksum over sleep. This option
437 will generate CRCs of all blocks of memory, and store them before
438 going to sleep. The blocks are then checked on resume for any
441 Note, this can take several seconds depending on memory size
444 See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
446 config SAMSUNG_PM_CHECK_CHUNKSIZE
447 int "S3C2410 PM Suspend CRC Chunksize (KiB)"
448 depends on PM && SAMSUNG_PM_CHECK
451 Set the chunksize in Kilobytes of the CRC for checking memory
452 corruption over suspend and resume. A smaller value will mean that
453 the CRC data block will take more memory, but wil identify any
454 faults with better precision.
456 See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
458 config SAMSUNG_WAKEMASK
462 Compile support for wakeup-mask controls found on the S3C6400
463 and above. This code allows a set of interrupt to wakeup-mask
464 mappings. See <plat/wakeup-mask.h>
466 config SAMSUNG_WDT_RESET
469 Compile support for system restart by triggering watchdog reset.
470 Used on SoCs that do not provide dedicated reset control.
475 Common code for power management support on S5P and newer SoCs
480 Internal config node to apply common S5P sleep management code.
481 Can be selected by S5P and newer SoCs with similar sleep procedure.
483 config DEBUG_S3C_UART
484 depends on PLAT_SAMSUNG
486 default "0" if DEBUG_S3C_UART0
487 default "1" if DEBUG_S3C_UART1
488 default "2" if DEBUG_S3C_UART2
489 default "3" if DEBUG_S3C_UART3