diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2011-11-10 23:03:22 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2011-11-10 23:03:22 +0000 |
commit | cdb00cded8c73d7ae01f3d72870fb822d32dfe59 (patch) | |
tree | fd5c8448eae8bcb8abd1371b682b3fadfa9ee27e /sys/arch | |
parent | 1c6b283181fd163f321173568bd3d31a5d37186f (diff) |
Missing interrupts on gpio.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/beagle/dev/omap3.c | 13 | ||||
-rw-r--r-- | sys/arch/beagle/dev/omap4.c | 13 |
2 files changed, 26 insertions, 0 deletions
diff --git a/sys/arch/beagle/dev/omap3.c b/sys/arch/beagle/dev/omap3.c index e1c05df6f74..12ca4e749f0 100644 --- a/sys/arch/beagle/dev/omap3.c +++ b/sys/arch/beagle/dev/omap3.c @@ -26,6 +26,13 @@ #define GPIO5_ADDR 0x49056000 #define GPIO6_ADDR 0x49058000 +#define GPIO1_IRQ 29 +#define GPIO2_IRQ 30 +#define GPIO3_IRQ 31 +#define GPIO4_IRQ 32 +#define GPIO5_IRQ 33 +#define GPIO6_IRQ 34 + #define UARTx_SIZE 0x400 #define UART3_ADDR 0x49020000 @@ -79,31 +86,37 @@ struct omap_dev omap3_devs[] = { { .name = "omgpio", .unit = 0, .mem = { { GPIO1_ADDR, GPIOx_SIZE } }, + .irq = { GPIO1_IRQ } }, { .name = "omgpio", .unit = 1, .mem = { { GPIO2_ADDR, GPIOx_SIZE } }, + .irq = { GPIO2_IRQ } }, { .name = "omgpio", .unit = 2, .mem = { { GPIO3_ADDR, GPIOx_SIZE } }, + .irq = { GPIO3_IRQ } }, { .name = "omgpio", .unit = 3, .mem = { { GPIO4_ADDR, GPIOx_SIZE } }, + .irq = { GPIO4_IRQ } }, { .name = "omgpio", .unit = 4, .mem = { { GPIO5_ADDR, GPIOx_SIZE } }, + .irq = { GPIO5_IRQ } }, { .name = "omgpio", .unit = 5, .mem = { { GPIO6_ADDR, GPIOx_SIZE } }, + .irq = { GPIO6_IRQ } }, /* diff --git a/sys/arch/beagle/dev/omap4.c b/sys/arch/beagle/dev/omap4.c index 7b50e4d6e52..e7450a21e43 100644 --- a/sys/arch/beagle/dev/omap4.c +++ b/sys/arch/beagle/dev/omap4.c @@ -19,6 +19,13 @@ #define GPIO5_ADDR 0x4805b000 #define GPIO6_ADDR 0x4805d000 +#define GPIO1_IRQ 29 +#define GPIO2_IRQ 30 +#define GPIO3_IRQ 31 +#define GPIO4_IRQ 32 +#define GPIO5_IRQ 33 +#define GPIO6_IRQ 34 + #define UARTx_SIZE 0x400 #define UART3_ADDR 0x48020000 @@ -56,31 +63,37 @@ struct omap_dev omap4_devs[] = { { .name = "omgpio", .unit = 0, .mem = { { GPIO1_ADDR, GPIOx_SIZE } }, + .irq = { GPIO1_IRQ } }, { .name = "omgpio", .unit = 1, .mem = { { GPIO2_ADDR, GPIOx_SIZE } }, + .irq = { GPIO2_IRQ } }, { .name = "omgpio", .unit = 2, .mem = { { GPIO3_ADDR, GPIOx_SIZE } }, + .irq = { GPIO3_IRQ } }, { .name = "omgpio", .unit = 3, .mem = { { GPIO4_ADDR, GPIOx_SIZE } }, + .irq = { GPIO4_IRQ } }, { .name = "omgpio", .unit = 4, .mem = { { GPIO5_ADDR, GPIOx_SIZE } }, + .irq = { GPIO5_IRQ } }, { .name = "omgpio", .unit = 5, .mem = { { GPIO6_ADDR, GPIOx_SIZE } }, + .irq = { GPIO6_IRQ } }, /* |