diff options
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-s5pc100/gpiolib.c | 172 | ||||
-rw-r--r-- | arch/arm/mach-s5pc100/include/mach/regs-gpio.h | 37 |
2 files changed, 69 insertions, 140 deletions
diff --git a/arch/arm/mach-s5pc100/gpiolib.c b/arch/arm/mach-s5pc100/gpiolib.c index def4ff83e051..20856eb7dd51 100644 --- a/arch/arm/mach-s5pc100/gpiolib.c +++ b/arch/arm/mach-s5pc100/gpiolib.c | |||
@@ -1,5 +1,7 @@ | |||
1 | /* | 1 | /* linux/arch/arm/mach-s5pc100/gpiolib.c |
2 | * arch/arm/plat-s5pc100/gpiolib.c | 2 | * |
3 | * Copyright (c) 2010 Samsung Electronics Co., Ltd. | ||
4 | * http://www.samsung.com | ||
3 | * | 5 | * |
4 | * Copyright 2009 Samsung Electronics Co | 6 | * Copyright 2009 Samsung Electronics Co |
5 | * Kyungmin Park <kyungmin.park@samsung.com> | 7 | * Kyungmin Park <kyungmin.park@samsung.com> |
@@ -80,217 +82,150 @@ static struct s3c_gpio_cfg gpio_cfg_noint = { | |||
80 | .get_pull = s3c_gpio_getpull_updown, | 82 | .get_pull = s3c_gpio_getpull_updown, |
81 | }; | 83 | }; |
82 | 84 | ||
85 | /* | ||
86 | * GPIO bank's base address given the index of the bank in the | ||
87 | * list of all gpio banks. | ||
88 | */ | ||
89 | #define S5PC100_BANK_BASE(bank_nr) (S5P_VA_GPIO + ((bank_nr) * 0x20)) | ||
90 | |||
91 | /* | ||
92 | * Following are the gpio banks in S5PC100. | ||
93 | * | ||
94 | * The 'config' member when left to NULL, is initialized to the default | ||
95 | * structure gpio_cfg in the init function below. | ||
96 | * | ||
97 | * The 'base' member is also initialized in the init function below. | ||
98 | * Note: The initialization of 'base' member of s3c_gpio_chip structure | ||
99 | * uses the above macro and depends on the banks being listed in order here. | ||
100 | */ | ||
83 | static struct s3c_gpio_chip s5pc100_gpio_chips[] = { | 101 | static struct s3c_gpio_chip s5pc100_gpio_chips[] = { |
84 | { | 102 | { |
85 | .base = S5PC100_GPA0_BASE, | ||
86 | .config = &gpio_cfg, | ||
87 | .chip = { | 103 | .chip = { |
88 | .base = S5PC100_GPA0(0), | 104 | .base = S5PC100_GPA0(0), |
89 | .ngpio = S5PC100_GPIO_A0_NR, | 105 | .ngpio = S5PC100_GPIO_A0_NR, |
90 | .label = "GPA0", | 106 | .label = "GPA0", |
91 | }, | 107 | }, |
92 | }, { | 108 | }, { |
93 | .base = S5PC100_GPA1_BASE, | ||
94 | .config = &gpio_cfg, | ||
95 | .chip = { | 109 | .chip = { |
96 | .base = S5PC100_GPA1(0), | 110 | .base = S5PC100_GPA1(0), |
97 | .ngpio = S5PC100_GPIO_A1_NR, | 111 | .ngpio = S5PC100_GPIO_A1_NR, |
98 | .label = "GPA1", | 112 | .label = "GPA1", |
99 | }, | 113 | }, |
100 | }, { | 114 | }, { |
101 | .base = S5PC100_GPB_BASE, | ||
102 | .config = &gpio_cfg, | ||
103 | .chip = { | 115 | .chip = { |
104 | .base = S5PC100_GPB(0), | 116 | .base = S5PC100_GPB(0), |
105 | .ngpio = S5PC100_GPIO_B_NR, | 117 | .ngpio = S5PC100_GPIO_B_NR, |
106 | .label = "GPB", | 118 | .label = "GPB", |
107 | }, | 119 | }, |
108 | }, { | 120 | }, { |
109 | .base = S5PC100_GPC_BASE, | ||
110 | .config = &gpio_cfg, | ||
111 | .chip = { | 121 | .chip = { |
112 | .base = S5PC100_GPC(0), | 122 | .base = S5PC100_GPC(0), |
113 | .ngpio = S5PC100_GPIO_C_NR, | 123 | .ngpio = S5PC100_GPIO_C_NR, |
114 | .label = "GPC", | 124 | .label = "GPC", |
115 | }, | 125 | }, |
116 | }, { | 126 | }, { |
117 | .base = S5PC100_GPD_BASE, | ||
118 | .config = &gpio_cfg, | ||
119 | .chip = { | 127 | .chip = { |
120 | .base = S5PC100_GPD(0), | 128 | .base = S5PC100_GPD(0), |
121 | .ngpio = S5PC100_GPIO_D_NR, | 129 | .ngpio = S5PC100_GPIO_D_NR, |
122 | .label = "GPD", | 130 | .label = "GPD", |
123 | }, | 131 | }, |
124 | }, { | 132 | }, { |
125 | .base = S5PC100_GPE0_BASE, | ||
126 | .config = &gpio_cfg, | ||
127 | .chip = { | 133 | .chip = { |
128 | .base = S5PC100_GPE0(0), | 134 | .base = S5PC100_GPE0(0), |
129 | .ngpio = S5PC100_GPIO_E0_NR, | 135 | .ngpio = S5PC100_GPIO_E0_NR, |
130 | .label = "GPE0", | 136 | .label = "GPE0", |
131 | }, | 137 | }, |
132 | }, { | 138 | }, { |
133 | .base = S5PC100_GPE1_BASE, | ||
134 | .config = &gpio_cfg, | ||
135 | .chip = { | 139 | .chip = { |
136 | .base = S5PC100_GPE1(0), | 140 | .base = S5PC100_GPE1(0), |
137 | .ngpio = S5PC100_GPIO_E1_NR, | 141 | .ngpio = S5PC100_GPIO_E1_NR, |
138 | .label = "GPE1", | 142 | .label = "GPE1", |
139 | }, | 143 | }, |
140 | }, { | 144 | }, { |
141 | .base = S5PC100_GPF0_BASE, | ||
142 | .config = &gpio_cfg, | ||
143 | .chip = { | 145 | .chip = { |
144 | .base = S5PC100_GPF0(0), | 146 | .base = S5PC100_GPF0(0), |
145 | .ngpio = S5PC100_GPIO_F0_NR, | 147 | .ngpio = S5PC100_GPIO_F0_NR, |
146 | .label = "GPF0", | 148 | .label = "GPF0", |
147 | }, | 149 | }, |
148 | }, { | 150 | }, { |
149 | .base = S5PC100_GPF1_BASE, | ||
150 | .config = &gpio_cfg, | ||
151 | .chip = { | 151 | .chip = { |
152 | .base = S5PC100_GPF1(0), | 152 | .base = S5PC100_GPF1(0), |
153 | .ngpio = S5PC100_GPIO_F1_NR, | 153 | .ngpio = S5PC100_GPIO_F1_NR, |
154 | .label = "GPF1", | 154 | .label = "GPF1", |
155 | }, | 155 | }, |
156 | }, { | 156 | }, { |
157 | .base = S5PC100_GPF2_BASE, | ||
158 | .config = &gpio_cfg, | ||
159 | .chip = { | 157 | .chip = { |
160 | .base = S5PC100_GPF2(0), | 158 | .base = S5PC100_GPF2(0), |
161 | .ngpio = S5PC100_GPIO_F2_NR, | 159 | .ngpio = S5PC100_GPIO_F2_NR, |
162 | .label = "GPF2", | 160 | .label = "GPF2", |
163 | }, | 161 | }, |
164 | }, { | 162 | }, { |
165 | .base = S5PC100_GPF3_BASE, | ||
166 | .config = &gpio_cfg, | ||
167 | .chip = { | 163 | .chip = { |
168 | .base = S5PC100_GPF3(0), | 164 | .base = S5PC100_GPF3(0), |
169 | .ngpio = S5PC100_GPIO_F3_NR, | 165 | .ngpio = S5PC100_GPIO_F3_NR, |
170 | .label = "GPF3", | 166 | .label = "GPF3", |
171 | }, | 167 | }, |
172 | }, { | 168 | }, { |
173 | .base = S5PC100_GPG0_BASE, | ||
174 | .config = &gpio_cfg, | ||
175 | .chip = { | 169 | .chip = { |
176 | .base = S5PC100_GPG0(0), | 170 | .base = S5PC100_GPG0(0), |
177 | .ngpio = S5PC100_GPIO_G0_NR, | 171 | .ngpio = S5PC100_GPIO_G0_NR, |
178 | .label = "GPG0", | 172 | .label = "GPG0", |
179 | }, | 173 | }, |
180 | }, { | 174 | }, { |
181 | .base = S5PC100_GPG1_BASE, | ||
182 | .config = &gpio_cfg, | ||
183 | .chip = { | 175 | .chip = { |
184 | .base = S5PC100_GPG1(0), | 176 | .base = S5PC100_GPG1(0), |
185 | .ngpio = S5PC100_GPIO_G1_NR, | 177 | .ngpio = S5PC100_GPIO_G1_NR, |
186 | .label = "GPG1", | 178 | .label = "GPG1", |
187 | }, | 179 | }, |
188 | }, { | 180 | }, { |
189 | .base = S5PC100_GPG2_BASE, | ||
190 | .config = &gpio_cfg, | ||
191 | .chip = { | 181 | .chip = { |
192 | .base = S5PC100_GPG2(0), | 182 | .base = S5PC100_GPG2(0), |
193 | .ngpio = S5PC100_GPIO_G2_NR, | 183 | .ngpio = S5PC100_GPIO_G2_NR, |
194 | .label = "GPG2", | 184 | .label = "GPG2", |
195 | }, | 185 | }, |
196 | }, { | 186 | }, { |
197 | .base = S5PC100_GPG3_BASE, | ||
198 | .config = &gpio_cfg, | ||
199 | .chip = { | 187 | .chip = { |
200 | .base = S5PC100_GPG3(0), | 188 | .base = S5PC100_GPG3(0), |
201 | .ngpio = S5PC100_GPIO_G3_NR, | 189 | .ngpio = S5PC100_GPIO_G3_NR, |
202 | .label = "GPG3", | 190 | .label = "GPG3", |
203 | }, | 191 | }, |
204 | }, { | 192 | }, { |
205 | .base = S5PC100_GPH0_BASE, | ||
206 | .config = &gpio_cfg_eint, | ||
207 | .irq_base = IRQ_EINT(0), | ||
208 | .chip = { | ||
209 | .base = S5PC100_GPH0(0), | ||
210 | .ngpio = S5PC100_GPIO_H0_NR, | ||
211 | .label = "GPH0", | ||
212 | .to_irq = samsung_gpiolib_to_irq, | ||
213 | }, | ||
214 | }, { | ||
215 | .base = S5PC100_GPH1_BASE, | ||
216 | .config = &gpio_cfg_eint, | ||
217 | .irq_base = IRQ_EINT(8), | ||
218 | .chip = { | ||
219 | .base = S5PC100_GPH1(0), | ||
220 | .ngpio = S5PC100_GPIO_H1_NR, | ||
221 | .label = "GPH1", | ||
222 | .to_irq = samsung_gpiolib_to_irq, | ||
223 | }, | ||
224 | }, { | ||
225 | .base = S5PC100_GPH2_BASE, | ||
226 | .config = &gpio_cfg_eint, | ||
227 | .irq_base = IRQ_EINT(16), | ||
228 | .chip = { | ||
229 | .base = S5PC100_GPH2(0), | ||
230 | .ngpio = S5PC100_GPIO_H2_NR, | ||
231 | .label = "GPH2", | ||
232 | .to_irq = samsung_gpiolib_to_irq, | ||
233 | }, | ||
234 | }, { | ||
235 | .base = S5PC100_GPH3_BASE, | ||
236 | .config = &gpio_cfg_eint, | ||
237 | .irq_base = IRQ_EINT(24), | ||
238 | .chip = { | ||
239 | .base = S5PC100_GPH3(0), | ||
240 | .ngpio = S5PC100_GPIO_H3_NR, | ||
241 | .label = "GPH3", | ||
242 | .to_irq = samsung_gpiolib_to_irq, | ||
243 | }, | ||
244 | }, { | ||
245 | .base = S5PC100_GPI_BASE, | ||
246 | .config = &gpio_cfg, | ||
247 | .chip = { | 193 | .chip = { |
248 | .base = S5PC100_GPI(0), | 194 | .base = S5PC100_GPI(0), |
249 | .ngpio = S5PC100_GPIO_I_NR, | 195 | .ngpio = S5PC100_GPIO_I_NR, |
250 | .label = "GPI", | 196 | .label = "GPI", |
251 | }, | 197 | }, |
252 | }, { | 198 | }, { |
253 | .base = S5PC100_GPJ0_BASE, | ||
254 | .config = &gpio_cfg, | ||
255 | .chip = { | 199 | .chip = { |
256 | .base = S5PC100_GPJ0(0), | 200 | .base = S5PC100_GPJ0(0), |
257 | .ngpio = S5PC100_GPIO_J0_NR, | 201 | .ngpio = S5PC100_GPIO_J0_NR, |
258 | .label = "GPJ0", | 202 | .label = "GPJ0", |
259 | }, | 203 | }, |
260 | }, { | 204 | }, { |
261 | .base = S5PC100_GPJ1_BASE, | ||
262 | .config = &gpio_cfg, | ||
263 | .chip = { | 205 | .chip = { |
264 | .base = S5PC100_GPJ1(0), | 206 | .base = S5PC100_GPJ1(0), |
265 | .ngpio = S5PC100_GPIO_J1_NR, | 207 | .ngpio = S5PC100_GPIO_J1_NR, |
266 | .label = "GPJ1", | 208 | .label = "GPJ1", |
267 | }, | 209 | }, |
268 | }, { | 210 | }, { |
269 | .base = S5PC100_GPJ2_BASE, | ||
270 | .config = &gpio_cfg, | ||
271 | .chip = { | 211 | .chip = { |
272 | .base = S5PC100_GPJ2(0), | 212 | .base = S5PC100_GPJ2(0), |
273 | .ngpio = S5PC100_GPIO_J2_NR, | 213 | .ngpio = S5PC100_GPIO_J2_NR, |
274 | .label = "GPJ2", | 214 | .label = "GPJ2", |
275 | }, | 215 | }, |
276 | }, { | 216 | }, { |
277 | .base = S5PC100_GPJ3_BASE, | ||
278 | .config = &gpio_cfg, | ||
279 | .chip = { | 217 | .chip = { |
280 | .base = S5PC100_GPJ3(0), | 218 | .base = S5PC100_GPJ3(0), |
281 | .ngpio = S5PC100_GPIO_J3_NR, | 219 | .ngpio = S5PC100_GPIO_J3_NR, |
282 | .label = "GPJ3", | 220 | .label = "GPJ3", |
283 | }, | 221 | }, |
284 | }, { | 222 | }, { |
285 | .base = S5PC100_GPJ4_BASE, | ||
286 | .config = &gpio_cfg, | ||
287 | .chip = { | 223 | .chip = { |
288 | .base = S5PC100_GPJ4(0), | 224 | .base = S5PC100_GPJ4(0), |
289 | .ngpio = S5PC100_GPIO_J4_NR, | 225 | .ngpio = S5PC100_GPIO_J4_NR, |
290 | .label = "GPJ4", | 226 | .label = "GPJ4", |
291 | }, | 227 | }, |
292 | }, { | 228 | }, { |
293 | .base = S5PC100_GPK0_BASE, | ||
294 | .config = &gpio_cfg_noint, | 229 | .config = &gpio_cfg_noint, |
295 | .chip = { | 230 | .chip = { |
296 | .base = S5PC100_GPK0(0), | 231 | .base = S5PC100_GPK0(0), |
@@ -298,7 +233,6 @@ static struct s3c_gpio_chip s5pc100_gpio_chips[] = { | |||
298 | .label = "GPK0", | 233 | .label = "GPK0", |
299 | }, | 234 | }, |
300 | }, { | 235 | }, { |
301 | .base = S5PC100_GPK1_BASE, | ||
302 | .config = &gpio_cfg_noint, | 236 | .config = &gpio_cfg_noint, |
303 | .chip = { | 237 | .chip = { |
304 | .base = S5PC100_GPK1(0), | 238 | .base = S5PC100_GPK1(0), |
@@ -306,7 +240,6 @@ static struct s3c_gpio_chip s5pc100_gpio_chips[] = { | |||
306 | .label = "GPK1", | 240 | .label = "GPK1", |
307 | }, | 241 | }, |
308 | }, { | 242 | }, { |
309 | .base = S5PC100_GPK2_BASE, | ||
310 | .config = &gpio_cfg_noint, | 243 | .config = &gpio_cfg_noint, |
311 | .chip = { | 244 | .chip = { |
312 | .base = S5PC100_GPK2(0), | 245 | .base = S5PC100_GPK2(0), |
@@ -314,7 +247,6 @@ static struct s3c_gpio_chip s5pc100_gpio_chips[] = { | |||
314 | .label = "GPK2", | 247 | .label = "GPK2", |
315 | }, | 248 | }, |
316 | }, { | 249 | }, { |
317 | .base = S5PC100_GPK3_BASE, | ||
318 | .config = &gpio_cfg_noint, | 250 | .config = &gpio_cfg_noint, |
319 | .chip = { | 251 | .chip = { |
320 | .base = S5PC100_GPK3(0), | 252 | .base = S5PC100_GPK3(0), |
@@ -322,7 +254,6 @@ static struct s3c_gpio_chip s5pc100_gpio_chips[] = { | |||
322 | .label = "GPK3", | 254 | .label = "GPK3", |
323 | }, | 255 | }, |
324 | }, { | 256 | }, { |
325 | .base = S5PC100_GPL0_BASE, | ||
326 | .config = &gpio_cfg_noint, | 257 | .config = &gpio_cfg_noint, |
327 | .chip = { | 258 | .chip = { |
328 | .base = S5PC100_GPL0(0), | 259 | .base = S5PC100_GPL0(0), |
@@ -330,7 +261,6 @@ static struct s3c_gpio_chip s5pc100_gpio_chips[] = { | |||
330 | .label = "GPL0", | 261 | .label = "GPL0", |
331 | }, | 262 | }, |
332 | }, { | 263 | }, { |
333 | .base = S5PC100_GPL1_BASE, | ||
334 | .config = &gpio_cfg_noint, | 264 | .config = &gpio_cfg_noint, |
335 | .chip = { | 265 | .chip = { |
336 | .base = S5PC100_GPL1(0), | 266 | .base = S5PC100_GPL1(0), |
@@ -338,7 +268,6 @@ static struct s3c_gpio_chip s5pc100_gpio_chips[] = { | |||
338 | .label = "GPL1", | 268 | .label = "GPL1", |
339 | }, | 269 | }, |
340 | }, { | 270 | }, { |
341 | .base = S5PC100_GPL2_BASE, | ||
342 | .config = &gpio_cfg_noint, | 271 | .config = &gpio_cfg_noint, |
343 | .chip = { | 272 | .chip = { |
344 | .base = S5PC100_GPL2(0), | 273 | .base = S5PC100_GPL2(0), |
@@ -346,7 +275,6 @@ static struct s3c_gpio_chip s5pc100_gpio_chips[] = { | |||
346 | .label = "GPL2", | 275 | .label = "GPL2", |
347 | }, | 276 | }, |
348 | }, { | 277 | }, { |
349 | .base = S5PC100_GPL3_BASE, | ||
350 | .config = &gpio_cfg_noint, | 278 | .config = &gpio_cfg_noint, |
351 | .chip = { | 279 | .chip = { |
352 | .base = S5PC100_GPL3(0), | 280 | .base = S5PC100_GPL3(0), |
@@ -354,34 +282,72 @@ static struct s3c_gpio_chip s5pc100_gpio_chips[] = { | |||
354 | .label = "GPL3", | 282 | .label = "GPL3", |
355 | }, | 283 | }, |
356 | }, { | 284 | }, { |
357 | .base = S5PC100_GPL4_BASE, | ||
358 | .config = &gpio_cfg_noint, | 285 | .config = &gpio_cfg_noint, |
359 | .chip = { | 286 | .chip = { |
360 | .base = S5PC100_GPL4(0), | 287 | .base = S5PC100_GPL4(0), |
361 | .ngpio = S5PC100_GPIO_L4_NR, | 288 | .ngpio = S5PC100_GPIO_L4_NR, |
362 | .label = "GPL4", | 289 | .label = "GPL4", |
363 | }, | 290 | }, |
291 | }, { | ||
292 | .base = (S5P_VA_GPIO + 0xC00), | ||
293 | .config = &gpio_cfg_eint, | ||
294 | .irq_base = IRQ_EINT(0), | ||
295 | .chip = { | ||
296 | .base = S5PC100_GPH0(0), | ||
297 | .ngpio = S5PC100_GPIO_H0_NR, | ||
298 | .label = "GPH0", | ||
299 | .to_irq = samsung_gpiolib_to_irq, | ||
300 | }, | ||
301 | }, { | ||
302 | .base = (S5P_VA_GPIO + 0xC20), | ||
303 | .config = &gpio_cfg_eint, | ||
304 | .irq_base = IRQ_EINT(8), | ||
305 | .chip = { | ||
306 | .base = S5PC100_GPH1(0), | ||
307 | .ngpio = S5PC100_GPIO_H1_NR, | ||
308 | .label = "GPH1", | ||
309 | .to_irq = samsung_gpiolib_to_irq, | ||
310 | }, | ||
311 | }, { | ||
312 | .base = (S5P_VA_GPIO + 0xC40), | ||
313 | .config = &gpio_cfg_eint, | ||
314 | .irq_base = IRQ_EINT(16), | ||
315 | .chip = { | ||
316 | .base = S5PC100_GPH2(0), | ||
317 | .ngpio = S5PC100_GPIO_H2_NR, | ||
318 | .label = "GPH2", | ||
319 | .to_irq = samsung_gpiolib_to_irq, | ||
320 | }, | ||
321 | }, { | ||
322 | .base = (S5P_VA_GPIO + 0xC60), | ||
323 | .config = &gpio_cfg_eint, | ||
324 | .irq_base = IRQ_EINT(24), | ||
325 | .chip = { | ||
326 | .base = S5PC100_GPH3(0), | ||
327 | .ngpio = S5PC100_GPIO_H3_NR, | ||
328 | .label = "GPH3", | ||
329 | .to_irq = samsung_gpiolib_to_irq, | ||
330 | }, | ||
364 | }, | 331 | }, |
365 | }; | 332 | }; |
366 | 333 | ||
367 | static __init int s5pc100_gpiolib_init(void) | 334 | static __init int s5pc100_gpiolib_init(void) |
368 | { | 335 | { |
369 | struct s3c_gpio_chip *chip; | 336 | struct s3c_gpio_chip *chip = s5pc100_gpio_chips; |
370 | int nr_chips; | 337 | int nr_chips = ARRAY_SIZE(s5pc100_gpio_chips); |
371 | int gpioint_group = 0; | 338 | int gpioint_group = 0; |
339 | int i; | ||
372 | 340 | ||
373 | chip = s5pc100_gpio_chips; | 341 | for (i = 0; i < nr_chips; i++, chip++) { |
374 | nr_chips = ARRAY_SIZE(s5pc100_gpio_chips); | 342 | if (chip->config == NULL) { |
375 | 343 | chip->config = &gpio_cfg; | |
376 | for (; nr_chips > 0; nr_chips--, chip++) { | ||
377 | if (chip->config == &gpio_cfg) { | ||
378 | /* gpio interrupts */ | ||
379 | chip->group = gpioint_group++; | 344 | chip->group = gpioint_group++; |
380 | } | 345 | } |
346 | if (chip->base == NULL) | ||
347 | chip->base = S5PC100_BANK_BASE(i); | ||
381 | } | 348 | } |
382 | 349 | ||
383 | samsung_gpiolib_add_4bit_chips(s5pc100_gpio_chips, | 350 | samsung_gpiolib_add_4bit_chips(s5pc100_gpio_chips, nr_chips); |
384 | ARRAY_SIZE(s5pc100_gpio_chips)); | ||
385 | 351 | ||
386 | return 0; | 352 | return 0; |
387 | } | 353 | } |
diff --git a/arch/arm/mach-s5pc100/include/mach/regs-gpio.h b/arch/arm/mach-s5pc100/include/mach/regs-gpio.h index 8c47536b117b..0bf73209ec7b 100644 --- a/arch/arm/mach-s5pc100/include/mach/regs-gpio.h +++ b/arch/arm/mach-s5pc100/include/mach/regs-gpio.h | |||
@@ -11,43 +11,6 @@ | |||
11 | 11 | ||
12 | #include <mach/map.h> | 12 | #include <mach/map.h> |
13 | 13 | ||
14 | /* S5PC100 */ | ||
15 | #define S5PC100_GPIO_BASE S5P_VA_GPIO | ||
16 | #define S5PC100_GPA0_BASE (S5PC100_GPIO_BASE + 0x0000) | ||
17 | #define S5PC100_GPA1_BASE (S5PC100_GPIO_BASE + 0x0020) | ||
18 | #define S5PC100_GPB_BASE (S5PC100_GPIO_BASE + 0x0040) | ||
19 | #define S5PC100_GPC_BASE (S5PC100_GPIO_BASE + 0x0060) | ||
20 | #define S5PC100_GPD_BASE (S5PC100_GPIO_BASE + 0x0080) | ||
21 | #define S5PC100_GPE0_BASE (S5PC100_GPIO_BASE + 0x00A0) | ||
22 | #define S5PC100_GPE1_BASE (S5PC100_GPIO_BASE + 0x00C0) | ||
23 | #define S5PC100_GPF0_BASE (S5PC100_GPIO_BASE + 0x00E0) | ||
24 | #define S5PC100_GPF1_BASE (S5PC100_GPIO_BASE + 0x0100) | ||
25 | #define S5PC100_GPF2_BASE (S5PC100_GPIO_BASE + 0x0120) | ||
26 | #define S5PC100_GPF3_BASE (S5PC100_GPIO_BASE + 0x0140) | ||
27 | #define S5PC100_GPG0_BASE (S5PC100_GPIO_BASE + 0x0160) | ||
28 | #define S5PC100_GPG1_BASE (S5PC100_GPIO_BASE + 0x0180) | ||
29 | #define S5PC100_GPG2_BASE (S5PC100_GPIO_BASE + 0x01A0) | ||
30 | #define S5PC100_GPG3_BASE (S5PC100_GPIO_BASE + 0x01C0) | ||
31 | #define S5PC100_GPH0_BASE (S5PC100_GPIO_BASE + 0x0C00) | ||
32 | #define S5PC100_GPH1_BASE (S5PC100_GPIO_BASE + 0x0C20) | ||
33 | #define S5PC100_GPH2_BASE (S5PC100_GPIO_BASE + 0x0C40) | ||
34 | #define S5PC100_GPH3_BASE (S5PC100_GPIO_BASE + 0x0C60) | ||
35 | #define S5PC100_GPI_BASE (S5PC100_GPIO_BASE + 0x01E0) | ||
36 | #define S5PC100_GPJ0_BASE (S5PC100_GPIO_BASE + 0x0200) | ||
37 | #define S5PC100_GPJ1_BASE (S5PC100_GPIO_BASE + 0x0220) | ||
38 | #define S5PC100_GPJ2_BASE (S5PC100_GPIO_BASE + 0x0240) | ||
39 | #define S5PC100_GPJ3_BASE (S5PC100_GPIO_BASE + 0x0260) | ||
40 | #define S5PC100_GPJ4_BASE (S5PC100_GPIO_BASE + 0x0280) | ||
41 | #define S5PC100_GPK0_BASE (S5PC100_GPIO_BASE + 0x02A0) | ||
42 | #define S5PC100_GPK1_BASE (S5PC100_GPIO_BASE + 0x02C0) | ||
43 | #define S5PC100_GPK2_BASE (S5PC100_GPIO_BASE + 0x02E0) | ||
44 | #define S5PC100_GPK3_BASE (S5PC100_GPIO_BASE + 0x0300) | ||
45 | #define S5PC100_GPL0_BASE (S5PC100_GPIO_BASE + 0x0320) | ||
46 | #define S5PC100_GPL1_BASE (S5PC100_GPIO_BASE + 0x0340) | ||
47 | #define S5PC100_GPL2_BASE (S5PC100_GPIO_BASE + 0x0360) | ||
48 | #define S5PC100_GPL3_BASE (S5PC100_GPIO_BASE + 0x0380) | ||
49 | #define S5PC100_GPL4_BASE (S5PC100_GPIO_BASE + 0x03A0) | ||
50 | |||
51 | #define S5PC100EINT30CON (S5P_VA_GPIO + 0xE00) | 14 | #define S5PC100EINT30CON (S5P_VA_GPIO + 0xE00) |
52 | #define S5P_EINT_CON(x) (S5PC100EINT30CON + ((x) * 0x4)) | 15 | #define S5P_EINT_CON(x) (S5PC100EINT30CON + ((x) * 0x4)) |
53 | 16 | ||