diff options
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, 2 insertions, 5 deletions
diff --git a/arch/arm/mach-s5pc100/include/mach/regs-gpio.h b/arch/arm/mach-s5pc100/include/mach/regs-gpio.h index 763edebdd577..dd6295e1251d 100644 --- a/arch/arm/mach-s5pc100/include/mach/regs-gpio.h +++ b/arch/arm/mach-s5pc100/include/mach/regs-gpio.h | |||
@@ -60,12 +60,9 @@ | |||
60 | #define S5PC100EINT30PEND (S5P_VA_GPIO + 0xF40) | 60 | #define S5PC100EINT30PEND (S5P_VA_GPIO + 0xF40) |
61 | #define S5P_EINT_PEND(x) (S5PC100EINT30PEND + ((x) * 0x4)) | 61 | #define S5P_EINT_PEND(x) (S5PC100EINT30PEND + ((x) * 0x4)) |
62 | 62 | ||
63 | #define eint_offset(irq) ((irq) < IRQ_EINT16_31 ? ((irq) - IRQ_EINT(0)) : \ | 63 | #define EINT_REG_NR(x) (EINT_OFFSET(x) >> 3) |
64 | (((irq) - S5P_EINT_BASE2))) | ||
65 | 64 | ||
66 | #define EINT_REG_NR(x) (eint_offset(x) >> 3) | 65 | #define eint_irq_to_bit(irq) (1 << (EINT_OFFSET(irq) & 0x7)) |
67 | |||
68 | #define eint_irq_to_bit(irq) (1 << (eint_offset(irq) & 0x7)) | ||
69 | 66 | ||
70 | /* values for S5P_EXTINT0 */ | 67 | /* values for S5P_EXTINT0 */ |
71 | #define S5P_EXTINT_LOWLEV (0x00) | 68 | #define S5P_EXTINT_LOWLEV (0x00) |