gpio/omap: consolidate IRQ status handling, remove #ifdefs
Cleanup IRQ status handling by passing IRQ status register offsets via platform data. Cleans up clearing of GPIO IRQ status and GPIO ISR handler. Signed-off-by: Kevin Hilman <khilman@ti.com>
This commit is contained in:
@@ -41,6 +41,7 @@ static struct omap_gpio_reg_offs omap16xx_mpuio_regs = {
|
||||
.direction = OMAP_MPUIO_IO_CNTL,
|
||||
.datain = OMAP_MPUIO_INPUT_LATCH,
|
||||
.dataout = OMAP_MPUIO_OUTPUT,
|
||||
.irqstatus = OMAP_MPUIO_GPIO_INT,
|
||||
};
|
||||
|
||||
static struct __initdata omap_gpio_platform_data omap16xx_mpu_gpio_config = {
|
||||
@@ -80,6 +81,7 @@ static struct omap_gpio_reg_offs omap16xx_gpio_regs = {
|
||||
.clr_dataout = OMAP1610_GPIO_CLEAR_DATAOUT,
|
||||
.datain = OMAP1610_GPIO_DATAIN,
|
||||
.dataout = OMAP1610_GPIO_DATAOUT,
|
||||
.irqstatus = OMAP1610_GPIO_IRQSTATUS1,
|
||||
};
|
||||
|
||||
static struct __initdata omap_gpio_platform_data omap16xx_gpio1_config = {
|
||||
|
Reference in New Issue
Block a user