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 |
Tomasz Figa | d78c16c | 2014-07-02 19:40:44 +0200 | [diff] [blame] | 9 | depends on PLAT_S3C24XX || ARCH_S3C64XX || ARCH_EXYNOS || ARCH_S5PV210 |
Ben Dooks | cf38367 | 2009-11-10 00:14:58 +0000 | [diff] [blame] | 10 | default y |
Russell King | b1b3f49 | 2012-10-06 17:12:25 +0100 | [diff] [blame] | 11 | select GENERIC_IRQ_CHIP |
Uwe Kleine-König | ce816fa | 2014-04-07 15:39:19 -0700 | [diff] [blame] | 12 | select NO_IOPORT_MAP |
Ben Dooks | cf38367 | 2009-11-10 00:14:58 +0000 | [diff] [blame] | 13 | help |
| 14 | Base platform code for all Samsung SoC based systems |
| 15 | |
Amit Daniel Kachhap | 8969301 | 2013-07-24 14:06:13 +0900 | [diff] [blame] | 16 | config SAMSUNG_PM |
| 17 | bool |
Tomasz Figa | d78c16c | 2014-07-02 19:40:44 +0200 | [diff] [blame] | 18 | depends on PM && (PLAT_S3C24XX || ARCH_S3C64XX) |
Amit Daniel Kachhap | 8969301 | 2013-07-24 14:06:13 +0900 | [diff] [blame] | 19 | default y |
| 20 | help |
| 21 | Base platform power management code for samsung code |
| 22 | |
Ben Dooks | cf38367 | 2009-11-10 00:14:58 +0000 | [diff] [blame] | 23 | if PLAT_SAMSUNG |
Rob Herring | e509b28 | 2014-06-10 09:06:09 -0500 | [diff] [blame] | 24 | menu "Samsung Common options" |
Ben Dooks | cf38367 | 2009-11-10 00:14:58 +0000 | [diff] [blame] | 25 | |
Ben Dooks | 89f1fa0 | 2010-01-29 09:02:17 +0000 | [diff] [blame] | 26 | # boot configurations |
| 27 | |
| 28 | comment "Boot options" |
| 29 | |
Ben Dooks | 89f1fa0 | 2010-01-29 09:02:17 +0000 | [diff] [blame] | 30 | config S3C_LOWLEVEL_UART_PORT |
| 31 | int "S3C UART to use for low-level messages" |
Rob Herring | e509b28 | 2014-06-10 09:06:09 -0500 | [diff] [blame] | 32 | depends on ARCH_S3C64XX |
Ben Dooks | 89f1fa0 | 2010-01-29 09:02:17 +0000 | [diff] [blame] | 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 | |
Tomasz Figa | cd8dc7a | 2013-06-15 09:01:49 +0900 | [diff] [blame] | 40 | config SAMSUNG_ATAGS |
| 41 | def_bool n |
Tomasz Figa | cd8dc7a | 2013-06-15 09:01:49 +0900 | [diff] [blame] | 42 | depends on ATAGS |
| 43 | help |
| 44 | This option enables ATAGS based boot support code for |
| 45 | Samsung platforms, including static platform devices, legacy |
| 46 | clock, timer and interrupt initialization, etc. |
| 47 | |
| 48 | Platforms that support only DT based boot need not to select |
| 49 | this option. |
| 50 | |
| 51 | if SAMSUNG_ATAGS |
| 52 | |
Ben Dooks | 89f1fa0 | 2010-01-29 09:02:17 +0000 | [diff] [blame] | 53 | config S3C_GPIO_SPACE |
| 54 | int "Space between gpio banks" |
| 55 | default 0 |
| 56 | help |
| 57 | Add a number of spare GPIO entries between each bank for debugging |
| 58 | purposes. This allows any problems where an counter overflows from |
| 59 | one bank to another to be caught, at the expense of using a little |
| 60 | more memory. |
| 61 | |
| 62 | config S3C_GPIO_TRACK |
| 63 | bool |
| 64 | help |
| 65 | Internal configuration option to enable the s3c specific gpio |
| 66 | chip tracking if the platform requires it. |
| 67 | |
Maurus Cuelenaere | 3929e1e | 2010-01-14 00:30:31 +0100 | [diff] [blame] | 68 | # ADC driver |
| 69 | |
| 70 | config S3C_ADC |
| 71 | bool "ADC common driver support" |
Arnd Bergmann | af37eec | 2014-07-07 14:25:15 +0200 | [diff] [blame] | 72 | depends on !ARCH_MULTIPLATFORM |
Maurus Cuelenaere | 3929e1e | 2010-01-14 00:30:31 +0100 | [diff] [blame] | 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 | |
Ben Dooks | b6a6041 | 2010-01-06 02:45:09 +0900 | [diff] [blame] | 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 | |
Hyuk Lee | b3c674b | 2010-06-10 15:22:16 +0900 | [diff] [blame] | 95 | config S3C_DEV_HSMMC3 |
| 96 | bool |
| 97 | help |
| 98 | Compile in platform device definitions for HSMMC channel 3 |
| 99 | |
Maurus Cuelenaere | 6cd82ff | 2010-05-04 13:12:32 +0200 | [diff] [blame] | 100 | config S3C_DEV_HWMON |
| 101 | bool |
| 102 | help |
| 103 | Compile in platform device definitions for HWMON |
| 104 | |
Ben Dooks | b6a6041 | 2010-01-06 02:45:09 +0900 | [diff] [blame] | 105 | config S3C_DEV_I2C1 |
| 106 | bool |
| 107 | help |
| 108 | Compile in platform device definitions for I2C channel 1 |
| 109 | |
Marek Szyprowski | c8d833b | 2010-05-20 08:13:06 +0200 | [diff] [blame] | 110 | config S3C_DEV_I2C2 |
| 111 | bool |
| 112 | help |
| 113 | Compile in platform device definitions for I2C channel 2 |
| 114 | |
Kyungmin Park | b7a9825 | 2010-10-12 07:49:24 +0900 | [diff] [blame] | 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 | |
Ben Dooks | b6a6041 | 2010-01-06 02:45:09 +0900 | [diff] [blame] | 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 | |
Banajit Goswami | e1d5c93 | 2010-05-19 15:42:29 +0900 | [diff] [blame] | 155 | config S3C_DEV_WDT |
| 156 | bool |
Kukjin Kim | b130d5c | 2012-02-03 14:29:23 +0900 | [diff] [blame] | 157 | default y if ARCH_S3C24XX |
Banajit Goswami | e1d5c93 | 2010-05-19 15:42:29 +0900 | [diff] [blame] | 158 | help |
| 159 | Complie in platform device definition for Watchdog Timer |
| 160 | |
Ben Dooks | b6a6041 | 2010-01-06 02:45:09 +0900 | [diff] [blame] | 161 | config S3C_DEV_NAND |
| 162 | bool |
| 163 | help |
| 164 | Compile in platform device definition for NAND controller |
| 165 | |
Marek Szyprowski | 999304b | 2010-05-20 08:59:05 +0200 | [diff] [blame] | 166 | config S3C_DEV_ONENAND |
| 167 | bool |
| 168 | help |
| 169 | Compile in platform device definition for OneNAND controller |
| 170 | |
Atul Dahiya | adc0950c | 2010-05-18 14:58:56 +0900 | [diff] [blame] | 171 | config S3C_DEV_RTC |
| 172 | bool |
| 173 | help |
| 174 | Complie in platform device definition for RTC |
| 175 | |
Naveen Krishna | 4f7cdc3 | 2010-05-13 22:06:36 +0900 | [diff] [blame] | 176 | config SAMSUNG_DEV_ADC |
| 177 | bool |
| 178 | help |
| 179 | Compile in platform device definition for ADC controller |
| 180 | |
Abhilash Kesavan | db90005 | 2010-06-08 16:38:20 +0900 | [diff] [blame] | 181 | config SAMSUNG_DEV_IDE |
| 182 | bool |
| 183 | help |
| 184 | Compile in platform device definitions for IDE |
| 185 | |
Padmavathi Venna | 875a593 | 2011-12-23 10:14:31 +0900 | [diff] [blame] | 186 | config S3C64XX_DEV_SPI0 |
Jassi Brar | 4b4c662 | 2010-01-28 17:14:49 +0900 | [diff] [blame] | 187 | bool |
| 188 | help |
| 189 | Compile in platform device definitions for S3C64XX's type |
Padmavathi Venna | 875a593 | 2011-12-23 10:14:31 +0900 | [diff] [blame] | 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 |
Jassi Brar | 4b4c662 | 2010-01-28 17:14:49 +0900 | [diff] [blame] | 203 | |
Ben Dooks | 2b6c02a | 2010-05-19 14:36:28 +0900 | [diff] [blame] | 204 | config SAMSUNG_DEV_TS |
Maurus Cuelenaere | 909de0d | 2010-05-04 13:12:44 +0200 | [diff] [blame] | 205 | bool |
| 206 | help |
Ben Dooks | 2b6c02a | 2010-05-19 14:36:28 +0900 | [diff] [blame] | 207 | Common in platform device definitions for touchscreen device |
Maurus Cuelenaere | 909de0d | 2010-05-04 13:12:44 +0200 | [diff] [blame] | 208 | |
Joonyoung Shim | 995c48a | 2010-08-06 19:26:10 +0900 | [diff] [blame] | 209 | config SAMSUNG_DEV_KEYPAD |
| 210 | bool |
| 211 | help |
| 212 | Compile in platform device definitions for keypad |
| 213 | |
Banajit Goswami | 2ce3013 | 2011-02-28 22:24:51 +0530 | [diff] [blame] | 214 | config SAMSUNG_DEV_PWM |
| 215 | bool |
Kukjin Kim | b130d5c | 2012-02-03 14:29:23 +0900 | [diff] [blame] | 216 | default y if ARCH_S3C24XX |
Banajit Goswami | 2ce3013 | 2011-02-28 22:24:51 +0530 | [diff] [blame] | 217 | help |
| 218 | Compile in platform device definition for PWM Timer |
| 219 | |
| 220 | config S3C24XX_PWM |
| 221 | bool "PWM device support" |
Arnd Bergmann | 35e7906 | 2012-08-04 07:52:19 +0000 | [diff] [blame] | 222 | select PWM |
| 223 | select PWM_SAMSUNG |
Banajit Goswami | 2ce3013 | 2011-02-28 22:24:51 +0530 | [diff] [blame] | 224 | help |
| 225 | Support for exporting the PWM timer blocks via the pwm device |
| 226 | system |
| 227 | |
Arnd Bergmann | 0f20e45 | 2015-02-27 21:54:18 +0100 | [diff] [blame] | 228 | config GPIO_SAMSUNG |
| 229 | def_bool y |
| 230 | |
Tomasz Figa | 105dddb | 2013-06-19 01:24:12 +0900 | [diff] [blame] | 231 | config SAMSUNG_PM_GPIO |
| 232 | bool |
| 233 | default y if GPIO_SAMSUNG && PM |
| 234 | help |
| 235 | Include legacy GPIO power management code for platforms not using |
| 236 | pinctrl-samsung driver. |
Arnd Bergmann | 27873b0 | 2014-06-13 12:04:39 +0200 | [diff] [blame] | 237 | endif |
| 238 | |
Ben Dooks | 8005745 | 2010-01-20 12:29:25 +0900 | [diff] [blame] | 239 | comment "Power management" |
| 240 | |
| 241 | config SAMSUNG_PM_DEBUG |
Tomasz Figa | 2c05471 | 2014-09-24 02:10:04 +0900 | [diff] [blame] | 242 | bool "Samsung PM Suspend debug" |
| 243 | depends on PM && DEBUG_KERNEL |
| 244 | depends on DEBUG_EXYNOS_UART || DEBUG_S3C24XX_UART || DEBUG_S3C2410_UART |
Ben Dooks | 8005745 | 2010-01-20 12:29:25 +0900 | [diff] [blame] | 245 | help |
| 246 | Say Y here if you want verbose debugging from the PM Suspend and |
| 247 | Resume code. See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt> |
| 248 | for more information. |
| 249 | |
| 250 | config S3C_PM_DEBUG_LED_SMDK |
| 251 | bool "SMDK LED suspend/resume debugging" |
| 252 | depends on PM && (MACH_SMDK6410) |
| 253 | help |
| 254 | Say Y here to enable the use of the SMDK LEDs on the baseboard |
| 255 | for debugging of the state of the suspend and resume process. |
| 256 | |
| 257 | Note, this currently only works for S3C64XX based SMDK boards. |
| 258 | |
| 259 | config SAMSUNG_PM_CHECK |
| 260 | bool "S3C2410 PM Suspend Memory CRC" |
Arnd Bergmann | 714e330 | 2014-03-18 10:02:26 +0100 | [diff] [blame] | 261 | depends on PM |
| 262 | select CRC32 |
Ben Dooks | 8005745 | 2010-01-20 12:29:25 +0900 | [diff] [blame] | 263 | help |
| 264 | Enable the PM code's memory area checksum over sleep. This option |
| 265 | will generate CRCs of all blocks of memory, and store them before |
| 266 | going to sleep. The blocks are then checked on resume for any |
| 267 | errors. |
| 268 | |
| 269 | Note, this can take several seconds depending on memory size |
| 270 | and CPU speed. |
| 271 | |
| 272 | See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt> |
| 273 | |
| 274 | config SAMSUNG_PM_CHECK_CHUNKSIZE |
| 275 | int "S3C2410 PM Suspend CRC Chunksize (KiB)" |
| 276 | depends on PM && SAMSUNG_PM_CHECK |
| 277 | default 64 |
| 278 | help |
| 279 | Set the chunksize in Kilobytes of the CRC for checking memory |
| 280 | corruption over suspend and resume. A smaller value will mean that |
| 281 | the CRC data block will take more memory, but wil identify any |
| 282 | faults with better precision. |
| 283 | |
| 284 | See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt> |
| 285 | |
Ben Dooks | 0317e52 | 2010-05-20 14:05:33 +0900 | [diff] [blame] | 286 | config SAMSUNG_WAKEMASK |
| 287 | bool |
| 288 | depends on PM |
| 289 | help |
| 290 | Compile support for wakeup-mask controls found on the S3C6400 |
| 291 | and above. This code allows a set of interrupt to wakeup-mask |
| 292 | mappings. See <plat/wakeup-mask.h> |
| 293 | |
Tomasz Figa | a4658e5 | 2013-06-17 23:45:33 +0900 | [diff] [blame] | 294 | config SAMSUNG_WDT_RESET |
| 295 | bool |
| 296 | help |
| 297 | Compile support for system restart by triggering watchdog reset. |
| 298 | Used on SoCs that do not provide dedicated reset control. |
| 299 | |
Will Deacon | 952aeeb2 | 2011-08-16 22:28:54 +0100 | [diff] [blame] | 300 | config DEBUG_S3C_UART |
| 301 | depends on PLAT_SAMSUNG |
| 302 | int |
| 303 | default "0" if DEBUG_S3C_UART0 |
| 304 | default "1" if DEBUG_S3C_UART1 |
| 305 | default "2" if DEBUG_S3C_UART2 |
Olof Johansson | 5fa23dd | 2012-11-22 14:24:04 +0900 | [diff] [blame] | 306 | default "3" if DEBUG_S3C_UART3 |
Will Deacon | 952aeeb2 | 2011-08-16 22:28:54 +0100 | [diff] [blame] | 307 | |
Rob Herring | e509b28 | 2014-06-10 09:06:09 -0500 | [diff] [blame] | 308 | endmenu |
Ben Dooks | cf38367 | 2009-11-10 00:14:58 +0000 | [diff] [blame] | 309 | endif |