blob: de9383814e5ef15db9cc36b20ee7e84cf49819b2 [file] [log] [blame]
Ben Dooksd58153d2007-07-22 16:07:09 +01001# arch/arm/plat-s3c/Kconfig
2#
3# Copyright 2007 Simtec Electronics
4#
5# Licensed under GPLv2
6
7config PLAT_S3C
8 bool
Ben Dooksa08ab632008-10-21 14:06:39 +01009 depends on ARCH_S3C2410 || ARCH_S3C24A0 || ARCH_S3C64XX
Ben Dooksbcae8ae2008-10-21 14:06:32 +010010 default y
Ben Dooksd58153d2007-07-22 16:07:09 +010011 select NO_IOPORT
12 help
13 Base platform code for any Samsung S3C device
14
Ben Dooksb2627582007-07-22 16:09:44 +010015# low-level serial option nodes
16
Russell Kingd83a12a2008-12-21 15:02:07 +000017if PLAT_S3C
18
Ben Dooksb2627582007-07-22 16:09:44 +010019config CPU_LLSERIAL_S3C2410_ONLY
20 bool
Ben Dooksb2627582007-07-22 16:09:44 +010021 default y if CPU_LLSERIAL_S3C2410 && !CPU_LLSERIAL_S3C2440
22
23config CPU_LLSERIAL_S3C2440_ONLY
24 bool
Ben Dooksb2627582007-07-22 16:09:44 +010025 default y if CPU_LLSERIAL_S3C2440 && !CPU_LLSERIAL_S3C2410
26
27config CPU_LLSERIAL_S3C2410
28 bool
Ben Dooksb2627582007-07-22 16:09:44 +010029 help
30 Selected if there is an S3C2410 (or register compatible) serial
31 low-level implementation needed
32
33config CPU_LLSERIAL_S3C2440
34 bool
Ben Dooksb2627582007-07-22 16:09:44 +010035 help
36 Selected if there is an S3C2440 (or register compatible) serial
37 low-level implementation needed
38
39# boot configurations
40
Ben Dooksd58153d2007-07-22 16:07:09 +010041comment "Boot options"
42
Ben Dooksa45f8262007-07-22 16:16:51 +010043config S3C_BOOT_WATCHDOG
44 bool "S3C Initialisation watchdog"
Russell Kingd83a12a2008-12-21 15:02:07 +000045 depends on S3C2410_WATCHDOG
Ben Dooksd58153d2007-07-22 16:07:09 +010046 help
47 Say y to enable the watchdog during the kernel decompression
48 stage. If the kernel fails to uncompress, then the watchdog
49 will trigger a reset and the system should restart.
50
Ben Dooksa45f8262007-07-22 16:16:51 +010051config S3C_BOOT_ERROR_RESET
52 bool "S3C Reboot on decompression error"
Ben Dooksd58153d2007-07-22 16:07:09 +010053 help
54 Say y here to use the watchdog to reset the system if the
55 kernel decompressor detects an error during decompression.
56
Ben Dookse7aa6f42008-12-02 19:34:52 +000057config S3C_BOOT_UART_FORCE_FIFO
58 bool "Force UART FIFO on during boot process"
Ben Dookse7aa6f42008-12-02 19:34:52 +000059 default y
60 help
61 Say Y here to force the UART FIFOs on during the kernel
62 uncompressor
63
Ben Dooksd58153d2007-07-22 16:07:09 +010064comment "Power management"
65
66config S3C2410_PM_DEBUG
67 bool "S3C2410 PM Suspend debug"
Russell Kingd83a12a2008-12-21 15:02:07 +000068 depends on PM
Ben Dooksd58153d2007-07-22 16:07:09 +010069 help
70 Say Y here if you want verbose debugging from the PM Suspend and
71 Resume code. See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
72 for more information.
73
74config S3C2410_PM_CHECK
75 bool "S3C2410 PM Suspend Memory CRC"
Russell Kingd83a12a2008-12-21 15:02:07 +000076 depends on PM && CRC32
Ben Dooksd58153d2007-07-22 16:07:09 +010077 help
78 Enable the PM code's memory area checksum over sleep. This option
79 will generate CRCs of all blocks of memory, and store them before
80 going to sleep. The blocks are then checked on resume for any
81 errors.
82
83 Note, this can take several seconds depending on memory size
84 and CPU speed.
85
86 See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
87
88config S3C2410_PM_CHECK_CHUNKSIZE
89 int "S3C2410 PM Suspend CRC Chunksize (KiB)"
Russell Kingd83a12a2008-12-21 15:02:07 +000090 depends on PM && S3C2410_PM_CHECK
Ben Dooksd58153d2007-07-22 16:07:09 +010091 default 64
92 help
93 Set the chunksize in Kilobytes of the CRC for checking memory
94 corruption over suspend and resume. A smaller value will mean that
95 the CRC data block will take more memory, but wil identify any
96 faults with better precision.
97
98 See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
99
Ben Dooksc7657842007-07-22 16:11:20 +0100100config S3C_LOWLEVEL_UART_PORT
101 int "S3C UART to use for low-level messages"
Ben Dooksd58153d2007-07-22 16:07:09 +0100102 default 0
103 help
104 Choice of which UART port to use for the low-level messages,
105 such as the `Uncompressing...` at start time. The value of
106 this configuration should be between zero and two. The port
107 must have been initialised by the boot-loader before use.
Ben Dooks5b323c72008-10-31 16:14:28 +0000108
Ben Dooksefd3a8e2008-10-31 16:14:30 +0000109# options for gpiolib support
110
111config S3C_GPIO_SPACE
112 int "Space between gpio banks"
113 default 0
114 help
115 Add a number of spare GPIO entries between each bank for debugging
116 purposes. This allows any problems where an counter overflows from
117 one bank to another to be caught, at the expense of using a little
118 more memory.
119
Ben Dooks8a53bdb2008-10-31 16:14:32 +0000120config S3C_GPIO_TRACK
121 bool
122 help
123 Internal configuration option to enable the s3c specific gpio
124 chip tracking if the platform requires it.
125
Ben Dooks21b23662008-10-31 16:14:34 +0000126config S3C_GPIO_PULL_UPDOWN
127 bool
128 help
129 Internal configuration to enable the correct GPIO pull helper
130
131config S3C_GPIO_PULL_DOWN
132 bool
133 help
134 Internal configuration to enable the correct GPIO pull helper
135
136config S3C_GPIO_PULL_UP
137 bool
138 help
139 Internal configuration to enable the correct GPIO pull helper
140
141config S3C_GPIO_CFG_S3C24XX
142 bool
143 help
144 Internal configuration to enable S3C24XX style GPIO configuration
145 functions.
146
147config S3C_GPIO_CFG_S3C64XX
148 bool
149 help
150 Internal configuration to enable S3C64XX style GPIO configuration
151 functions.
152
Ben Dooks5b323c72008-10-31 16:14:28 +0000153# device definitions to compile in
154
155config S3C_DEV_HSMMC
156 bool
Ben Dooks5b323c72008-10-31 16:14:28 +0000157 help
158 Compile in platform device definitions for HSMMC code
Ben Dooksa2205cd2008-10-31 16:14:39 +0000159
160config S3C_DEV_HSMMC1
161 bool
Ben Dooksa2205cd2008-10-31 16:14:39 +0000162 help
163 Compile in platform device definitions for HSMMC channel 1
Ben Dooks1aba8342008-10-31 16:14:55 +0000164
165config S3C_DEV_I2C1
166 bool
Ben Dooks1aba8342008-10-31 16:14:55 +0000167 help
168 Compile in platform device definitions for I2C channel 1
Ben Dooks58435f72008-11-19 15:41:31 +0000169
170config S3C_DEV_FB
171 bool
Ben Dooks58435f72008-11-19 15:41:31 +0000172 help
173 Compile in platform device definition for framebuffer
Russell Kingd83a12a2008-12-21 15:02:07 +0000174
175endif