summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/icoll-imx233.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-06-16 14:46:58 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-06-16 14:46:58 +0200
commitf545908c160702c826add431c467fe9c05a7d825 (patch)
tree0da8ca62cd23f55414ee75b5ce237a0532c80db0 /firmware/target/arm/imx233/icoll-imx233.h
parent81224c62bb6cdd0cac9c3406f55ae5096109e602 (diff)
downloadrockbox-f545908c160702c826add431c467fe9c05a7d825.tar.gz
rockbox-f545908c160702c826add431c467fe9c05a7d825.tar.bz2
rockbox-f545908c160702c826add431c467fe9c05a7d825.zip
imx233: rewrite icoll to use new register headers
Change-Id: I0bf30849d18a8493627025b383ce75ce524777ab
Diffstat (limited to 'firmware/target/arm/imx233/icoll-imx233.h')
-rw-r--r--firmware/target/arm/imx233/icoll-imx233.h19
1 files changed, 1 insertions, 18 deletions
diff --git a/firmware/target/arm/imx233/icoll-imx233.h b/firmware/target/arm/imx233/icoll-imx233.h
index d1bf8a18aa..e44b67f1d4 100644
--- a/firmware/target/arm/imx233/icoll-imx233.h
+++ b/firmware/target/arm/imx233/icoll-imx233.h
@@ -24,24 +24,7 @@
#include "config.h"
#include "system.h"
-/* Interrupt collector */
-#define HW_ICOLL_BASE 0x80000000
-
-#define HW_ICOLL_VECTOR (*(volatile uint32_t *)(HW_ICOLL_BASE + 0x0))
-
-#define HW_ICOLL_LEVELACK (*(volatile uint32_t *)(HW_ICOLL_BASE + 0x10))
-#define HW_ICOLL_LEVELACK__LEVEL0 0x1
-
-#define HW_ICOLL_CTRL (*(volatile uint32_t *)(HW_ICOLL_BASE + 0x20))
-#define HW_ICOLL_CTRL__IRQ_FINAL_ENABLE (1 << 16)
-#define HW_ICOLL_CTRL__ARM_RSE_MODE (1 << 18)
-
-#define HW_ICOLL_VBASE (*(volatile uint32_t *)(HW_ICOLL_BASE + 0x40))
-#define HW_ICOLL_INTERRUPT(i) (*(volatile uint32_t *)(HW_ICOLL_BASE + 0x120 + (i) * 0x10))
-#define HW_ICOLL_INTERRUPT__PRIORITY_BM 0x3
-#define HW_ICOLL_INTERRUPT__ENABLE 0x4
-#define HW_ICOLL_INTERRUPT__SOFTIRQ 0x8
-#define HW_ICOLL_INTERRUPT__ENFIQ 0x10
+#include "regs/regs-icoll.h"
#define INT_SRC_SSP2_ERROR 2
#define INT_SRC_VDD5V 3