1 # arch/arm/plat-samsung/Kconfig
3 # Copyright 2009 Simtec Electronics
9 depends on PLAT_S3C24XX || ARCH_S3C64XX || ARCH_EXYNOS || ARCH_S5PV210
11 select GENERIC_IRQ_CHIP
14 Base platform code for all Samsung SoC based systems
18 depends on PM && (PLAT_S3C24XX || ARCH_S3C64XX)
21 Base platform power management code for samsung code
24 menu "Samsung Common options"
28 comment "Boot options"
30 config S3C_LOWLEVEL_UART_PORT
31 int "S3C UART to use for low-level messages"
32 depends on ARCH_S3C64XX
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.
42 depends on !ARCH_MULTIPLATFORM
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.
49 Platforms that support only DT based boot need not to select
54 config SAMSUNG_GPIO_EXTRA
55 int "Number of additional GPIO pins"
56 default 128 if SAMSUNG_GPIO_EXTRA128
57 default 64 if SAMSUNG_GPIO_EXTRA64
60 Use additional GPIO space in addition to the GPIO's the SOC
61 provides. This allows expanding the GPIO space for use with
64 config SAMSUNG_GPIO_EXTRA64
67 config SAMSUNG_GPIO_EXTRA128
71 int "Space between gpio banks"
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
82 Internal configuration option to enable the s3c specific gpio
83 chip tracking if the platform requires it.
88 bool "ADC common driver support"
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
94 # device definitions to compile in
99 Compile in platform device definitions for HSMMC code
101 config S3C_DEV_HSMMC1
104 Compile in platform device definitions for HSMMC channel 1
106 config S3C_DEV_HSMMC2
109 Compile in platform device definitions for HSMMC channel 2
111 config S3C_DEV_HSMMC3
114 Compile in platform device definitions for HSMMC channel 3
119 Compile in platform device definitions for HWMON
124 Compile in platform device definitions for I2C channel 1
129 Compile in platform device definitions for I2C channel 2
134 Compile in platform device definition for I2C controller 3
139 Compile in platform device definition for I2C controller 4
144 Compile in platform device definition for I2C controller 5
149 Compile in platform device definition for I2C controller 6
154 Compile in platform device definition for I2C controller 7
159 Compile in platform device definition for framebuffer
161 config S3C_DEV_USB_HOST
164 Compile in platform device definition for USB host.
166 config S3C_DEV_USB_HSOTG
169 Compile in platform device definition for USB high-speed OtG
173 default y if ARCH_S3C24XX
175 Complie in platform device definition for Watchdog Timer
180 Compile in platform device definition for NAND controller
182 config S3C_DEV_ONENAND
185 Compile in platform device definition for OneNAND controller
190 Complie in platform device definition for RTC
192 config SAMSUNG_DEV_ADC
195 Compile in platform device definition for ADC controller
197 config SAMSUNG_DEV_IDE
200 Compile in platform device definitions for IDE
202 config S3C64XX_DEV_SPI0
205 Compile in platform device definitions for S3C64XX's type
208 config S3C64XX_DEV_SPI1
211 Compile in platform device definitions for S3C64XX's type
214 config S3C64XX_DEV_SPI2
217 Compile in platform device definitions for S3C64XX's type
220 config SAMSUNG_DEV_TS
223 Common in platform device definitions for touchscreen device
225 config SAMSUNG_DEV_KEYPAD
228 Compile in platform device definitions for keypad
230 config SAMSUNG_DEV_PWM
232 default y if ARCH_S3C24XX
234 Compile in platform device definition for PWM Timer
236 config SAMSUNG_DEV_BACKLIGHT
238 depends on SAMSUNG_DEV_PWM
240 Compile in platform device definition LCD backlight with PWM Timer
243 bool "PWM device support"
247 Support for exporting the PWM timer blocks via the pwm device
250 config S3C_SETUP_CAMIF
253 Compile in common setup code for S3C CAMIF devices
260 Internal configuration for S3C DMA core
262 config SAMSUNG_PM_GPIO
264 default y if GPIO_SAMSUNG && PM
266 Include legacy GPIO power management code for platforms not using
267 pinctrl-samsung driver.
269 config SAMSUNG_DMADEV
270 bool "Use legacy Samsung DMA abstraction"
271 depends on CPU_S5PV210 || ARCH_S3C64XX
275 Use DMA device engine for PL330 DMAC.
282 Compile in setup memory (init) code for MFC
284 comment "Power management"
286 config SAMSUNG_PM_DEBUG
287 bool "S3C2410 PM Suspend debug"
288 depends on PM && DEBUG_KERNEL && DEBUG_S3C_UART
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.
294 config S3C_PM_DEBUG_LED_SMDK
295 bool "SMDK LED suspend/resume debugging"
296 depends on PM && (MACH_SMDK6410)
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.
301 Note, this currently only works for S3C64XX based SMDK boards.
303 config SAMSUNG_PM_CHECK
304 bool "S3C2410 PM Suspend Memory CRC"
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
313 Note, this can take several seconds depending on memory size
316 See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
318 config SAMSUNG_PM_CHECK_CHUNKSIZE
319 int "S3C2410 PM Suspend CRC Chunksize (KiB)"
320 depends on PM && SAMSUNG_PM_CHECK
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.
328 See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
330 config SAMSUNG_WAKEMASK
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>
338 config SAMSUNG_WDT_RESET
341 Compile support for system restart by triggering watchdog reset.
342 Used on SoCs that do not provide dedicated reset control.
344 config DEBUG_S3C_UART
345 depends on PLAT_SAMSUNG
347 default "0" if DEBUG_S3C_UART0
348 default "1" if DEBUG_S3C_UART1
349 default "2" if DEBUG_S3C_UART2
350 default "3" if DEBUG_S3C_UART3