Ben Dooks | cf38367 | 2009-11-10 00:14:58 +0000 | [diff] [blame] | 1 | # arch/arm/plat-samsung/Kconfig |
| 2 | # |
| 3 | # Copyright 2009 Simtec Electronics |
| 4 | # |
| 5 | # Licensed under GPLv2 |
| 6 | |
| 7 | config PLAT_SAMSUNG |
| 8 | bool |
Kukjin Kim | 2d4a3b7 | 2010-08-13 14:38:52 +0900 | [diff] [blame] | 9 | depends on PLAT_S3C24XX || ARCH_S3C64XX || PLAT_S5P |
Ben Dooks | ae5fa35 | 2010-01-29 09:02:19 +0000 | [diff] [blame] | 10 | select NO_IOPORT |
Mark Brown | 878ccdc | 2011-05-19 23:10:13 +0100 | [diff] [blame^] | 11 | select GENERIC_IRQ_CHIP |
Ben Dooks | cf38367 | 2009-11-10 00:14:58 +0000 | [diff] [blame] | 12 | default y |
| 13 | help |
| 14 | Base platform code for all Samsung SoC based systems |
| 15 | |
| 16 | if PLAT_SAMSUNG |
| 17 | |
Ben Dooks | 89f1fa0 | 2010-01-29 09:02:17 +0000 | [diff] [blame] | 18 | # boot configurations |
| 19 | |
| 20 | comment "Boot options" |
| 21 | |
| 22 | config S3C_BOOT_WATCHDOG |
| 23 | bool "S3C Initialisation watchdog" |
| 24 | depends on S3C2410_WATCHDOG |
| 25 | help |
| 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. |
| 29 | |
| 30 | config S3C_BOOT_ERROR_RESET |
| 31 | bool "S3C Reboot on decompression error" |
| 32 | help |
| 33 | Say y here to use the watchdog to reset the system if the |
| 34 | kernel decompressor detects an error during decompression. |
| 35 | |
| 36 | config S3C_BOOT_UART_FORCE_FIFO |
| 37 | bool "Force UART FIFO on during boot process" |
| 38 | default y |
| 39 | help |
| 40 | Say Y here to force the UART FIFOs on during the kernel |
| 41 | uncompressor |
| 42 | |
| 43 | |
| 44 | config S3C_LOWLEVEL_UART_PORT |
| 45 | int "S3C UART to use for low-level messages" |
| 46 | default 0 |
| 47 | help |
| 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. |
| 52 | |
| 53 | # clock options |
| 54 | |
Harald Welte | aa9ad6a | 2009-12-01 01:24:34 +0000 | [diff] [blame] | 55 | config SAMSUNG_CLKSRC |
| 56 | bool |
| 57 | help |
| 58 | Select the clock code for the clksrc implementation |
| 59 | used by newer systems such as the S3C64XX. |
Ben Dooks | cf38367 | 2009-11-10 00:14:58 +0000 | [diff] [blame] | 60 | |
Ben Dooks | 7162ba0 | 2010-01-06 10:14:51 +0900 | [diff] [blame] | 61 | # options for IRQ support |
| 62 | |
| 63 | config SAMSUNG_IRQ_VIC_TIMER |
| 64 | bool |
| 65 | help |
| 66 | Internal configuration to build the VIC timer interrupt code. |
| 67 | |
Ben Dooks | 51022cf | 2010-01-06 11:18:44 +0900 | [diff] [blame] | 68 | config SAMSUNG_IRQ_UART |
| 69 | bool |
| 70 | help |
| 71 | Internal configuration to build the IRQ UART demux code. |
| 72 | |
Ben Dooks | 4f830db | 2010-01-06 02:28:20 +0900 | [diff] [blame] | 73 | # options for gpio configuration support |
| 74 | |
Kukjin Kim | 1f323cf | 2010-01-19 15:30:54 +0900 | [diff] [blame] | 75 | config SAMSUNG_GPIOLIB_4BIT |
| 76 | bool |
| 77 | help |
| 78 | GPIOlib file contains the 4 bit modification functions for gpio |
| 79 | configuration. GPIOlib shall be compiled only for S3C64XX and S5P |
| 80 | series of processors. |
| 81 | |
Ben Dooks | 4f830db | 2010-01-06 02:28:20 +0900 | [diff] [blame] | 82 | config S3C_GPIO_CFG_S3C24XX |
| 83 | bool |
| 84 | help |
| 85 | Internal configuration to enable S3C24XX style GPIO configuration |
| 86 | functions. |
| 87 | |
| 88 | config S3C_GPIO_CFG_S3C64XX |
| 89 | bool |
| 90 | help |
| 91 | Internal configuration to enable S3C64XX style GPIO configuration |
| 92 | functions. |
| 93 | |
Ben Dooks | 4f830db | 2010-01-06 02:28:20 +0900 | [diff] [blame] | 94 | config S3C_GPIO_PULL_UPDOWN |
| 95 | bool |
| 96 | help |
| 97 | Internal configuration to enable the correct GPIO pull helper |
| 98 | |
Yauhen Kharuzhy | 0536d0d | 2011-01-06 13:04:33 +0900 | [diff] [blame] | 99 | config S3C_GPIO_PULL_S3C2443 |
| 100 | bool |
| 101 | select S3C_GPIO_PULL_UPDOWN |
| 102 | help |
| 103 | Internal configuration to enable the correct GPIO pull helper for S3C2443-style GPIO |
| 104 | |
Ben Dooks | 4f830db | 2010-01-06 02:28:20 +0900 | [diff] [blame] | 105 | config S3C_GPIO_PULL_DOWN |
| 106 | bool |
| 107 | help |
| 108 | Internal configuration to enable the correct GPIO pull helper |
| 109 | |
| 110 | config S3C_GPIO_PULL_UP |
| 111 | bool |
| 112 | help |
| 113 | Internal configuration to enable the correct GPIO pull helper |
| 114 | |
Marek Szyprowski | 838c6d4 | 2010-05-18 12:23:36 +0200 | [diff] [blame] | 115 | config S5P_GPIO_DRVSTR |
| 116 | bool |
| 117 | help |
| 118 | Internal configuration to get and set correct GPIO driver strength |
| 119 | helper |
| 120 | |
Kukjin Kim | 85841bc | 2010-01-11 12:21:51 +0900 | [diff] [blame] | 121 | config SAMSUNG_GPIO_EXTRA |
| 122 | int "Number of additional GPIO pins" |
| 123 | default 0 |
| 124 | help |
| 125 | Use additional GPIO space in addition to the GPIO's the SOC |
| 126 | provides. This allows expanding the GPIO space for use with |
| 127 | GPIO expanders. |
| 128 | |
Ben Dooks | 89f1fa0 | 2010-01-29 09:02:17 +0000 | [diff] [blame] | 129 | config S3C_GPIO_SPACE |
| 130 | int "Space between gpio banks" |
| 131 | default 0 |
| 132 | help |
| 133 | Add a number of spare GPIO entries between each bank for debugging |
| 134 | purposes. This allows any problems where an counter overflows from |
| 135 | one bank to another to be caught, at the expense of using a little |
| 136 | more memory. |
| 137 | |
| 138 | config S3C_GPIO_TRACK |
| 139 | bool |
| 140 | help |
| 141 | Internal configuration option to enable the s3c specific gpio |
| 142 | chip tracking if the platform requires it. |
| 143 | |
Maurus Cuelenaere | 3929e1e | 2010-01-14 00:30:31 +0100 | [diff] [blame] | 144 | # ADC driver |
| 145 | |
| 146 | config S3C_ADC |
| 147 | bool "ADC common driver support" |
| 148 | help |
| 149 | Core support for the ADC block found in the Samsung SoC systems |
| 150 | for drivers such as the touchscreen and hwmon to use to share |
| 151 | this resource. |
| 152 | |
Ben Dooks | b6a6041 | 2010-01-06 02:45:09 +0900 | [diff] [blame] | 153 | # device definitions to compile in |
| 154 | |
| 155 | config S3C_DEV_HSMMC |
| 156 | bool |
| 157 | help |
| 158 | Compile in platform device definitions for HSMMC code |
| 159 | |
| 160 | config S3C_DEV_HSMMC1 |
| 161 | bool |
| 162 | help |
| 163 | Compile in platform device definitions for HSMMC channel 1 |
| 164 | |
| 165 | config S3C_DEV_HSMMC2 |
| 166 | bool |
| 167 | help |
| 168 | Compile in platform device definitions for HSMMC channel 2 |
| 169 | |
Hyuk Lee | b3c674b | 2010-06-10 15:22:16 +0900 | [diff] [blame] | 170 | config S3C_DEV_HSMMC3 |
| 171 | bool |
| 172 | help |
| 173 | Compile in platform device definitions for HSMMC channel 3 |
| 174 | |
Maurus Cuelenaere | 6cd82ff | 2010-05-04 13:12:32 +0200 | [diff] [blame] | 175 | config S3C_DEV_HWMON |
| 176 | bool |
| 177 | help |
| 178 | Compile in platform device definitions for HWMON |
| 179 | |
Ben Dooks | b6a6041 | 2010-01-06 02:45:09 +0900 | [diff] [blame] | 180 | config S3C_DEV_I2C1 |
| 181 | bool |
| 182 | help |
| 183 | Compile in platform device definitions for I2C channel 1 |
| 184 | |
Marek Szyprowski | c8d833b | 2010-05-20 08:13:06 +0200 | [diff] [blame] | 185 | config S3C_DEV_I2C2 |
| 186 | bool |
| 187 | help |
| 188 | Compile in platform device definitions for I2C channel 2 |
| 189 | |
Kyungmin Park | b7a9825 | 2010-10-12 07:49:24 +0900 | [diff] [blame] | 190 | config S3C_DEV_I2C3 |
| 191 | bool |
| 192 | help |
| 193 | Compile in platform device definition for I2C controller 3 |
| 194 | |
| 195 | config S3C_DEV_I2C4 |
| 196 | bool |
| 197 | help |
| 198 | Compile in platform device definition for I2C controller 4 |
| 199 | |
| 200 | config S3C_DEV_I2C5 |
| 201 | bool |
| 202 | help |
| 203 | Compile in platform device definition for I2C controller 5 |
| 204 | |
| 205 | config S3C_DEV_I2C6 |
| 206 | bool |
| 207 | help |
| 208 | Compile in platform device definition for I2C controller 6 |
| 209 | |
| 210 | config S3C_DEV_I2C7 |
| 211 | bool |
| 212 | help |
| 213 | Compile in platform device definition for I2C controller 7 |
| 214 | |
Ben Dooks | b6a6041 | 2010-01-06 02:45:09 +0900 | [diff] [blame] | 215 | config S3C_DEV_FB |
| 216 | bool |
| 217 | help |
| 218 | Compile in platform device definition for framebuffer |
| 219 | |
| 220 | config S3C_DEV_USB_HOST |
| 221 | bool |
| 222 | help |
| 223 | Compile in platform device definition for USB host. |
| 224 | |
| 225 | config S3C_DEV_USB_HSOTG |
| 226 | bool |
| 227 | help |
| 228 | Compile in platform device definition for USB high-speed OtG |
| 229 | |
Banajit Goswami | e1d5c93 | 2010-05-19 15:42:29 +0900 | [diff] [blame] | 230 | config S3C_DEV_WDT |
| 231 | bool |
| 232 | default y if ARCH_S3C2410 |
| 233 | help |
| 234 | Complie in platform device definition for Watchdog Timer |
| 235 | |
Ben Dooks | b6a6041 | 2010-01-06 02:45:09 +0900 | [diff] [blame] | 236 | config S3C_DEV_NAND |
| 237 | bool |
| 238 | help |
| 239 | Compile in platform device definition for NAND controller |
| 240 | |
Marek Szyprowski | 999304b | 2010-05-20 08:59:05 +0200 | [diff] [blame] | 241 | config S3C_DEV_ONENAND |
| 242 | bool |
| 243 | help |
| 244 | Compile in platform device definition for OneNAND controller |
| 245 | |
Atul Dahiya | adc0950c | 2010-05-18 14:58:56 +0900 | [diff] [blame] | 246 | config S3C_DEV_RTC |
| 247 | bool |
| 248 | help |
| 249 | Complie in platform device definition for RTC |
| 250 | |
Naveen Krishna | 4f7cdc3 | 2010-05-13 22:06:36 +0900 | [diff] [blame] | 251 | config SAMSUNG_DEV_ADC |
| 252 | bool |
| 253 | help |
| 254 | Compile in platform device definition for ADC controller |
| 255 | |
Abhilash Kesavan | db90005 | 2010-06-08 16:38:20 +0900 | [diff] [blame] | 256 | config SAMSUNG_DEV_IDE |
| 257 | bool |
| 258 | help |
| 259 | Compile in platform device definitions for IDE |
| 260 | |
Jassi Brar | 4b4c662 | 2010-01-28 17:14:49 +0900 | [diff] [blame] | 261 | config S3C64XX_DEV_SPI |
| 262 | bool |
| 263 | help |
| 264 | Compile in platform device definitions for S3C64XX's type |
| 265 | SPI controllers. |
| 266 | |
Ben Dooks | 2b6c02a | 2010-05-19 14:36:28 +0900 | [diff] [blame] | 267 | config SAMSUNG_DEV_TS |
Maurus Cuelenaere | 909de0d | 2010-05-04 13:12:44 +0200 | [diff] [blame] | 268 | bool |
| 269 | help |
Ben Dooks | 2b6c02a | 2010-05-19 14:36:28 +0900 | [diff] [blame] | 270 | Common in platform device definitions for touchscreen device |
Maurus Cuelenaere | 909de0d | 2010-05-04 13:12:44 +0200 | [diff] [blame] | 271 | |
Joonyoung Shim | 995c48a | 2010-08-06 19:26:10 +0900 | [diff] [blame] | 272 | config SAMSUNG_DEV_KEYPAD |
| 273 | bool |
| 274 | help |
| 275 | Compile in platform device definitions for keypad |
| 276 | |
Banajit Goswami | 2ce3013 | 2011-02-28 22:24:51 +0530 | [diff] [blame] | 277 | config SAMSUNG_DEV_PWM |
| 278 | bool |
| 279 | default y if ARCH_S3C2410 |
| 280 | help |
| 281 | Compile in platform device definition for PWM Timer |
| 282 | |
| 283 | config S3C24XX_PWM |
| 284 | bool "PWM device support" |
| 285 | select HAVE_PWM |
| 286 | help |
| 287 | Support for exporting the PWM timer blocks via the pwm device |
| 288 | system |
| 289 | |
Ben Dooks | 89f1fa0 | 2010-01-29 09:02:17 +0000 | [diff] [blame] | 290 | # DMA |
| 291 | |
| 292 | config S3C_DMA |
| 293 | bool |
| 294 | help |
| 295 | Internal configuration for S3C DMA core |
| 296 | |
Jassi Brar | d800ede | 2010-05-18 11:59:06 +0900 | [diff] [blame] | 297 | config S3C_PL330_DMA |
| 298 | bool |
| 299 | select PL330 |
| 300 | help |
| 301 | S3C DMA API Driver for PL330 DMAC. |
| 302 | |
Ben Dooks | 8005745 | 2010-01-20 12:29:25 +0900 | [diff] [blame] | 303 | comment "Power management" |
| 304 | |
| 305 | config SAMSUNG_PM_DEBUG |
| 306 | bool "S3C2410 PM Suspend debug" |
| 307 | depends on PM |
| 308 | help |
| 309 | Say Y here if you want verbose debugging from the PM Suspend and |
| 310 | Resume code. See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt> |
| 311 | for more information. |
| 312 | |
| 313 | config S3C_PM_DEBUG_LED_SMDK |
| 314 | bool "SMDK LED suspend/resume debugging" |
| 315 | depends on PM && (MACH_SMDK6410) |
| 316 | help |
| 317 | Say Y here to enable the use of the SMDK LEDs on the baseboard |
| 318 | for debugging of the state of the suspend and resume process. |
| 319 | |
| 320 | Note, this currently only works for S3C64XX based SMDK boards. |
| 321 | |
| 322 | config SAMSUNG_PM_CHECK |
| 323 | bool "S3C2410 PM Suspend Memory CRC" |
| 324 | depends on PM && CRC32 |
| 325 | help |
| 326 | Enable the PM code's memory area checksum over sleep. This option |
| 327 | will generate CRCs of all blocks of memory, and store them before |
| 328 | going to sleep. The blocks are then checked on resume for any |
| 329 | errors. |
| 330 | |
| 331 | Note, this can take several seconds depending on memory size |
| 332 | and CPU speed. |
| 333 | |
| 334 | See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt> |
| 335 | |
| 336 | config SAMSUNG_PM_CHECK_CHUNKSIZE |
| 337 | int "S3C2410 PM Suspend CRC Chunksize (KiB)" |
| 338 | depends on PM && SAMSUNG_PM_CHECK |
| 339 | default 64 |
| 340 | help |
| 341 | Set the chunksize in Kilobytes of the CRC for checking memory |
| 342 | corruption over suspend and resume. A smaller value will mean that |
| 343 | the CRC data block will take more memory, but wil identify any |
| 344 | faults with better precision. |
| 345 | |
| 346 | See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt> |
| 347 | |
Ben Dooks | 0317e52 | 2010-05-20 14:05:33 +0900 | [diff] [blame] | 348 | config SAMSUNG_WAKEMASK |
| 349 | bool |
| 350 | depends on PM |
| 351 | help |
| 352 | Compile support for wakeup-mask controls found on the S3C6400 |
| 353 | and above. This code allows a set of interrupt to wakeup-mask |
| 354 | mappings. See <plat/wakeup-mask.h> |
| 355 | |
Changhwan Youn | d930596 | 2010-12-03 17:14:57 +0900 | [diff] [blame] | 356 | comment "Power Domain" |
| 357 | |
| 358 | config SAMSUNG_PD |
| 359 | bool "Samsung Power Domain" |
| 360 | depends on PM_RUNTIME |
| 361 | help |
| 362 | Say Y here if you want to control Power Domain by Runtime PM. |
| 363 | |
Ben Dooks | cf38367 | 2009-11-10 00:14:58 +0000 | [diff] [blame] | 364 | endif |