summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2011-07-22 15:45:46 +0000
committerAmaury Pouly <pamaury@rockbox.org>2011-07-22 15:45:46 +0000
commit7d1d4c6f076ce545ab9d253d5ce77f633733bddc (patch)
tree1f82d9dd19c8b665e536083e7e2dae3b5e2d374a /firmware/target/arm
parent792dd33047a1e60aea9af4a0682a92fcbc2d2401 (diff)
downloadrockbox-7d1d4c6f076ce545ab9d253d5ce77f633733bddc.tar.gz
rockbox-7d1d4c6f076ce545ab9d253d5ce77f633733bddc.tar.bz2
rockbox-7d1d4c6f076ce545ab9d253d5ce77f633733bddc.zip
imx233/fuze+: implement gpio interrupts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30194 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/imx233/system-imx233.c6
-rw-r--r--firmware/target/arm/imx233/system-target.h4
2 files changed, 10 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/system-imx233.c b/firmware/target/arm/imx233/system-imx233.c
index 4a8e948019..58f12506df 100644
--- a/firmware/target/arm/imx233/system-imx233.c
+++ b/firmware/target/arm/imx233/system-imx233.c
@@ -54,6 +54,9 @@ default_interrupt(INT_SSP2_DMA);
default_interrupt(INT_SSP2_ERROR);
default_interrupt(INT_I2C_DMA);
default_interrupt(INT_I2C_ERROR);
+default_interrupt(INT_GPIO0);
+default_interrupt(INT_GPIO1);
+default_interrupt(INT_GPIO2);
typedef void (*isr_t)(void);
@@ -72,6 +75,9 @@ static isr_t isr_table[INT_SRC_NR_SOURCES] =
[INT_SRC_SSP2_ERROR] = INT_SSP2_ERROR,
[INT_SRC_I2C_DMA] = INT_I2C_DMA,
[INT_SRC_I2C_ERROR] = INT_I2C_ERROR,
+ [INT_SRC_GPIO0] = INT_GPIO0,
+ [INT_SRC_GPIO1] = INT_GPIO1,
+ [INT_SRC_GPIO2] = INT_GPIO2,
};
static void UIRQ(void)
diff --git a/firmware/target/arm/imx233/system-target.h b/firmware/target/arm/imx233/system-target.h
index c5c2ed8f0c..399ab845fd 100644
--- a/firmware/target/arm/imx233/system-target.h
+++ b/firmware/target/arm/imx233/system-target.h
@@ -86,6 +86,10 @@
#define INT_SRC_USB_CTRL 11
#define INT_SRC_SSP1_DMA 14
#define INT_SRC_SSP1_ERROR 15
+#define INT_SRC_GPIO0 16
+#define INT_SRC_GPIO1 17
+#define INT_SRC_GPIO2 18
+#define INT_SRC_GPIO(i) (INT_SRC_GPIO0 + (i))
#define INT_SRC_SSP2_DMA 20
#define INT_SRC_I2C_DMA 26
#define INT_SRC_I2C_ERROR 27