summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx31/gigabeat-s/system-target.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx31/gigabeat-s/system-target.h')
-rw-r--r--firmware/target/arm/imx31/gigabeat-s/system-target.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/firmware/target/arm/imx31/gigabeat-s/system-target.h b/firmware/target/arm/imx31/gigabeat-s/system-target.h
index f3ba719443..4449b570f7 100644
--- a/firmware/target/arm/imx31/gigabeat-s/system-target.h
+++ b/firmware/target/arm/imx31/gigabeat-s/system-target.h
@@ -31,12 +31,17 @@
31/* Overdrive mode */ 31/* Overdrive mode */
32#define CPUFREQ_MAX 528000000 32#define CPUFREQ_MAX 528000000
33 33
34static inline void udelay(unsigned int usecs) 34static inline void udelay(unsigned long usecs)
35{ 35{
36 unsigned stop = GPTCNT + usecs; 36 unsigned long stop = GPTCNT + usecs;
37 while (TIME_BEFORE(GPTCNT, stop)); 37 while (TIME_BEFORE(GPTCNT, stop));
38} 38}
39 39
40static inline unsigned long usec_timer(void)
41{
42 return GPTCNT;
43}
44
40void watchdog_init(unsigned int half_seconds); 45void watchdog_init(unsigned int half_seconds);
41void watchdog_service(void); 46void watchdog_service(void);
42 47