summaryrefslogtreecommitdiff
path: root/firmware/export/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/export/system.h')
-rw-r--r--firmware/export/system.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h
index b5f4bbf2db..380c229f1d 100644
--- a/firmware/export/system.h
+++ b/firmware/export/system.h
@@ -29,7 +29,7 @@ extern void system_init(void);
29 29
30extern long cpu_frequency; 30extern long cpu_frequency;
31 31
32#if CONFIG_CPU==PP5020 32#if (CONFIG_CPU == PP5002) || (CONFIG_CPU == PP5020)
33#define inl(a) (*(volatile unsigned long *) (a)) 33#define inl(a) (*(volatile unsigned long *) (a))
34#define outl(a,b) (*(volatile unsigned long *) (b) = (a)) 34#define outl(a,b) (*(volatile unsigned long *) (b) = (a))
35#define inb(a) (*(volatile unsigned char *) (a)) 35#define inb(a) (*(volatile unsigned char *) (a))
@@ -40,8 +40,8 @@ extern unsigned int ipod_hw_rev;
40 40
41static inline void udelay(unsigned usecs) 41static inline void udelay(unsigned usecs)
42{ 42{
43 unsigned start = inl(0x60005010); 43 unsigned start = USEC_TIMER;
44 while ((inl(0x60005010) - start) < usecs); 44 while ((USEC_TIMER - start) < usecs);
45} 45}
46#endif 46#endif
47 47