From 4970f98619e7981a2b032e34bc0849cf139a1142 Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Mon, 10 May 2010 03:49:17 +0000 Subject: as3525v2: disable adjustable CPU frequency When the rest of the code is confirmed to work properly without CPU frequency changes, it will be possible to reliabily test set_cpu_frequency() git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25924 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/config/sansaclipplus.h | 2 +- firmware/export/config/sansaclipv2.h | 2 +- firmware/export/config/sansafuzev2.h | 2 +- firmware/target/arm/as3525/system-as3525.c | 2 ++ 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/firmware/export/config/sansaclipplus.h b/firmware/export/config/sansaclipplus.h index 875ef308d3..79a7776b51 100644 --- a/firmware/export/config/sansaclipplus.h +++ b/firmware/export/config/sansaclipplus.h @@ -191,7 +191,7 @@ #define CONFIG_LED LED_VIRTUAL /* Define this if you have adjustable CPU frequency */ -#define HAVE_ADJUSTABLE_CPU_FREQ +//#define HAVE_ADJUSTABLE_CPU_FREQ #define BOOTFILE_EXT "sansa" #define BOOTFILE "rockbox." BOOTFILE_EXT diff --git a/firmware/export/config/sansaclipv2.h b/firmware/export/config/sansaclipv2.h index 876d95ac22..8780395bcb 100644 --- a/firmware/export/config/sansaclipv2.h +++ b/firmware/export/config/sansaclipv2.h @@ -179,7 +179,7 @@ #define CONFIG_LED LED_VIRTUAL /* Define this if you have adjustable CPU frequency */ -#define HAVE_ADJUSTABLE_CPU_FREQ +//#define HAVE_ADJUSTABLE_CPU_FREQ #define BOOTFILE_EXT "sansa" #define BOOTFILE "rockbox." BOOTFILE_EXT diff --git a/firmware/export/config/sansafuzev2.h b/firmware/export/config/sansafuzev2.h index b920e4153b..38fa4b6605 100644 --- a/firmware/export/config/sansafuzev2.h +++ b/firmware/export/config/sansafuzev2.h @@ -196,7 +196,7 @@ #endif /* !BOOTLOADER */ /* Define this if you have adjustable CPU frequency */ -#define HAVE_ADJUSTABLE_CPU_FREQ +//#define HAVE_ADJUSTABLE_CPU_FREQ #define BOOTFILE_EXT "sansa" #define BOOTFILE "rockbox." BOOTFILE_EXT diff --git a/firmware/target/arm/as3525/system-as3525.c b/firmware/target/arm/as3525/system-as3525.c index 51fcd97980..97063074b9 100644 --- a/firmware/target/arm/as3525/system-as3525.c +++ b/firmware/target/arm/as3525/system-as3525.c @@ -453,6 +453,8 @@ void set_cpu_frequency(long frequency) } } #else /* as3525v2 */ +/* FIXME : disabled for now, seems to cause buggy memory accesses + * Disabling MMU or putting the function in uncached memory seems to help? */ void set_cpu_frequency(long frequency) { int oldstatus = disable_irq_save(); -- cgit v1.2.3