Commit | Line | Data |
---|---|---|
cf383678 BD |
1 | # arch/arm/plat-samsung/Kconfig |
2 | # | |
3 | # Copyright 2009 Simtec Electronics | |
4 | # | |
5 | # Licensed under GPLv2 | |
6 | ||
7 | config PLAT_SAMSUNG | |
8 | bool | |
d78c16cc | 9 | depends on PLAT_S3C24XX || ARCH_S3C64XX || ARCH_EXYNOS || ARCH_S5PV210 |
cf383678 | 10 | default y |
b1b3f49c | 11 | select GENERIC_IRQ_CHIP |
ce816fa8 | 12 | select NO_IOPORT_MAP |
cf383678 BD |
13 | help |
14 | Base platform code for all Samsung SoC based systems | |
15 | ||
89693016 ADK |
16 | config SAMSUNG_PM |
17 | bool | |
d78c16cc | 18 | depends on PM && (PLAT_S3C24XX || ARCH_S3C64XX) |
89693016 ADK |
19 | default y |
20 | help | |
21 | Base platform power management code for samsung code | |
22 | ||
cf383678 | 23 | if PLAT_SAMSUNG |
e509b289 | 24 | menu "Samsung Common options" |
cf383678 | 25 | |
89f1fa08 BD |
26 | # boot configurations |
27 | ||
28 | comment "Boot options" | |
29 | ||
89f1fa08 BD |
30 | config S3C_LOWLEVEL_UART_PORT |
31 | int "S3C UART to use for low-level messages" | |
e509b289 | 32 | depends on ARCH_S3C64XX |
89f1fa08 BD |
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 | ||
cd8dc7ae TF |
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 | ||
89f1fa08 BD |
54 | config S3C_GPIO_SPACE |
55 | int "Space between gpio banks" | |
56 | default 0 | |
57 | help | |
58 | Add a number of spare GPIO entries between each bank for debugging | |
59 | purposes. This allows any problems where an counter overflows from | |
60 | one bank to another to be caught, at the expense of using a little | |
61 | more memory. | |
62 | ||
63 | config S3C_GPIO_TRACK | |
64 | bool | |
65 | help | |
66 | Internal configuration option to enable the s3c specific gpio | |
67 | chip tracking if the platform requires it. | |
68 | ||
3929e1e7 MC |
69 | # ADC driver |
70 | ||
71 | config S3C_ADC | |
72 | bool "ADC common driver support" | |
73 | help | |
74 | Core support for the ADC block found in the Samsung SoC systems | |
75 | for drivers such as the touchscreen and hwmon to use to share | |
76 | this resource. | |
77 | ||
b6a60413 BD |
78 | # device definitions to compile in |
79 | ||
80 | config S3C_DEV_HSMMC | |
81 | bool | |
82 | help | |
83 | Compile in platform device definitions for HSMMC code | |
84 | ||
85 | config S3C_DEV_HSMMC1 | |
86 | bool | |
87 | help | |
88 | Compile in platform device definitions for HSMMC channel 1 | |
89 | ||
90 | config S3C_DEV_HSMMC2 | |
91 | bool | |
92 | help | |
93 | Compile in platform device definitions for HSMMC channel 2 | |
94 | ||
b3c674bc HL |
95 | config S3C_DEV_HSMMC3 |
96 | bool | |
97 | help | |
98 | Compile in platform device definitions for HSMMC channel 3 | |
99 | ||
6cd82ffe MC |
100 | config S3C_DEV_HWMON |
101 | bool | |
102 | help | |
103 | Compile in platform device definitions for HWMON | |
104 | ||
b6a60413 BD |
105 | config S3C_DEV_I2C1 |
106 | bool | |
107 | help | |
108 | Compile in platform device definitions for I2C channel 1 | |
109 | ||
c8d833bf MS |
110 | config S3C_DEV_I2C2 |
111 | bool | |
112 | help | |
113 | Compile in platform device definitions for I2C channel 2 | |
114 | ||
b7a98255 KP |
115 | config S3C_DEV_I2C3 |
116 | bool | |
117 | help | |
118 | Compile in platform device definition for I2C controller 3 | |
119 | ||
120 | config S3C_DEV_I2C4 | |
121 | bool | |
122 | help | |
123 | Compile in platform device definition for I2C controller 4 | |
124 | ||
125 | config S3C_DEV_I2C5 | |
126 | bool | |
127 | help | |
128 | Compile in platform device definition for I2C controller 5 | |
129 | ||
130 | config S3C_DEV_I2C6 | |
131 | bool | |
132 | help | |
133 | Compile in platform device definition for I2C controller 6 | |
134 | ||
135 | config S3C_DEV_I2C7 | |
136 | bool | |
137 | help | |
138 | Compile in platform device definition for I2C controller 7 | |
139 | ||
b6a60413 BD |
140 | config S3C_DEV_FB |
141 | bool | |
142 | help | |
143 | Compile in platform device definition for framebuffer | |
144 | ||
145 | config S3C_DEV_USB_HOST | |
146 | bool | |
147 | help | |
148 | Compile in platform device definition for USB host. | |
149 | ||
150 | config S3C_DEV_USB_HSOTG | |
151 | bool | |
152 | help | |
153 | Compile in platform device definition for USB high-speed OtG | |
154 | ||
e1d5c93e BG |
155 | config S3C_DEV_WDT |
156 | bool | |
b130d5c2 | 157 | default y if ARCH_S3C24XX |
e1d5c93e BG |
158 | help |
159 | Complie in platform device definition for Watchdog Timer | |
160 | ||
b6a60413 BD |
161 | config S3C_DEV_NAND |
162 | bool | |
163 | help | |
164 | Compile in platform device definition for NAND controller | |
165 | ||
999304be MS |
166 | config S3C_DEV_ONENAND |
167 | bool | |
168 | help | |
169 | Compile in platform device definition for OneNAND controller | |
170 | ||
adc0950c AD |
171 | config S3C_DEV_RTC |
172 | bool | |
173 | help | |
174 | Complie in platform device definition for RTC | |
175 | ||
4f7cdc38 NK |
176 | config SAMSUNG_DEV_ADC |
177 | bool | |
178 | help | |
179 | Compile in platform device definition for ADC controller | |
180 | ||
db90005b AK |
181 | config SAMSUNG_DEV_IDE |
182 | bool | |
183 | help | |
184 | Compile in platform device definitions for IDE | |
185 | ||
875a5937 | 186 | config S3C64XX_DEV_SPI0 |
4b4c6625 JB |
187 | bool |
188 | help | |
189 | Compile in platform device definitions for S3C64XX's type | |
875a5937 PV |
190 | SPI controller 0 |
191 | ||
192 | config S3C64XX_DEV_SPI1 | |
193 | bool | |
194 | help | |
195 | Compile in platform device definitions for S3C64XX's type | |
196 | SPI controller 1 | |
197 | ||
198 | config S3C64XX_DEV_SPI2 | |
199 | bool | |
200 | help | |
201 | Compile in platform device definitions for S3C64XX's type | |
202 | SPI controller 2 | |
4b4c6625 | 203 | |
2b6c02ab | 204 | config SAMSUNG_DEV_TS |
909de0d6 MC |
205 | bool |
206 | help | |
2b6c02ab | 207 | Common in platform device definitions for touchscreen device |
909de0d6 | 208 | |
995c48ad JS |
209 | config SAMSUNG_DEV_KEYPAD |
210 | bool | |
211 | help | |
212 | Compile in platform device definitions for keypad | |
213 | ||
2ce30137 BG |
214 | config SAMSUNG_DEV_PWM |
215 | bool | |
b130d5c2 | 216 | default y if ARCH_S3C24XX |
2ce30137 BG |
217 | help |
218 | Compile in platform device definition for PWM Timer | |
219 | ||
f00207b2 BG |
220 | config SAMSUNG_DEV_BACKLIGHT |
221 | bool | |
222 | depends on SAMSUNG_DEV_PWM | |
223 | help | |
224 | Compile in platform device definition LCD backlight with PWM Timer | |
225 | ||
2ce30137 BG |
226 | config S3C24XX_PWM |
227 | bool "PWM device support" | |
35e79061 AB |
228 | select PWM |
229 | select PWM_SAMSUNG | |
2ce30137 BG |
230 | help |
231 | Support for exporting the PWM timer blocks via the pwm device | |
232 | system | |
233 | ||
e51d5486 SN |
234 | config S3C_SETUP_CAMIF |
235 | bool | |
236 | help | |
237 | Compile in common setup code for S3C CAMIF devices | |
238 | ||
105dddbf TF |
239 | config SAMSUNG_PM_GPIO |
240 | bool | |
241 | default y if GPIO_SAMSUNG && PM | |
242 | help | |
243 | Include legacy GPIO power management code for platforms not using | |
244 | pinctrl-samsung driver. | |
245 | ||
27873b05 AB |
246 | endif |
247 | ||
cd8dc7ae TF |
248 | config S5P_DEV_MFC |
249 | bool | |
250 | help | |
251 | Compile in setup memory (init) code for MFC | |
252 | ||
8005745d BD |
253 | comment "Power management" |
254 | ||
255 | config SAMSUNG_PM_DEBUG | |
2c054716 TF |
256 | bool "Samsung PM Suspend debug" |
257 | depends on PM && DEBUG_KERNEL | |
258 | depends on DEBUG_EXYNOS_UART || DEBUG_S3C24XX_UART || DEBUG_S3C2410_UART | |
8005745d BD |
259 | help |
260 | Say Y here if you want verbose debugging from the PM Suspend and | |
261 | Resume code. See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt> | |
262 | for more information. | |
263 | ||
264 | config S3C_PM_DEBUG_LED_SMDK | |
265 | bool "SMDK LED suspend/resume debugging" | |
266 | depends on PM && (MACH_SMDK6410) | |
267 | help | |
268 | Say Y here to enable the use of the SMDK LEDs on the baseboard | |
269 | for debugging of the state of the suspend and resume process. | |
270 | ||
271 | Note, this currently only works for S3C64XX based SMDK boards. | |
272 | ||
273 | config SAMSUNG_PM_CHECK | |
274 | bool "S3C2410 PM Suspend Memory CRC" | |
714e3302 AB |
275 | depends on PM |
276 | select CRC32 | |
8005745d BD |
277 | help |
278 | Enable the PM code's memory area checksum over sleep. This option | |
279 | will generate CRCs of all blocks of memory, and store them before | |
280 | going to sleep. The blocks are then checked on resume for any | |
281 | errors. | |
282 | ||
283 | Note, this can take several seconds depending on memory size | |
284 | and CPU speed. | |
285 | ||
286 | See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt> | |
287 | ||
288 | config SAMSUNG_PM_CHECK_CHUNKSIZE | |
289 | int "S3C2410 PM Suspend CRC Chunksize (KiB)" | |
290 | depends on PM && SAMSUNG_PM_CHECK | |
291 | default 64 | |
292 | help | |
293 | Set the chunksize in Kilobytes of the CRC for checking memory | |
294 | corruption over suspend and resume. A smaller value will mean that | |
295 | the CRC data block will take more memory, but wil identify any | |
296 | faults with better precision. | |
297 | ||
298 | See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt> | |
299 | ||
0317e52e BD |
300 | config SAMSUNG_WAKEMASK |
301 | bool | |
302 | depends on PM | |
303 | help | |
304 | Compile support for wakeup-mask controls found on the S3C6400 | |
305 | and above. This code allows a set of interrupt to wakeup-mask | |
306 | mappings. See <plat/wakeup-mask.h> | |
307 | ||
a4658e57 TF |
308 | config SAMSUNG_WDT_RESET |
309 | bool | |
310 | help | |
311 | Compile support for system restart by triggering watchdog reset. | |
312 | Used on SoCs that do not provide dedicated reset control. | |
313 | ||
952aeeb2 WD |
314 | config DEBUG_S3C_UART |
315 | depends on PLAT_SAMSUNG | |
316 | int | |
317 | default "0" if DEBUG_S3C_UART0 | |
318 | default "1" if DEBUG_S3C_UART1 | |
319 | default "2" if DEBUG_S3C_UART2 | |
5fa23dde | 320 | default "3" if DEBUG_S3C_UART3 |
952aeeb2 | 321 | |
e509b289 | 322 | endmenu |
cf383678 | 323 | endif |