1
0
Fork 0
forked from len0rd/rockbox

More iPod 3G changes from Seven Le Mesle, and some unification of the iPod code from me

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8581 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dave Chapman 2006-02-05 16:52:22 +00:00
parent e8048cefed
commit d16a8b8845
10 changed files with 335 additions and 26 deletions

View file

@ -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