summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/icoll-imx233.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2014-02-02 04:15:27 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2014-02-10 23:14:23 +0100
commit4495913c289d34271197dce0dc5f6c45f5ea62e6 (patch)
treebab4b2e477bcc1fdb5876cbf1ab36165de6aee46 /firmware/target/arm/imx233/icoll-imx233.c
parentc1609b08892ec6878c6cc1ea20689145d23a51e6 (diff)
downloadrockbox-4495913c289d34271197dce0dc5f6c45f5ea62e6.tar.gz
rockbox-4495913c289d34271197dce0dc5f6c45f5ea62e6.tar.bz2
rockbox-4495913c289d34271197dce0dc5f6c45f5ea62e6.zip
imx233: clean timrot a bit
Change-Id: Ic803a6b5c93978cd3246e553579ac8a1ba35e191
Diffstat (limited to 'firmware/target/arm/imx233/icoll-imx233.c')
-rw-r--r--firmware/target/arm/imx233/icoll-imx233.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/target/arm/imx233/icoll-imx233.c b/firmware/target/arm/imx233/icoll-imx233.c
index 20b526d4fb..b753af8d54 100644
--- a/firmware/target/arm/imx233/icoll-imx233.c
+++ b/firmware/target/arm/imx233/icoll-imx233.c
@@ -23,6 +23,7 @@
#include "rtc-imx233.h"
#include "kernel-imx233.h"
#include "string.h"
+#include "timrot-imx233.h"
#define default_interrupt(name) \
extern __attribute__((weak, alias("UIRQ"))) void name(void)
@@ -153,7 +154,7 @@ void irq_handler(void)
int irq_nr = (HW_ICOLL_VECTOR - HW_ICOLL_VBASE) / 4;
if(irq_count[irq_nr]++ > IRQ_STORM_THRESHOLD)
panicf("IRQ %d: storm detected", irq_nr);
- if(irq_nr == INT_SRC_TIMER(TICK_TIMER_NR))
+ if(irq_nr == INT_SRC_TIMER(TIMER_TICK))
do_irq_stat();
(*(isr_t *)HW_ICOLL_VECTOR)();
/* acknowledge completion of IRQ (all use the same priority 0) */