diff options
Diffstat (limited to 'firmware/export/system.h')
| -rw-r--r-- | firmware/export/system.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h index b5f4bbf..380c229 100644 --- a/firmware/export/system.h +++ b/firmware/export/system.h @@ -29,7 +29,7 @@ extern void system_init(void); extern long cpu_frequency; -#if CONFIG_CPU==PP5020 +#if (CONFIG_CPU == PP5002) || (CONFIG_CPU == PP5020) #define inl(a) (*(volatile unsigned long *) (a)) #define outl(a,b) (*(volatile unsigned long *) (b) = (a)) #define inb(a) (*(volatile unsigned char *) (a)) @@ -40,8 +40,8 @@ extern unsigned int ipod_hw_rev; static inline void udelay(unsigned usecs) { - unsigned start = inl(0x60005010); - while ((inl(0x60005010) - start) < usecs); + unsigned start = USEC_TIMER; + while ((USEC_TIMER - start) < usecs); } #endif |