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