forked from len0rd/rockbox
We need to allow set_cpu_frequency in the bootloader for adjustable CPU
freq targets. Fixes red build. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9074 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
176b38f548
commit
4fead08e7b
1 changed files with 3 additions and 4 deletions
|
@ -1199,7 +1199,8 @@ static void ipod_init_cache(void)
|
||||||
for (i = 0x10000000; i < 0x10002000; i += 16)
|
for (i = 0x10000000; i < 0x10002000; i += 16)
|
||||||
inb(i);
|
inb(i);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Only these two support CPU boosting at the moment */
|
/* Only these two support CPU boosting at the moment */
|
||||||
#if defined(APPLE_IPODNANO) || defined(APPLE_IPODVIDEO)
|
#if defined(APPLE_IPODNANO) || defined(APPLE_IPODVIDEO)
|
||||||
void set_cpu_frequency(long frequency)
|
void set_cpu_frequency(long frequency)
|
||||||
|
@ -1228,7 +1229,7 @@ void set_cpu_frequency(long frequency)
|
||||||
/* Select PLL as clock source? */
|
/* Select PLL as clock source? */
|
||||||
outl((inl(0x60006020) & 0x0fffff0f) | 0x20000070, 0x60006020);
|
outl((inl(0x60006020) & 0x0fffff0f) | 0x20000070, 0x60006020);
|
||||||
}
|
}
|
||||||
#else
|
#elif !defined(BOOTLOADER)
|
||||||
void ipod_set_cpu_frequency(void)
|
void ipod_set_cpu_frequency(void)
|
||||||
{
|
{
|
||||||
/* Enable PLL? */
|
/* Enable PLL? */
|
||||||
|
@ -1247,8 +1248,6 @@ void ipod_set_cpu_frequency(void)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* BOOTLOADER */
|
|
||||||
|
|
||||||
void system_init(void)
|
void system_init(void)
|
||||||
{
|
{
|
||||||
#ifndef BOOTLOADER
|
#ifndef BOOTLOADER
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue