diff options
| author | Thom Johansen <thomj@rockbox.org> | 2005-12-17 19:11:43 +0000 |
|---|---|---|
| committer | Thom Johansen <thomj@rockbox.org> | 2005-12-17 19:11:43 +0000 |
| commit | 5cc73474633f0f33e0b9f6a55cd8831df9bec906 (patch) | |
| tree | 9da9136765cdfd38620d7df6e51ab9ce59160bb4 /firmware/export | |
| parent | 8bf079ffc148e44cfebd4c8cd1c73e778aae45fa (diff) | |
| download | rockbox-5cc73474633f0f33e0b9f6a55cd8831df9bec906.zip rockbox-5cc73474633f0f33e0b9f6a55cd8831df9bec906.tar.gz rockbox-5cc73474633f0f33e0b9f6a55cd8831df9bec906.tar.bz2 rockbox-5cc73474633f0f33e0b9f6a55cd8831df9bec906.tar.xz | |
Raise iPod CPU frequency and enable cache and add function needed for button driver.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8257 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
| -rw-r--r-- | firmware/export/system.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h index e4de588..40e3884 100644 --- a/firmware/export/system.h +++ b/firmware/export/system.h @@ -34,6 +34,11 @@ extern long cpu_frequency; #define outl(a,b) (*(volatile unsigned long *) (b) = (a)) #define inb(a) (*(volatile unsigned char *) (a)) #define outb(a,b) (*(volatile unsigned char *) (b) = (a)) +static inline void udelay(unsigned usecs) +{ + unsigned start = inl(0x60005010); + while ((inl(0x60005010) - start) < usecs); +} #endif #ifdef HAVE_ADJUSTABLE_CPU_FREQ |