diff options
author | Thom Johansen <thomj@rockbox.org> | 2006-03-17 02:44:55 +0000 |
---|---|---|
committer | Thom Johansen <thomj@rockbox.org> | 2006-03-17 02:44:55 +0000 |
commit | 4fead08e7b4cd3af83c118f3eea1f728e4d1eac4 (patch) | |
tree | 995043af8c7717d03144effbb57db068492b2b82 /firmware | |
parent | 176b38f54879373ee3ccb0a021f0820a33845a61 (diff) | |
download | rockbox-4fead08e7b4cd3af83c118f3eea1f728e4d1eac4.tar.gz rockbox-4fead08e7b4cd3af83c118f3eea1f728e4d1eac4.zip |
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
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/system.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/firmware/system.c b/firmware/system.c index 7d28a210bd..da58c35470 100644 --- a/firmware/system.c +++ b/firmware/system.c | |||
@@ -1199,7 +1199,8 @@ static void ipod_init_cache(void) | |||
1199 | for (i = 0x10000000; i < 0x10002000; i += 16) | 1199 | for (i = 0x10000000; i < 0x10002000; i += 16) |
1200 | inb(i); | 1200 | inb(i); |
1201 | } | 1201 | } |
1202 | 1202 | #endif | |
1203 | |||
1203 | /* Only these two support CPU boosting at the moment */ | 1204 | /* Only these two support CPU boosting at the moment */ |
1204 | #if defined(APPLE_IPODNANO) || defined(APPLE_IPODVIDEO) | 1205 | #if defined(APPLE_IPODNANO) || defined(APPLE_IPODVIDEO) |
1205 | void set_cpu_frequency(long frequency) | 1206 | void set_cpu_frequency(long frequency) |
@@ -1228,7 +1229,7 @@ void set_cpu_frequency(long frequency) | |||
1228 | /* Select PLL as clock source? */ | 1229 | /* Select PLL as clock source? */ |
1229 | outl((inl(0x60006020) & 0x0fffff0f) | 0x20000070, 0x60006020); | 1230 | outl((inl(0x60006020) & 0x0fffff0f) | 0x20000070, 0x60006020); |
1230 | } | 1231 | } |
1231 | #else | 1232 | #elif !defined(BOOTLOADER) |
1232 | void ipod_set_cpu_frequency(void) | 1233 | void ipod_set_cpu_frequency(void) |
1233 | { | 1234 | { |
1234 | /* Enable PLL? */ | 1235 | /* Enable PLL? */ |
@@ -1247,8 +1248,6 @@ void ipod_set_cpu_frequency(void) | |||
1247 | } | 1248 | } |
1248 | #endif | 1249 | #endif |
1249 | 1250 | ||
1250 | #endif /* BOOTLOADER */ | ||
1251 | |||
1252 | void system_init(void) | 1251 | void system_init(void) |
1253 | { | 1252 | { |
1254 | #ifndef BOOTLOADER | 1253 | #ifndef BOOTLOADER |