Ben Dooks | d58153d | 2007-07-22 16:07:09 +0100 | [diff] [blame] | 1 | # arch/arm/plat-s3c/Kconfig |
| 2 | # |
| 3 | # Copyright 2007 Simtec Electronics |
| 4 | # |
| 5 | # Licensed under GPLv2 |
| 6 | |
| 7 | config PLAT_S3C |
| 8 | bool |
Ben Dooks | a08ab63 | 2008-10-21 14:06:39 +0100 | [diff] [blame] | 9 | depends on ARCH_S3C2410 || ARCH_S3C24A0 || ARCH_S3C64XX |
Ben Dooks | bcae8ae | 2008-10-21 14:06:32 +0100 | [diff] [blame] | 10 | default y |
Ben Dooks | d58153d | 2007-07-22 16:07:09 +0100 | [diff] [blame] | 11 | select NO_IOPORT |
| 12 | help |
| 13 | Base platform code for any Samsung S3C device |
| 14 | |
Ben Dooks | b262758 | 2007-07-22 16:09:44 +0100 | [diff] [blame] | 15 | # low-level serial option nodes |
| 16 | |
Russell King | d83a12a | 2008-12-21 15:02:07 +0000 | [diff] [blame] | 17 | if PLAT_S3C |
| 18 | |
Ben Dooks | b262758 | 2007-07-22 16:09:44 +0100 | [diff] [blame] | 19 | config CPU_LLSERIAL_S3C2410_ONLY |
| 20 | bool |
Ben Dooks | b262758 | 2007-07-22 16:09:44 +0100 | [diff] [blame] | 21 | default y if CPU_LLSERIAL_S3C2410 && !CPU_LLSERIAL_S3C2440 |
| 22 | |
| 23 | config CPU_LLSERIAL_S3C2440_ONLY |
| 24 | bool |
Ben Dooks | b262758 | 2007-07-22 16:09:44 +0100 | [diff] [blame] | 25 | default y if CPU_LLSERIAL_S3C2440 && !CPU_LLSERIAL_S3C2410 |
| 26 | |
| 27 | config CPU_LLSERIAL_S3C2410 |
| 28 | bool |
Ben Dooks | b262758 | 2007-07-22 16:09:44 +0100 | [diff] [blame] | 29 | help |
| 30 | Selected if there is an S3C2410 (or register compatible) serial |
| 31 | low-level implementation needed |
| 32 | |
| 33 | config CPU_LLSERIAL_S3C2440 |
| 34 | bool |
Ben Dooks | b262758 | 2007-07-22 16:09:44 +0100 | [diff] [blame] | 35 | help |
| 36 | Selected if there is an S3C2440 (or register compatible) serial |
| 37 | low-level implementation needed |
| 38 | |
| 39 | # boot configurations |
| 40 | |
Ben Dooks | d58153d | 2007-07-22 16:07:09 +0100 | [diff] [blame] | 41 | comment "Boot options" |
| 42 | |
Ben Dooks | a45f826 | 2007-07-22 16:16:51 +0100 | [diff] [blame] | 43 | config S3C_BOOT_WATCHDOG |
| 44 | bool "S3C Initialisation watchdog" |
Russell King | d83a12a | 2008-12-21 15:02:07 +0000 | [diff] [blame] | 45 | depends on S3C2410_WATCHDOG |
Ben Dooks | d58153d | 2007-07-22 16:07:09 +0100 | [diff] [blame] | 46 | help |
| 47 | Say y to enable the watchdog during the kernel decompression |
| 48 | stage. If the kernel fails to uncompress, then the watchdog |
| 49 | will trigger a reset and the system should restart. |
| 50 | |
Ben Dooks | a45f826 | 2007-07-22 16:16:51 +0100 | [diff] [blame] | 51 | config S3C_BOOT_ERROR_RESET |
| 52 | bool "S3C Reboot on decompression error" |
Ben Dooks | d58153d | 2007-07-22 16:07:09 +0100 | [diff] [blame] | 53 | help |
| 54 | Say y here to use the watchdog to reset the system if the |
| 55 | kernel decompressor detects an error during decompression. |
| 56 | |
Ben Dooks | e7aa6f4 | 2008-12-02 19:34:52 +0000 | [diff] [blame] | 57 | config S3C_BOOT_UART_FORCE_FIFO |
| 58 | bool "Force UART FIFO on during boot process" |
Ben Dooks | e7aa6f4 | 2008-12-02 19:34:52 +0000 | [diff] [blame] | 59 | default y |
| 60 | help |
| 61 | Say Y here to force the UART FIFOs on during the kernel |
| 62 | uncompressor |
| 63 | |
Ben Dooks | d58153d | 2007-07-22 16:07:09 +0100 | [diff] [blame] | 64 | comment "Power management" |
| 65 | |
| 66 | config S3C2410_PM_DEBUG |
| 67 | bool "S3C2410 PM Suspend debug" |
Russell King | d83a12a | 2008-12-21 15:02:07 +0000 | [diff] [blame] | 68 | depends on PM |
Ben Dooks | d58153d | 2007-07-22 16:07:09 +0100 | [diff] [blame] | 69 | help |
| 70 | Say Y here if you want verbose debugging from the PM Suspend and |
| 71 | Resume code. See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt> |
| 72 | for more information. |
| 73 | |
Ben Dooks | bd117bd | 2009-03-10 18:19:35 +0000 | [diff] [blame] | 74 | config S3C_PM_DEBUG_LED_SMDK |
| 75 | bool "SMDK LED suspend/resume debugging" |
| 76 | depends on PM && (MACH_SMDK6410) |
| 77 | help |
| 78 | Say Y here to enable the use of the SMDK LEDs on the baseboard |
| 79 | for debugging of the state of the suspend and resume process. |
| 80 | |
| 81 | Note, this currently only works for S3C64XX based SMDK boards. |
| 82 | |
Ben Dooks | d58153d | 2007-07-22 16:07:09 +0100 | [diff] [blame] | 83 | config S3C2410_PM_CHECK |
| 84 | bool "S3C2410 PM Suspend Memory CRC" |
Russell King | d83a12a | 2008-12-21 15:02:07 +0000 | [diff] [blame] | 85 | depends on PM && CRC32 |
Ben Dooks | d58153d | 2007-07-22 16:07:09 +0100 | [diff] [blame] | 86 | help |
| 87 | Enable the PM code's memory area checksum over sleep. This option |
| 88 | will generate CRCs of all blocks of memory, and store them before |
| 89 | going to sleep. The blocks are then checked on resume for any |
| 90 | errors. |
| 91 | |
| 92 | Note, this can take several seconds depending on memory size |
| 93 | and CPU speed. |
| 94 | |
| 95 | See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt> |
| 96 | |
| 97 | config S3C2410_PM_CHECK_CHUNKSIZE |
| 98 | int "S3C2410 PM Suspend CRC Chunksize (KiB)" |
Russell King | d83a12a | 2008-12-21 15:02:07 +0000 | [diff] [blame] | 99 | depends on PM && S3C2410_PM_CHECK |
Ben Dooks | d58153d | 2007-07-22 16:07:09 +0100 | [diff] [blame] | 100 | default 64 |
| 101 | help |
| 102 | Set the chunksize in Kilobytes of the CRC for checking memory |
| 103 | corruption over suspend and resume. A smaller value will mean that |
| 104 | the CRC data block will take more memory, but wil identify any |
| 105 | faults with better precision. |
| 106 | |
| 107 | See <file:Documentation/arm/Samsung-S3C24XX/Suspend.txt> |
| 108 | |
Ben Dooks | c765784 | 2007-07-22 16:11:20 +0100 | [diff] [blame] | 109 | config S3C_LOWLEVEL_UART_PORT |
| 110 | int "S3C UART to use for low-level messages" |
Ben Dooks | d58153d | 2007-07-22 16:07:09 +0100 | [diff] [blame] | 111 | default 0 |
| 112 | help |
| 113 | Choice of which UART port to use for the low-level messages, |
| 114 | such as the `Uncompressing...` at start time. The value of |
| 115 | this configuration should be between zero and two. The port |
| 116 | must have been initialised by the boot-loader before use. |
Ben Dooks | 5b323c7 | 2008-10-31 16:14:28 +0000 | [diff] [blame] | 117 | |
Ben Dooks | efd3a8e | 2008-10-31 16:14:30 +0000 | [diff] [blame] | 118 | # options for gpiolib support |
| 119 | |
| 120 | config S3C_GPIO_SPACE |
| 121 | int "Space between gpio banks" |
| 122 | default 0 |
| 123 | help |
| 124 | Add a number of spare GPIO entries between each bank for debugging |
| 125 | purposes. This allows any problems where an counter overflows from |
| 126 | one bank to another to be caught, at the expense of using a little |
| 127 | more memory. |
| 128 | |
Ben Dooks | 8a53bdb | 2008-10-31 16:14:32 +0000 | [diff] [blame] | 129 | config S3C_GPIO_TRACK |
| 130 | bool |
| 131 | help |
| 132 | Internal configuration option to enable the s3c specific gpio |
| 133 | chip tracking if the platform requires it. |
| 134 | |
Ben Dooks | 21b2366 | 2008-10-31 16:14:34 +0000 | [diff] [blame] | 135 | config S3C_GPIO_PULL_UPDOWN |
| 136 | bool |
| 137 | help |
| 138 | Internal configuration to enable the correct GPIO pull helper |
| 139 | |
| 140 | config S3C_GPIO_PULL_DOWN |
| 141 | bool |
| 142 | help |
| 143 | Internal configuration to enable the correct GPIO pull helper |
| 144 | |
| 145 | config S3C_GPIO_PULL_UP |
| 146 | bool |
| 147 | help |
| 148 | Internal configuration to enable the correct GPIO pull helper |
| 149 | |
| 150 | config S3C_GPIO_CFG_S3C24XX |
| 151 | bool |
| 152 | help |
| 153 | Internal configuration to enable S3C24XX style GPIO configuration |
| 154 | functions. |
| 155 | |
| 156 | config S3C_GPIO_CFG_S3C64XX |
| 157 | bool |
| 158 | help |
| 159 | Internal configuration to enable S3C64XX style GPIO configuration |
| 160 | functions. |
| 161 | |
Ben Dooks | 97c1b14 | 2009-03-19 15:02:39 +0000 | [diff] [blame] | 162 | # DMA |
| 163 | |
| 164 | config S3C_DMA |
| 165 | bool |
| 166 | help |
| 167 | Internal configuration for S3C DMA core |
| 168 | |
Ben Dooks | 5b323c7 | 2008-10-31 16:14:28 +0000 | [diff] [blame] | 169 | # device definitions to compile in |
| 170 | |
| 171 | config S3C_DEV_HSMMC |
| 172 | bool |
Ben Dooks | 5b323c7 | 2008-10-31 16:14:28 +0000 | [diff] [blame] | 173 | help |
| 174 | Compile in platform device definitions for HSMMC code |
Ben Dooks | a2205cd | 2008-10-31 16:14:39 +0000 | [diff] [blame] | 175 | |
| 176 | config S3C_DEV_HSMMC1 |
| 177 | bool |
Ben Dooks | a2205cd | 2008-10-31 16:14:39 +0000 | [diff] [blame] | 178 | help |
| 179 | Compile in platform device definitions for HSMMC channel 1 |
Ben Dooks | 1aba834 | 2008-10-31 16:14:55 +0000 | [diff] [blame] | 180 | |
| 181 | config S3C_DEV_I2C1 |
| 182 | bool |
Ben Dooks | 1aba834 | 2008-10-31 16:14:55 +0000 | [diff] [blame] | 183 | help |
| 184 | Compile in platform device definitions for I2C channel 1 |
Ben Dooks | 58435f7 | 2008-11-19 15:41:31 +0000 | [diff] [blame] | 185 | |
| 186 | config S3C_DEV_FB |
| 187 | bool |
Ben Dooks | 58435f7 | 2008-11-19 15:41:31 +0000 | [diff] [blame] | 188 | help |
| 189 | Compile in platform device definition for framebuffer |
Russell King | d83a12a | 2008-12-21 15:02:07 +0000 | [diff] [blame] | 190 | |
Ben Dooks | eca8655 | 2009-03-06 19:49:48 +0000 | [diff] [blame] | 191 | config S3C_DEV_USB_HOST |
| 192 | bool |
| 193 | help |
| 194 | Compile in platform device definition for USB host. |
| 195 | |
Ben Dooks | f0e1fa7 | 2009-05-16 22:05:27 +0100 | [diff] [blame] | 196 | config S3C_DEV_USB_HSOTG |
| 197 | bool |
| 198 | help |
| 199 | Compile in platform device definition for USB high-speed OtG |
| 200 | |
Ben Dooks | db616eb | 2009-08-16 23:54:58 +0100 | [diff] [blame] | 201 | config S3C_DEV_NAND |
| 202 | bool |
| 203 | help |
| 204 | Compile in platform device definition for NAND controller |
| 205 | |
Russell King | d83a12a | 2008-12-21 15:02:07 +0000 | [diff] [blame] | 206 | endif |