forked from len0rd/rockbox
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
This commit is contained in:
parent
8bf079ffc1
commit
5cc7347463
2 changed files with 50 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue