diff options
author | Thom Johansen <thomj@rockbox.org> | 2006-03-17 14:27:09 +0000 |
---|---|---|
committer | Thom Johansen <thomj@rockbox.org> | 2006-03-17 14:27:09 +0000 |
commit | f18de23428f88ef362e66d3c0af7bbd457617114 (patch) | |
tree | 563bd0e1e794bcbb8f70fd41f04c76a39769dcf4 /firmware | |
parent | cee9568611c0744e5ac4754f6f6d73fd0b53b3a2 (diff) | |
download | rockbox-f18de23428f88ef362e66d3c0af7bbd457617114.tar.gz rockbox-f18de23428f88ef362e66d3c0af7bbd457617114.zip |
More sane define checking. To disable cpu boosting on ipods, just
commenting out the HAVE_ADJUSTABLE_CPU_FREQ line in the
config-ipodxxxx.h file will work now.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9077 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/system.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/system.c b/firmware/system.c index da58c35470..ae60148416 100644 --- a/firmware/system.c +++ b/firmware/system.c | |||
@@ -1201,8 +1201,8 @@ static void ipod_init_cache(void) | |||
1201 | } | 1201 | } |
1202 | #endif | 1202 | #endif |
1203 | 1203 | ||
1204 | /* Only these two support CPU boosting at the moment */ | 1204 | /* Not all iPod targets support CPU freq. boosting yet */ |
1205 | #if defined(APPLE_IPODNANO) || defined(APPLE_IPODVIDEO) | 1205 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ |
1206 | void set_cpu_frequency(long frequency) | 1206 | void set_cpu_frequency(long frequency) |
1207 | { | 1207 | { |
1208 | unsigned long postmult; | 1208 | unsigned long postmult; |
@@ -1263,7 +1263,7 @@ void system_init(void) | |||
1263 | outl(-1, 0x60001038); | 1263 | outl(-1, 0x60001038); |
1264 | outl(-1, 0x60001028); | 1264 | outl(-1, 0x60001028); |
1265 | outl(-1, 0x6000101c); | 1265 | outl(-1, 0x6000101c); |
1266 | #if !defined(APPLE_IPODNANO) && !defined(APPLE_IPODVIDEO) | 1266 | #ifndef HAVE_ADJUSTABLE_CPU_FREQ |
1267 | ipod_set_cpu_frequency(); | 1267 | ipod_set_cpu_frequency(); |
1268 | #endif | 1268 | #endif |
1269 | ipod_init_cache(); | 1269 | ipod_init_cache(); |