diff options
author | Ben Dooks <ben-linux@fluff.org> | 2010-05-23 16:17:10 +0100 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2010-05-23 16:27:04 +0100 |
commit | 45c79433c02b8fe7b8a1cbf60548a9798d0502ed (patch) | |
tree | 51ff899371af78df9ced0eee3973fdfdb512c905 /arch/arm/mach-s5pc100/include/mach/regs-gpio.h | |
parent | c5e2caca6a0732108bec146844551767cfbc115c (diff) |
ARM: S5PC100: Fixup merge problems
Between problems with Kconfig and merging commits from several
different sources, it seems the s5pc100 build's move from plat-s5pc11
has had a few problems.
Since I do not have the trees to rebuild this quickly, the easiest
thing is to simply fix the errors found once the s5pc100_defconfig
actually builds.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/mach-s5pc100/include/mach/regs-gpio.h')
-rw-r--r-- | arch/arm/mach-s5pc100/include/mach/regs-gpio.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/arm/mach-s5pc100/include/mach/regs-gpio.h b/arch/arm/mach-s5pc100/include/mach/regs-gpio.h index dd6295e1251..763edebdd57 100644 --- a/arch/arm/mach-s5pc100/include/mach/regs-gpio.h +++ b/arch/arm/mach-s5pc100/include/mach/regs-gpio.h @@ -60,9 +60,12 @@ #define S5PC100EINT30PEND (S5P_VA_GPIO + 0xF40) #define S5P_EINT_PEND(x) (S5PC100EINT30PEND + ((x) * 0x4)) -#define EINT_REG_NR(x) (EINT_OFFSET(x) >> 3) +#define eint_offset(irq) ((irq) < IRQ_EINT16_31 ? ((irq) - IRQ_EINT(0)) : \ + (((irq) - S5P_EINT_BASE2))) -#define eint_irq_to_bit(irq) (1 << (EINT_OFFSET(irq) & 0x7)) +#define EINT_REG_NR(x) (eint_offset(x) >> 3) + +#define eint_irq_to_bit(irq) (1 << (eint_offset(irq) & 0x7)) /* values for S5P_EXTINT0 */ #define S5P_EXTINT_LOWLEV (0x00) |