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