Commit | Line | Data |
---|---|---|
a21765a7 BD |
1 | # Copyright 2007 Simtec Electronics |
2 | # | |
3 | # Licensed under GPLv2 | |
4 | ||
5 | config PLAT_S3C24XX | |
6 | bool | |
bcae8aeb BD |
7 | depends on ARCH_S3C2410 || ARCH_S3C24A0 |
8 | default y | |
7d477a04 | 9 | select NO_IOPORT |
bb2b180c | 10 | select ARCH_REQUIRE_GPIOLIB |
db616eb6 | 11 | select S3C_DEVICE_NAND |
9bbb851c | 12 | select S3C_GPIO_CFG_S3C24XX |
a21765a7 | 13 | help |
d58153d8 | 14 | Base platform code for any Samsung S3C24XX device |
a21765a7 | 15 | |
b8870605 BD |
16 | if PLAT_S3C24XX |
17 | ||
89f1fa08 BD |
18 | # low-level serial option nodes |
19 | ||
20 | config CPU_LLSERIAL_S3C2410_ONLY | |
21 | bool | |
22 | default y if CPU_LLSERIAL_S3C2410 && !CPU_LLSERIAL_S3C2440 | |
23 | ||
24 | config CPU_LLSERIAL_S3C2440_ONLY | |
25 | bool | |
26 | default y if CPU_LLSERIAL_S3C2440 && !CPU_LLSERIAL_S3C2410 | |
27 | ||
28 | config CPU_LLSERIAL_S3C2410 | |
29 | bool | |
30 | help | |
31 | Selected if there is an S3C2410 (or register compatible) serial | |
32 | low-level implementation needed | |
33 | ||
34 | config CPU_LLSERIAL_S3C2440 | |
35 | bool | |
36 | help | |
37 | Selected if there is an S3C2440 (or register compatible) serial | |
38 | low-level implementation needed | |
39 | ||
1b3ba688 BD |
40 | # code that is shared between a number of the s3c24xx implementations |
41 | ||
42 | config S3C2410_CLOCK | |
43 | bool | |
44 | help | |
45 | Clock code for the S3C2410, and similar processors which | |
46 | is currently includes the S3C2410, S3C2440, S3C2442. | |
47 | ||
af337f3e BD |
48 | config S3C2443_CLOCK |
49 | bool | |
50 | help | |
51 | Clock code for the S3C2443 and similar processors, which includes | |
52 | the S3C2416 and S3C2450. | |
53 | ||
93bc6b63 BD |
54 | config S3C24XX_DCLK |
55 | bool | |
56 | help | |
57 | Clock code for supporting DCLK/CLKOUT on S3C24XX architectures | |
58 | ||
6fc601e3 BD |
59 | config S3C24XX_PWM |
60 | bool "PWM device support" | |
61 | select HAVE_PWM | |
62 | help | |
63 | Support for exporting the PWM timer blocks via the pwm device | |
64 | system. | |
65 | ||
e2178d43 BD |
66 | # gpio configurations |
67 | ||
68 | config S3C24XX_GPIO_EXTRA | |
69 | int | |
70 | default 128 if S3C24XX_GPIO_EXTRA128 | |
71 | default 64 if S3C24XX_GPIO_EXTRA64 | |
72 | default 0 | |
73 | ||
74 | config S3C24XX_GPIO_EXTRA64 | |
75 | bool | |
76 | help | |
77 | Add an extra 64 gpio numbers to the available GPIO pool. This is | |
78 | available for boards that need extra gpios for external devices. | |
79 | ||
80 | config S3C24XX_GPIO_EXTRA128 | |
81 | bool | |
82 | help | |
83 | Add an extra 128 gpio numbers to the available GPIO pool. This is | |
84 | available for boards that need extra gpios for external devices. | |
85 | ||
a21765a7 BD |
86 | config PM_SIMTEC |
87 | bool | |
88 | help | |
89 | Common power management code for systems that are | |
90 | compatible with the Simtec style of power management | |
91 | ||
a21765a7 BD |
92 | config S3C2410_DMA |
93 | bool "S3C2410 DMA support" | |
94 | depends on ARCH_S3C2410 | |
97c1b145 | 95 | select S3C_DMA |
a21765a7 BD |
96 | help |
97 | S3C2410 DMA support. This is needed for drivers like sound which | |
98 | use the S3C2410's DMA system to move data to and from the | |
99 | peripheral blocks. | |
100 | ||
101 | config S3C2410_DMA_DEBUG | |
102 | bool "S3C2410 DMA support debug" | |
103 | depends on ARCH_S3C2410 && S3C2410_DMA | |
104 | help | |
105 | Enable debugging output for the DMA code. This option sends info | |
106 | to the kernel log, at priority KERN_DEBUG. | |
107 | ||
b2a6cf3b BD |
108 | # SPI default pin configuration code |
109 | ||
110 | config S3C24XX_SPI_BUS0_GPE11_GPE12_GPE13 | |
111 | bool | |
112 | help | |
113 | SPI GPIO configuration code for BUS0 when connected to | |
114 | GPE11, GPE12 and GPE13. | |
115 | ||
116 | config S3C24XX_SPI_BUS1_GPG5_GPG6_GPG7 | |
117 | bool | |
118 | help | |
119 | SPI GPIO configuration code for BUS 1 when connected to | |
120 | GPG5, GPG6 and GPG7. | |
121 | ||
a2c195fd BD |
122 | config S3C24XX_SPI_BUS1_GPD8_GPD9_GPD10 |
123 | bool | |
124 | help | |
125 | SPI GPIO configuration code for BUS 1 when connected to | |
126 | GPD8, GPD9 and GPD10. | |
127 | ||
b2a6cf3b BD |
128 | # common code for s3c24xx based machines, such as the SMDKs. |
129 | ||
831a6fcb BD |
130 | # cpu frequency items common between s3c2410 and s3c2440/s3c2442 |
131 | ||
132 | config S3C2410_IOTIMING | |
133 | bool | |
134 | depends on CPU_FREQ_S3C24XX | |
135 | help | |
136 | Internal node to select io timing code that is common to the s3c2410 | |
137 | and s3c2440/s3c2442 cpu frequency support. | |
138 | ||
a24c091d BD |
139 | config S3C2410_CPUFREQ_UTILS |
140 | bool | |
141 | depends on CPU_FREQ_S3C24XX | |
142 | help | |
143 | Internal node to select timing code that is common to the s3c2410 | |
144 | and s3c2440/s3c244 cpu frequency support. | |
145 | ||
140780ab BD |
146 | # cpu frequency support common to s3c2412, s3c2413 and s3c2442 |
147 | ||
148 | config S3C2412_IOTIMING | |
149 | bool | |
150 | depends on CPU_FREQ_S3C24XX && (CPU_S3C2412 || CPU_S3C2443) | |
151 | help | |
152 | Intel node to select io timing code that is common to the s3c2412 | |
153 | and the s3c2443. | |
154 | ||
a21765a7 BD |
155 | config MACH_SMDK |
156 | bool | |
157 | help | |
158 | Common machine code for SMDK2410 and SMDK2440 | |
159 | ||
4d3a3469 BD |
160 | config S3C24XX_SIMTEC_AUDIO |
161 | bool | |
162 | depends on (ARCH_BAST || MACH_VR1000 || MACH_OSIRIS || MACH_ANUBIS) | |
163 | default y | |
164 | help | |
165 | Add audio devices for common Simtec S3C24XX boards | |
166 | ||
b8870605 | 167 | endif |