Merge tag 's5pv210-dt' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux...
[deliverable/linux.git] / arch / arm / plat-samsung / Kconfig
1 # arch/arm/plat-samsung/Kconfig
2 #
3 # Copyright 2009 Simtec Electronics
4 #
5 # Licensed under GPLv2
6
7 config PLAT_SAMSUNG
8 bool
9 depends on PLAT_S3C24XX || ARCH_S3C64XX || ARCH_EXYNOS || ARCH_S5PV210
10 default y
11 select GENERIC_IRQ_CHIP
12 select NO_IOPORT_MAP
13 help
14 Base platform code for all Samsung SoC based systems
15
16 config SAMSUNG_PM
17 bool
18 depends on PM && (PLAT_S3C24XX || ARCH_S3C64XX)
19 default y
20 help
21 Base platform power management code for samsung code
22
23 if PLAT_SAMSUNG
24 menu "Samsung Common options"
25
26 # boot configurations
27
28 comment "Boot options"
29
30 config S3C_LOWLEVEL_UART_PORT
31 int "S3C UART to use for low-level messages"
32 depends on ARCH_S3C64XX
33 default 0
34 help
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.
39
40 config SAMSUNG_ATAGS
41 def_bool n
42 depends on !ARCH_MULTIPLATFORM
43 depends on ATAGS
44 help
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.
48
49 Platforms that support only DT based boot need not to select
50 this option.
51
52 if SAMSUNG_ATAGS
53
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
58 default 0
59 help
60 Use additional GPIO space in addition to the GPIO's the SOC
61 provides. This allows expanding the GPIO space for use with
62 GPIO expanders.
63
64 config SAMSUNG_GPIO_EXTRA64
65 bool
66
67 config SAMSUNG_GPIO_EXTRA128
68 bool
69
70 config S3C_GPIO_SPACE
71 int "Space between gpio banks"
72 default 0
73 help
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
77 more memory.
78
79 config S3C_GPIO_TRACK
80 bool
81 help
82 Internal configuration option to enable the s3c specific gpio
83 chip tracking if the platform requires it.
84
85 # ADC driver
86
87 config S3C_ADC
88 bool "ADC common driver support"
89 help
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
92 this resource.
93
94 # device definitions to compile in
95
96 config S3C_DEV_HSMMC
97 bool
98 help
99 Compile in platform device definitions for HSMMC code
100
101 config S3C_DEV_HSMMC1
102 bool
103 help
104 Compile in platform device definitions for HSMMC channel 1
105
106 config S3C_DEV_HSMMC2
107 bool
108 help
109 Compile in platform device definitions for HSMMC channel 2
110
111 config S3C_DEV_HSMMC3
112 bool
113 help
114 Compile in platform device definitions for HSMMC channel 3
115
116 config S3C_DEV_HWMON
117 bool
118 help
119 Compile in platform device definitions for HWMON
120
121 config S3C_DEV_I2C1
122 bool
123 help
124 Compile in platform device definitions for I2C channel 1
125
126 config S3C_DEV_I2C2
127 bool
128 help
129 Compile in platform device definitions for I2C channel 2
130
131 config S3C_DEV_I2C3
132 bool
133 help
134 Compile in platform device definition for I2C controller 3
135
136 config S3C_DEV_I2C4
137 bool
138 help
139 Compile in platform device definition for I2C controller 4
140
141 config S3C_DEV_I2C5
142 bool
143 help
144 Compile in platform device definition for I2C controller 5
145
146 config S3C_DEV_I2C6
147 bool
148 help
149 Compile in platform device definition for I2C controller 6
150
151 config S3C_DEV_I2C7
152 bool
153 help
154 Compile in platform device definition for I2C controller 7
155
156 config S3C_DEV_FB
157 bool
158 help
159 Compile in platform device definition for framebuffer
160
161 config S3C_DEV_USB_HOST
162 bool
163 help
164 Compile in platform device definition for USB host.
165
166 config S3C_DEV_USB_HSOTG
167 bool
168 help
169 Compile in platform device definition for USB high-speed OtG
170
171 config S3C_DEV_WDT
172 bool
173 default y if ARCH_S3C24XX
174 help
175 Complie in platform device definition for Watchdog Timer
176
177 config S3C_DEV_NAND
178 bool
179 help
180 Compile in platform device definition for NAND controller
181
182 config S3C_DEV_ONENAND
183 bool
184 help
185 Compile in platform device definition for OneNAND controller
186
187 config S3C_DEV_RTC
188 bool
189 help
190 Complie in platform device definition for RTC
191
192 config SAMSUNG_DEV_ADC
193 bool
194 help
195 Compile in platform device definition for ADC controller
196
197 config SAMSUNG_DEV_IDE
198 bool
199 help
200 Compile in platform device definitions for IDE
201
202 config S3C64XX_DEV_SPI0
203 bool
204 help
205 Compile in platform device definitions for S3C64XX's type
206 SPI controller 0
207
208 config S3C64XX_DEV_SPI1
209 bool
210 help
211 Compile in platform device definitions for S3C64XX's type
212 SPI controller 1
213
214 config S3C64XX_DEV_SPI2
215 bool
216 help
217 Compile in platform device definitions for S3C64XX's type
218 SPI controller 2
219
220 config SAMSUNG_DEV_TS
221 bool
222 help
223 Common in platform device definitions for touchscreen device
224
225 config SAMSUNG_DEV_KEYPAD
226 bool
227 help
228 Compile in platform device definitions for keypad
229
230 config SAMSUNG_DEV_PWM
231 bool
232 default y if ARCH_S3C24XX
233 help
234 Compile in platform device definition for PWM Timer
235
236 config SAMSUNG_DEV_BACKLIGHT
237 bool
238 depends on SAMSUNG_DEV_PWM
239 help
240 Compile in platform device definition LCD backlight with PWM Timer
241
242 config S3C24XX_PWM
243 bool "PWM device support"
244 select PWM
245 select PWM_SAMSUNG
246 help
247 Support for exporting the PWM timer blocks via the pwm device
248 system
249
250 config S3C_SETUP_CAMIF
251 bool
252 help
253 Compile in common setup code for S3C CAMIF devices
254
255 # DMA
256
257 config S3C_DMA
258 bool
259 help
260 Internal configuration for S3C DMA core
261
262 config SAMSUNG_PM_GPIO
263 bool
264 default y if GPIO_SAMSUNG && PM
265 help
266 Include legacy GPIO power management code for platforms not using
267 pinctrl-samsung driver.
268
269 config SAMSUNG_DMADEV
270 bool "Use legacy Samsung DMA abstraction"
271 depends on CPU_S5PV210 || ARCH_S3C64XX
272 select DMADEVICES
273 default y
274 help
275 Use DMA device engine for PL330 DMAC.
276
277 endif
278
279 config S5P_DEV_MFC
280 bool
281 help
282 Compile in setup memory (init) code for MFC
283
284 comment "Power management"
285
286 config SAMSUNG_PM_DEBUG
287 bool "S3C2410 PM Suspend debug"
288 depends on PM && DEBUG_KERNEL && DEBUG_S3C_UART
289 help
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.
293
294 config S3C_PM_DEBUG_LED_SMDK
295 bool "SMDK LED suspend/resume debugging"
296 depends on PM && (MACH_SMDK6410)
297 help
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.
300
301 Note, this currently only works for S3C64XX based SMDK boards.
302
303 config SAMSUNG_PM_CHECK
304 bool "S3C2410 PM Suspend Memory CRC"
305 depends on PM
306 select CRC32
307 help
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
311 errors.
312
313 Note, this can take several seconds depending on memory size
314 and CPU speed.
315
316 See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
317
318 config SAMSUNG_PM_CHECK_CHUNKSIZE
319 int "S3C2410 PM Suspend CRC Chunksize (KiB)"
320 depends on PM && SAMSUNG_PM_CHECK
321 default 64
322 help
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.
327
328 See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt>
329
330 config SAMSUNG_WAKEMASK
331 bool
332 depends on PM
333 help
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>
337
338 config SAMSUNG_WDT_RESET
339 bool
340 help
341 Compile support for system restart by triggering watchdog reset.
342 Used on SoCs that do not provide dedicated reset control.
343
344 config DEBUG_S3C_UART
345 depends on PLAT_SAMSUNG
346 int
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
351
352 endmenu
353 endif
This page took 0.048343 seconds and 5 git commands to generate.