diff options
Diffstat (limited to 'firmware/target/arm/imx31/gigabeat-s/system-target.h')
-rw-r--r-- | firmware/target/arm/imx31/gigabeat-s/system-target.h | 9 |
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 | ||
34 | static inline void udelay(unsigned int usecs) | 34 | static 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 | ||
40 | static inline unsigned long usec_timer(void) | ||
41 | { | ||
42 | return GPTCNT; | ||
43 | } | ||
44 | |||
40 | void watchdog_init(unsigned int half_seconds); | 45 | void watchdog_init(unsigned int half_seconds); |
41 | void watchdog_service(void); | 46 | void watchdog_service(void); |
42 | 47 | ||