From f18de23428f88ef362e66d3c0af7bbd457617114 Mon Sep 17 00:00:00 2001 From: Thom Johansen Date: Fri, 17 Mar 2006 14:27:09 +0000 Subject: 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 --- firmware/system.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'firmware/system.c') 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) } #endif -/* Only these two support CPU boosting at the moment */ -#if defined(APPLE_IPODNANO) || defined(APPLE_IPODVIDEO) +/* Not all iPod targets support CPU freq. boosting yet */ +#ifdef HAVE_ADJUSTABLE_CPU_FREQ void set_cpu_frequency(long frequency) { unsigned long postmult; @@ -1263,7 +1263,7 @@ void system_init(void) outl(-1, 0x60001038); outl(-1, 0x60001028); outl(-1, 0x6000101c); -#if !defined(APPLE_IPODNANO) && !defined(APPLE_IPODVIDEO) +#ifndef HAVE_ADJUSTABLE_CPU_FREQ ipod_set_cpu_frequency(); #endif ipod_init_cache(); -- cgit v1.2.3