summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/icoll-imx233.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2014-02-02 04:23:32 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2014-02-10 23:14:24 +0100
commitcefaabfe9d284e3eaa049819be0c06ac6c37a29b (patch)
tree2e3d7aa512b25c370be1f818acf399e38ecf81bd /firmware/target/arm/imx233/icoll-imx233.h
parent55877f442a6b2fd29af8f35c64ea59c42442927e (diff)
downloadrockbox-cefaabfe9d284e3eaa049819be0c06ac6c37a29b.tar.gz
rockbox-cefaabfe9d284e3eaa049819be0c06ac6c37a29b.tar.bz2
rockbox-cefaabfe9d284e3eaa049819be0c06ac6c37a29b.zip
imx233: cleanup icoll and add software irq sources
Change-Id: I4cf2b0b74cf391021afaec08329ec7cf5dbd578d
Diffstat (limited to 'firmware/target/arm/imx233/icoll-imx233.h')
-rw-r--r--firmware/target/arm/imx233/icoll-imx233.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/firmware/target/arm/imx233/icoll-imx233.h b/firmware/target/arm/imx233/icoll-imx233.h
index cf87305e11..2de2693ae4 100644
--- a/firmware/target/arm/imx233/icoll-imx233.h
+++ b/firmware/target/arm/imx233/icoll-imx233.h
@@ -44,7 +44,6 @@
#define INT_SRC_TOUCH_DETECT 36
#define INT_SRC_LRADC_CHx(x) (37 + (x))
#define INT_SRC_RTC_1MSEC 48
-#define INT_SRC_NR_SOURCES 64
/* STMP3700+ specific */
#if IMX233_SUBTARGET >= 3700
#define INT_SRC_SSP2_ERROR 2
@@ -55,7 +54,18 @@
#endif
/* STMP3780+ specific */
#if IMX233_SUBTARGET >= 3780
+#endif
+/* Software IRQ and IRQ count*/
+#if IMX233_SUBTARGET >= 3780
+#define INT_SRC_SOFTWARE(x) (66 + (x))
+#define INT_SRC_COUNT 128
+#elif IMX233_SUBTARGET >= 3700
+#define INT_SRC_SOFTWARE(x) (55 + (x))
+#define INT_SRC_COUNT 64
+#elif IMX233_SUBTARGET >= 3600
+#define INT_SRC_SOFTWARE(x) (60 + (x))
+#define INT_SRC_COUNT 64
#endif
/* helpers */