diff options
author | Ben Dooks <ben-linux@fluff.org> | 2006-06-24 16:21:33 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-06-24 16:21:33 -0400 |
commit | 44cc7c9c15124c4506da96304e5f9eb88200fc35 (patch) | |
tree | 911dcdfc55ed609a79f7c1c23c918e709b6e3cdf /arch/arm | |
parent | 46491c94d39a519178ba8c6b5b5d6a839210124d (diff) |
[ARM] 3641/1: S3C2412: Fixup gpio register naming
Patch from Ben Dooks
The current S3C2412 has used to moving S3C24XX_
for the generic form of an register has been
moved from the S3C2410.
Fixup S3C2410_EXTINTx and S3C2410_EINFLTx to
S3C24XX_EXTINTx and S3C24XX_EXTINTx
Depends on Patch #3635/1, Patch #3640/1
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-s3c2410/irq.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-s3c2410/s3c2410-gpio.c | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/arch/arm/mach-s3c2410/irq.c b/arch/arm/mach-s3c2410/irq.c index 66d8c068e940..46465742ed79 100644 --- a/arch/arm/mach-s3c2410/irq.c +++ b/arch/arm/mach-s3c2410/irq.c | |||
@@ -275,28 +275,28 @@ s3c_irqext_type(unsigned int irq, unsigned int type) | |||
275 | if ((irq >= IRQ_EINT0) && (irq <= IRQ_EINT3)) | 275 | if ((irq >= IRQ_EINT0) && (irq <= IRQ_EINT3)) |
276 | { | 276 | { |
277 | gpcon_reg = S3C2410_GPFCON; | 277 | gpcon_reg = S3C2410_GPFCON; |
278 | extint_reg = S3C2410_EXTINT0; | 278 | extint_reg = S3C24XX_EXTINT0; |
279 | gpcon_offset = (irq - IRQ_EINT0) * 2; | 279 | gpcon_offset = (irq - IRQ_EINT0) * 2; |
280 | extint_offset = (irq - IRQ_EINT0) * 4; | 280 | extint_offset = (irq - IRQ_EINT0) * 4; |
281 | } | 281 | } |
282 | else if ((irq >= IRQ_EINT4) && (irq <= IRQ_EINT7)) | 282 | else if ((irq >= IRQ_EINT4) && (irq <= IRQ_EINT7)) |
283 | { | 283 | { |
284 | gpcon_reg = S3C2410_GPFCON; | 284 | gpcon_reg = S3C2410_GPFCON; |
285 | extint_reg = S3C2410_EXTINT0; | 285 | extint_reg = S3C24XX_EXTINT0; |
286 | gpcon_offset = (irq - (EXTINT_OFF)) * 2; | 286 | gpcon_offset = (irq - (EXTINT_OFF)) * 2; |
287 | extint_offset = (irq - (EXTINT_OFF)) * 4; | 287 | extint_offset = (irq - (EXTINT_OFF)) * 4; |
288 | } | 288 | } |
289 | else if ((irq >= IRQ_EINT8) && (irq <= IRQ_EINT15)) | 289 | else if ((irq >= IRQ_EINT8) && (irq <= IRQ_EINT15)) |
290 | { | 290 | { |
291 | gpcon_reg = S3C2410_GPGCON; | 291 | gpcon_reg = S3C2410_GPGCON; |
292 | extint_reg = S3C2410_EXTINT1; | 292 | extint_reg = S3C24XX_EXTINT1; |
293 | gpcon_offset = (irq - IRQ_EINT8) * 2; | 293 | gpcon_offset = (irq - IRQ_EINT8) * 2; |
294 | extint_offset = (irq - IRQ_EINT8) * 4; | 294 | extint_offset = (irq - IRQ_EINT8) * 4; |
295 | } | 295 | } |
296 | else if ((irq >= IRQ_EINT16) && (irq <= IRQ_EINT23)) | 296 | else if ((irq >= IRQ_EINT16) && (irq <= IRQ_EINT23)) |
297 | { | 297 | { |
298 | gpcon_reg = S3C2410_GPGCON; | 298 | gpcon_reg = S3C2410_GPGCON; |
299 | extint_reg = S3C2410_EXTINT2; | 299 | extint_reg = S3C24XX_EXTINT2; |
300 | gpcon_offset = (irq - IRQ_EINT8) * 2; | 300 | gpcon_offset = (irq - IRQ_EINT8) * 2; |
301 | extint_offset = (irq - IRQ_EINT16) * 4; | 301 | extint_offset = (irq - IRQ_EINT16) * 4; |
302 | } else | 302 | } else |
diff --git a/arch/arm/mach-s3c2410/s3c2410-gpio.c b/arch/arm/mach-s3c2410/s3c2410-gpio.c index 17519b3281b2..471a71490010 100644 --- a/arch/arm/mach-s3c2410/s3c2410-gpio.c +++ b/arch/arm/mach-s3c2410/s3c2410-gpio.c | |||
@@ -35,7 +35,7 @@ | |||
35 | int s3c2410_gpio_irqfilter(unsigned int pin, unsigned int on, | 35 | int s3c2410_gpio_irqfilter(unsigned int pin, unsigned int on, |
36 | unsigned int config) | 36 | unsigned int config) |
37 | { | 37 | { |
38 | void __iomem *reg = S3C2410_EINFLT0; | 38 | void __iomem *reg = S3C24XX_EINFLT0; |
39 | unsigned long flags; | 39 | unsigned long flags; |
40 | unsigned long val; | 40 | unsigned long val; |
41 | 41 | ||
@@ -58,10 +58,10 @@ int s3c2410_gpio_irqfilter(unsigned int pin, unsigned int on, | |||
58 | 58 | ||
59 | /* update filter enable */ | 59 | /* update filter enable */ |
60 | 60 | ||
61 | val = __raw_readl(S3C2410_EXTINT2); | 61 | val = __raw_readl(S3C24XX_EXTINT2); |
62 | val &= ~(1 << ((pin * 4) + 3)); | 62 | val &= ~(1 << ((pin * 4) + 3)); |
63 | val |= on << ((pin * 4) + 3); | 63 | val |= on << ((pin * 4) + 3); |
64 | __raw_writel(val, S3C2410_EXTINT2); | 64 | __raw_writel(val, S3C24XX_EXTINT2); |
65 | 65 | ||
66 | local_irq_restore(flags); | 66 | local_irq_restore(flags); |
67 | 67 | ||