Ben Dooks | a21765a | 2007-02-11 18:31:01 +0100 | [diff] [blame] | 1 | # arch/arm/plat-s3c24xx/Kconfig |
| 2 | # |
| 3 | # Copyright 2007 Simtec Electronics |
| 4 | # |
| 5 | # Licensed under GPLv2 |
| 6 | |
| 7 | config PLAT_S3C24XX |
| 8 | bool |
Ben Dooks | bcae8ae | 2008-10-21 14:06:32 +0100 | [diff] [blame] | 9 | depends on ARCH_S3C2410 || ARCH_S3C24A0 |
| 10 | default y |
Ben Dooks | 7d477a0 | 2007-02-12 18:59:35 +0100 | [diff] [blame] | 11 | select NO_IOPORT |
Russell King | bb2b180 | 2008-07-26 15:36:03 +0100 | [diff] [blame] | 12 | select ARCH_REQUIRE_GPIOLIB |
Ben Dooks | db616eb | 2009-08-16 23:54:58 +0100 | [diff] [blame] | 13 | select S3C_DEVICE_NAND |
Ben Dooks | a21765a | 2007-02-11 18:31:01 +0100 | [diff] [blame] | 14 | help |
Ben Dooks | d58153d | 2007-07-22 16:07:09 +0100 | [diff] [blame] | 15 | Base platform code for any Samsung S3C24XX device |
Ben Dooks | a21765a | 2007-02-11 18:31:01 +0100 | [diff] [blame] | 16 | |
Ben Dooks | b887060 | 2007-02-11 20:33:13 +0100 | [diff] [blame] | 17 | if PLAT_S3C24XX |
| 18 | |
Ben Dooks | 1b3ba68 | 2008-10-21 14:06:22 +0100 | [diff] [blame] | 19 | # code that is shared between a number of the s3c24xx implementations |
| 20 | |
| 21 | config S3C2410_CLOCK |
| 22 | bool |
| 23 | help |
| 24 | Clock code for the S3C2410, and similar processors which |
| 25 | is currently includes the S3C2410, S3C2440, S3C2442. |
| 26 | |
Ben Dooks | 93bc6b6 | 2008-10-21 14:06:33 +0100 | [diff] [blame] | 27 | config S3C24XX_DCLK |
| 28 | bool |
| 29 | help |
| 30 | Clock code for supporting DCLK/CLKOUT on S3C24XX architectures |
| 31 | |
Ben Dooks | a21765a | 2007-02-11 18:31:01 +0100 | [diff] [blame] | 32 | config CPU_S3C244X |
| 33 | bool |
| 34 | depends on ARCH_S3C2410 && (CPU_S3C2440 || CPU_S3C2442) |
| 35 | help |
| 36 | Support for S3C2440 and S3C2442 Samsung Mobile CPU based systems. |
| 37 | |
Ben Dooks | 342e20f | 2009-07-30 23:23:29 +0100 | [diff] [blame] | 38 | config S3C2440_CPUFREQ |
| 39 | bool "S3C2440/S3C2442 CPU Frequency scaling support" |
| 40 | depends on CPU_FREQ_S3C24XX && (CPU_S3C2440 || CPU_S3C2442) |
| 41 | select S3C2410_CPUFREQ_UTILS |
| 42 | default y |
| 43 | help |
| 44 | CPU Frequency scaling support for S3C2440 and S3C2442 SoC CPUs. |
| 45 | |
Ben Dooks | 0345b51 | 2009-07-30 23:23:31 +0100 | [diff] [blame] | 46 | config S3C2440_XTAL_12000000 |
| 47 | bool |
| 48 | help |
| 49 | Indicate that the build needs to support 12MHz system |
| 50 | crystal. |
| 51 | |
| 52 | config S3C2440_XTAL_16934400 |
| 53 | bool |
| 54 | help |
| 55 | Indicate that the build needs to support 16.9344MHz system |
| 56 | crystal. |
| 57 | |
Ben Dooks | 78278d6 | 2009-07-30 23:23:30 +0100 | [diff] [blame] | 58 | config S3C2440_PLL_12000000 |
| 59 | bool |
Ben Dooks | 0345b51 | 2009-07-30 23:23:31 +0100 | [diff] [blame] | 60 | depends on S3C2440_CPUFREQ && S3C2440_XTAL_12000000 |
Ben Dooks | 78278d6 | 2009-07-30 23:23:30 +0100 | [diff] [blame] | 61 | default y if CPU_FREQ_S3C24XX_PLL |
| 62 | help |
| 63 | PLL tables for S3C2440 or S3C2442 CPUs with 12MHz crystals. |
| 64 | |
| 65 | config S3C2440_PLL_16934400 |
| 66 | bool |
Ben Dooks | 0345b51 | 2009-07-30 23:23:31 +0100 | [diff] [blame] | 67 | depends on S3C2440_CPUFREQ && S3C2440_XTAL_16934400 |
Ben Dooks | 78278d6 | 2009-07-30 23:23:30 +0100 | [diff] [blame] | 68 | default y if CPU_FREQ_S3C24XX_PLL |
| 69 | help |
| 70 | PLL tables for S3C2440 or S3C2442 CPUs with 16.934MHz crystals. |
| 71 | |
Ben Dooks | 6fc601e | 2008-07-01 13:17:24 +0100 | [diff] [blame] | 72 | config S3C24XX_PWM |
| 73 | bool "PWM device support" |
| 74 | select HAVE_PWM |
| 75 | help |
| 76 | Support for exporting the PWM timer blocks via the pwm device |
| 77 | system. |
| 78 | |
Ben Dooks | e2178d4 | 2008-11-10 10:59:32 +0000 | [diff] [blame] | 79 | |
| 80 | # gpio configurations |
| 81 | |
| 82 | config S3C24XX_GPIO_EXTRA |
| 83 | int |
| 84 | default 128 if S3C24XX_GPIO_EXTRA128 |
| 85 | default 64 if S3C24XX_GPIO_EXTRA64 |
| 86 | default 0 |
| 87 | |
| 88 | config S3C24XX_GPIO_EXTRA64 |
| 89 | bool |
| 90 | help |
| 91 | Add an extra 64 gpio numbers to the available GPIO pool. This is |
| 92 | available for boards that need extra gpios for external devices. |
| 93 | |
| 94 | config S3C24XX_GPIO_EXTRA128 |
| 95 | bool |
| 96 | help |
| 97 | Add an extra 128 gpio numbers to the available GPIO pool. This is |
| 98 | available for boards that need extra gpios for external devices. |
| 99 | |
Ben Dooks | a21765a | 2007-02-11 18:31:01 +0100 | [diff] [blame] | 100 | config PM_SIMTEC |
| 101 | bool |
| 102 | help |
| 103 | Common power management code for systems that are |
| 104 | compatible with the Simtec style of power management |
| 105 | |
Ben Dooks | a21765a | 2007-02-11 18:31:01 +0100 | [diff] [blame] | 106 | config S3C2410_DMA |
| 107 | bool "S3C2410 DMA support" |
| 108 | depends on ARCH_S3C2410 |
Ben Dooks | 97c1b14 | 2009-03-19 15:02:39 +0000 | [diff] [blame] | 109 | select S3C_DMA |
Ben Dooks | a21765a | 2007-02-11 18:31:01 +0100 | [diff] [blame] | 110 | help |
| 111 | S3C2410 DMA support. This is needed for drivers like sound which |
| 112 | use the S3C2410's DMA system to move data to and from the |
| 113 | peripheral blocks. |
| 114 | |
| 115 | config S3C2410_DMA_DEBUG |
| 116 | bool "S3C2410 DMA support debug" |
| 117 | depends on ARCH_S3C2410 && S3C2410_DMA |
| 118 | help |
| 119 | Enable debugging output for the DMA code. This option sends info |
| 120 | to the kernel log, at priority KERN_DEBUG. |
| 121 | |
Ben Dooks | 28ab44c5b | 2008-12-18 14:20:04 +0000 | [diff] [blame] | 122 | config S3C24XX_ADC |
| 123 | bool "ADC common driver support" |
| 124 | help |
| 125 | Core support for the ADC block found in the S3C24XX SoC systems |
| 126 | for drivers such as the touchscreen and hwmon to use to share |
| 127 | this resource. |
| 128 | |
Ben Dooks | b2a6cf3 | 2008-10-21 14:06:20 +0100 | [diff] [blame] | 129 | # SPI default pin configuration code |
| 130 | |
| 131 | config S3C24XX_SPI_BUS0_GPE11_GPE12_GPE13 |
| 132 | bool |
| 133 | help |
| 134 | SPI GPIO configuration code for BUS0 when connected to |
| 135 | GPE11, GPE12 and GPE13. |
| 136 | |
| 137 | config S3C24XX_SPI_BUS1_GPG5_GPG6_GPG7 |
| 138 | bool |
| 139 | help |
| 140 | SPI GPIO configuration code for BUS 1 when connected to |
| 141 | GPG5, GPG6 and GPG7. |
| 142 | |
Ben Dooks | a2c195f | 2009-08-03 17:26:50 +0100 | [diff] [blame] | 143 | config S3C24XX_SPI_BUS1_GPD8_GPD9_GPD10 |
| 144 | bool |
| 145 | help |
| 146 | SPI GPIO configuration code for BUS 1 when connected to |
| 147 | GPD8, GPD9 and GPD10. |
| 148 | |
Ben Dooks | b2a6cf3 | 2008-10-21 14:06:20 +0100 | [diff] [blame] | 149 | # common code for s3c24xx based machines, such as the SMDKs. |
| 150 | |
Ben Dooks | 831a6fc | 2009-07-30 23:23:26 +0100 | [diff] [blame] | 151 | # cpu frequency items common between s3c2410 and s3c2440/s3c2442 |
| 152 | |
| 153 | config S3C2410_IOTIMING |
| 154 | bool |
| 155 | depends on CPU_FREQ_S3C24XX |
| 156 | help |
| 157 | Internal node to select io timing code that is common to the s3c2410 |
| 158 | and s3c2440/s3c2442 cpu frequency support. |
| 159 | |
Ben Dooks | a24c091 | 2009-07-30 23:23:27 +0100 | [diff] [blame] | 160 | config S3C2410_CPUFREQ_UTILS |
| 161 | bool |
| 162 | depends on CPU_FREQ_S3C24XX |
| 163 | help |
| 164 | Internal node to select timing code that is common to the s3c2410 |
| 165 | and s3c2440/s3c244 cpu frequency support. |
| 166 | |
Ben Dooks | 140780a | 2009-07-30 23:23:37 +0100 | [diff] [blame] | 167 | # cpu frequency support common to s3c2412, s3c2413 and s3c2442 |
| 168 | |
| 169 | config S3C2412_IOTIMING |
| 170 | bool |
| 171 | depends on CPU_FREQ_S3C24XX && (CPU_S3C2412 || CPU_S3C2443) |
| 172 | help |
| 173 | Intel node to select io timing code that is common to the s3c2412 |
| 174 | and the s3c2443. |
| 175 | |
Ben Dooks | a21765a | 2007-02-11 18:31:01 +0100 | [diff] [blame] | 176 | config MACH_SMDK |
| 177 | bool |
| 178 | help |
| 179 | Common machine code for SMDK2410 and SMDK2440 |
| 180 | |
Ben Dooks | b887060 | 2007-02-11 20:33:13 +0100 | [diff] [blame] | 181 | endif |