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
20 comment "Boot options"
22 config S3C_BOOT_WATCHDOG
23 bool "S3C Initialisation watchdog"
24 depends on S3C2410_WATCHDOG
26 Say y to enable the watchdog during the kernel decompression
27 stage. If the kernel fails to uncompress, then the watchdog
28 will trigger a reset and the system should restart.
30 config S3C_BOOT_ERROR_RESET
31 bool "S3C Reboot on decompression error"
33 Say y here to use the watchdog to reset the system if the
34 kernel decompressor detects an error during decompression.
36 config S3C_BOOT_UART_FORCE_FIFO
37 bool "Force UART FIFO on during boot process"
40 Say Y here to force the UART FIFOs on during the kernel
44 config S3C_LOWLEVEL_UART_PORT
45 int "S3C UART to use for low-level messages"
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.
58 Select the clock code for the clksrc implementation
59 used by newer systems such as the S3C64XX.
61 # options for IRQ support
63 config SAMSUNG_IRQ_VIC_TIMER
66 Internal configuration to build the VIC timer interrupt code.
68 # options for gpio configuration support
70 config SAMSUNG_GPIOLIB_4BIT
73 GPIOlib file contains the 4 bit modification functions for gpio
74 configuration. GPIOlib shall be compiled only for S3C64XX and S5P
77 config S3C_GPIO_CFG_S3C24XX
80 Internal configuration to enable S3C24XX style GPIO configuration
83 config S3C_GPIO_CFG_S3C64XX
86 Internal configuration to enable S3C64XX style GPIO configuration
89 config S3C_GPIO_PULL_UPDOWN
92 Internal configuration to enable the correct GPIO pull helper
94 config S3C_GPIO_PULL_S3C2443
96 select S3C_GPIO_PULL_UPDOWN
98 Internal configuration to enable the correct GPIO pull helper for S3C2443-style GPIO
100 config S3C_GPIO_PULL_DOWN
103 Internal configuration to enable the correct GPIO pull helper
105 config S3C_GPIO_PULL_UP
108 Internal configuration to enable the correct GPIO pull helper
110 config S5P_GPIO_DRVSTR
113 Internal configuration to get and set correct GPIO driver strength
116 config SAMSUNG_GPIO_EXTRA
117 int "Number of additional GPIO pins"
120 Use additional GPIO space in addition to the GPIO's the SOC
121 provides. This allows expanding the GPIO space for use with
124 config S3C_GPIO_SPACE
125 int "Space between gpio banks"
128 Add a number of spare GPIO entries between each bank for debugging
129 purposes. This allows any problems where an counter overflows from
130 one bank to another to be caught, at the expense of using a little
133 config S3C_GPIO_TRACK
136 Internal configuration option to enable the s3c specific gpio
137 chip tracking if the platform requires it.
142 bool "ADC common driver support"
144 Core support for the ADC block found in the Samsung SoC systems
145 for drivers such as the touchscreen and hwmon to use to share
148 # device definitions to compile in
153 Compile in platform device definitions for HSMMC code
155 config S3C_DEV_HSMMC1
158 Compile in platform device definitions for HSMMC channel 1
160 config S3C_DEV_HSMMC2
163 Compile in platform device definitions for HSMMC channel 2
165 config S3C_DEV_HSMMC3
168 Compile in platform device definitions for HSMMC channel 3
173 Compile in platform device definitions for HWMON
178 Compile in platform device definitions for I2C channel 1
183 Compile in platform device definitions for I2C channel 2
188 Compile in platform device definition for I2C controller 3
193 Compile in platform device definition for I2C controller 4
198 Compile in platform device definition for I2C controller 5
203 Compile in platform device definition for I2C controller 6
208 Compile in platform device definition for I2C controller 7
213 Compile in platform device definition for framebuffer
215 config S3C_DEV_USB_HOST
218 Compile in platform device definition for USB host.
220 config S3C_DEV_USB_HSOTG
223 Compile in platform device definition for USB high-speed OtG
227 default y if ARCH_S3C2410
229 Complie in platform device definition for Watchdog Timer
234 Compile in platform device definition for NAND controller
236 config S3C_DEV_ONENAND
239 Compile in platform device definition for OneNAND controller
244 Complie in platform device definition for RTC
246 config SAMSUNG_DEV_ADC
249 Compile in platform device definition for ADC controller
251 config SAMSUNG_DEV_IDE
254 Compile in platform device definitions for IDE
256 config S3C64XX_DEV_SPI
259 Compile in platform device definitions for S3C64XX's type
262 config SAMSUNG_DEV_TS
265 Common in platform device definitions for touchscreen device
267 config SAMSUNG_DEV_KEYPAD
270 Compile in platform device definitions for keypad
272 config SAMSUNG_DEV_PWM
274 default y if ARCH_S3C2410
276 Compile in platform device definition for PWM Timer
278 config SAMSUNG_DEV_BACKLIGHT
280 depends on SAMSUNG_DEV_PWM
282 Compile in platform device definition LCD backlight with PWM Timer
285 bool "PWM device support"
288 Support for exporting the PWM timer blocks via the pwm device
296 Internal configuration for S3C DMA core
298 config SAMSUNG_DMADEV
301 select PL330_DMA if (CPU_EXYNOS4210 || CPU_S5PV210 || CPU_S5PC100 || \
302 CPU_S5P6450 || CPU_S5P6440)
305 Use DMA device engine for PL330 DMAC.
307 comment "Power management"
309 config SAMSUNG_PM_DEBUG
310 bool "S3C2410 PM Suspend debug"
313 Say Y here if you want verbose debugging from the PM Suspend and
314 Resume code. See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
315 for more information.
317 config S3C_PM_DEBUG_LED_SMDK
318 bool "SMDK LED suspend/resume debugging"
319 depends on PM && (MACH_SMDK6410)
321 Say Y here to enable the use of the SMDK LEDs on the baseboard
322 for debugging of the state of the suspend and resume process.
324 Note, this currently only works for S3C64XX based SMDK boards.
326 config SAMSUNG_PM_CHECK
327 bool "S3C2410 PM Suspend Memory CRC"
328 depends on PM && CRC32
330 Enable the PM code's memory area checksum over sleep. This option
331 will generate CRCs of all blocks of memory, and store them before
332 going to sleep. The blocks are then checked on resume for any
335 Note, this can take several seconds depending on memory size
338 See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
340 config SAMSUNG_PM_CHECK_CHUNKSIZE
341 int "S3C2410 PM Suspend CRC Chunksize (KiB)"
342 depends on PM && SAMSUNG_PM_CHECK
345 Set the chunksize in Kilobytes of the CRC for checking memory
346 corruption over suspend and resume. A smaller value will mean that
347 the CRC data block will take more memory, but wil identify any
348 faults with better precision.
350 See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
352 config SAMSUNG_WAKEMASK
356 Compile support for wakeup-mask controls found on the S3C6400
357 and above. This code allows a set of interrupt to wakeup-mask
358 mappings. See <plat/wakeup-mask.h>
360 comment "Power Domain"
363 bool "Samsung Power Domain"
364 depends on PM_RUNTIME
366 Say Y here if you want to control Power Domain by Runtime PM.
368 config DEBUG_S3C_UART
369 depends on PLAT_SAMSUNG
371 default "0" if DEBUG_S3C_UART0
372 default "1" if DEBUG_S3C_UART1
373 default "2" if DEBUG_S3C_UART2