diff options
Diffstat (limited to 'arch/arm/mach-omap1/gpio15xx.c')
-rw-r--r-- | arch/arm/mach-omap1/gpio15xx.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/mach-omap1/gpio15xx.c b/arch/arm/mach-omap1/gpio15xx.c index 364137c2042c..399da4ce017b 100644 --- a/arch/arm/mach-omap1/gpio15xx.c +++ b/arch/arm/mach-omap1/gpio15xx.c | |||
@@ -34,11 +34,22 @@ static struct __initdata resource omap15xx_mpu_gpio_resources[] = { | |||
34 | }, | 34 | }, |
35 | }; | 35 | }; |
36 | 36 | ||
37 | static struct omap_gpio_reg_offs omap15xx_mpuio_regs = { | ||
38 | .revision = USHRT_MAX, | ||
39 | .direction = OMAP_MPUIO_IO_CNTL, | ||
40 | .datain = OMAP_MPUIO_INPUT_LATCH, | ||
41 | .dataout = OMAP_MPUIO_OUTPUT, | ||
42 | .irqstatus = OMAP_MPUIO_GPIO_INT, | ||
43 | .irqenable = OMAP_MPUIO_GPIO_MASKIT, | ||
44 | .irqenable_inv = true, | ||
45 | }; | ||
46 | |||
37 | static struct __initdata omap_gpio_platform_data omap15xx_mpu_gpio_config = { | 47 | static struct __initdata omap_gpio_platform_data omap15xx_mpu_gpio_config = { |
38 | .virtual_irq_start = IH_MPUIO_BASE, | 48 | .virtual_irq_start = IH_MPUIO_BASE, |
39 | .bank_type = METHOD_MPUIO, | 49 | .bank_type = METHOD_MPUIO, |
40 | .bank_width = 16, | 50 | .bank_width = 16, |
41 | .bank_stride = 1, | 51 | .bank_stride = 1, |
52 | .regs = &omap15xx_mpuio_regs, | ||
42 | }; | 53 | }; |
43 | 54 | ||
44 | static struct platform_device omap15xx_mpu_gpio = { | 55 | static struct platform_device omap15xx_mpu_gpio = { |
@@ -64,10 +75,21 @@ static struct __initdata resource omap15xx_gpio_resources[] = { | |||
64 | }, | 75 | }, |
65 | }; | 76 | }; |
66 | 77 | ||
78 | static struct omap_gpio_reg_offs omap15xx_gpio_regs = { | ||
79 | .revision = USHRT_MAX, | ||
80 | .direction = OMAP1510_GPIO_DIR_CONTROL, | ||
81 | .datain = OMAP1510_GPIO_DATA_INPUT, | ||
82 | .dataout = OMAP1510_GPIO_DATA_OUTPUT, | ||
83 | .irqstatus = OMAP1510_GPIO_INT_STATUS, | ||
84 | .irqenable = OMAP1510_GPIO_INT_MASK, | ||
85 | .irqenable_inv = true, | ||
86 | }; | ||
87 | |||
67 | static struct __initdata omap_gpio_platform_data omap15xx_gpio_config = { | 88 | static struct __initdata omap_gpio_platform_data omap15xx_gpio_config = { |
68 | .virtual_irq_start = IH_GPIO_BASE, | 89 | .virtual_irq_start = IH_GPIO_BASE, |
69 | .bank_type = METHOD_GPIO_1510, | 90 | .bank_type = METHOD_GPIO_1510, |
70 | .bank_width = 16, | 91 | .bank_width = 16, |
92 | .regs = &omap15xx_gpio_regs, | ||
71 | }; | 93 | }; |
72 | 94 | ||
73 | static struct platform_device omap15xx_gpio = { | 95 | static struct platform_device omap15xx_gpio = { |