diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2013-06-16 20:52:40 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2013-06-17 00:29:24 +0200 |
commit | 023621d4018d2f08a8cebb805270cf9e945a645a (patch) | |
tree | b2b5b379c5acd780b19f3cef7617b86200d001ab /firmware/target/arm/imx233/icoll-imx233.h | |
parent | 8ed8a79f5cd596f1941a9720450518ae6a093f3d (diff) | |
download | rockbox-023621d4018d2f08a8cebb805270cf9e945a645a.tar.gz rockbox-023621d4018d2f08a8cebb805270cf9e945a645a.zip |
imx233: fix icoll for stmp3600 and stmp3700
Change-Id: I97b86d67b53615eca0d870058ff5c095c3063151
Diffstat (limited to 'firmware/target/arm/imx233/icoll-imx233.h')
-rw-r--r-- | firmware/target/arm/imx233/icoll-imx233.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/firmware/target/arm/imx233/icoll-imx233.h b/firmware/target/arm/imx233/icoll-imx233.h index e44b67f1d4..81d7695ec5 100644 --- a/firmware/target/arm/imx233/icoll-imx233.h +++ b/firmware/target/arm/imx233/icoll-imx233.h @@ -26,7 +26,6 @@ #include "regs/regs-icoll.h" -#define INT_SRC_SSP2_ERROR 2 #define INT_SRC_VDD5V 3 #define INT_SRC_DAC_DMA 5 #define INT_SRC_DAC_ERROR 6 @@ -39,17 +38,31 @@ #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 #define INT_SRC_TIMER(nr) (28 + (nr)) #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 +#define INT_SRC_SSP2_DMA 20 #define INT_SRC_LCDIF_DMA 45 #define INT_SRC_LCDIF_ERROR 46 -#define INT_SRC_RTC_1MSEC 48 #define INT_SRC_DCP 54 -#define INT_SRC_NR_SOURCES 66 +#endif +/* STMP3780+ specific */ +#if IMX233_SUBTARGET >= 3780 + +#endif + +/* helpers */ +#if IMX233_SUBTARGET >= 3600 && IMX233_SUBTARGET < 3780 +#define BP_ICOLL_PRIORITYn_ENABLEx(x) (2 + 8 * (x)) +#define BM_ICOLL_PRIORITYn_ENABLEx(x) (1 << (2 + 8 * (x))) +#endif struct imx233_icoll_irq_info_t { |