22 #define OMAP1610_GPIO1_BASE 0xfffbe400
23 #define OMAP1610_GPIO2_BASE 0xfffbec00
24 #define OMAP1610_GPIO3_BASE 0xfffbb400
25 #define OMAP1610_GPIO4_BASE 0xfffbbc00
26 #define OMAP1_MPUIO_VBASE OMAP1_MPUIO_BASE
29 #define SYSCONFIG_WORD 0x14
51 .irqenable_inv =
true,
59 .regs = &omap16xx_mpuio_regs,
66 .platform_data = &omap16xx_mpu_gpio_config,
68 .num_resources =
ARRAY_SIZE(omap16xx_mpu_gpio_resources),
69 .resource = omap16xx_mpu_gpio_resources,
103 .regs = &omap16xx_gpio_regs,
110 .platform_data = &omap16xx_gpio1_config,
112 .num_resources =
ARRAY_SIZE(omap16xx_gpio1_resources),
113 .resource = omap16xx_gpio1_resources,
131 .regs = &omap16xx_gpio_regs,
138 .platform_data = &omap16xx_gpio2_config,
140 .num_resources =
ARRAY_SIZE(omap16xx_gpio2_resources),
141 .resource = omap16xx_gpio2_resources,
159 .regs = &omap16xx_gpio_regs,
166 .platform_data = &omap16xx_gpio3_config,
168 .num_resources =
ARRAY_SIZE(omap16xx_gpio3_resources),
169 .resource = omap16xx_gpio3_resources,
187 .regs = &omap16xx_gpio_regs,
194 .platform_data = &omap16xx_gpio4_config,
196 .num_resources =
ARRAY_SIZE(omap16xx_gpio4_resources),
197 .resource = omap16xx_gpio4_resources,
213 static int __init omap16xx_gpio_init(
void)
231 for (i = 0; i <
ARRAY_SIZE(omap16xx_gpio_dev); i++) {
232 pdev = omap16xx_gpio_dev[
i];
233 pdata = pdev->
dev.platform_data;
237 dev_err(&pdev->
dev,
"Invalid mem resource.\n");