summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-05-10 03:49:17 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-05-10 03:49:17 +0000
commit4970f98619e7981a2b032e34bc0849cf139a1142 (patch)
tree3aee4d1f88d94880a7a1bb059ccab24512140af4
parent270f136fd2b15b449edbb82ab175ce39d0407bf1 (diff)
downloadrockbox-4970f98619e7981a2b032e34bc0849cf139a1142.tar.gz
rockbox-4970f98619e7981a2b032e34bc0849cf139a1142.zip
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
-rw-r--r--firmware/export/config/sansaclipplus.h2
-rw-r--r--firmware/export/config/sansaclipv2.h2
-rw-r--r--firmware/export/config/sansafuzev2.h2
-rw-r--r--firmware/target/arm/as3525/system-as3525.c2
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 @@
191#define CONFIG_LED LED_VIRTUAL 191#define CONFIG_LED LED_VIRTUAL
192 192
193/* Define this if you have adjustable CPU frequency */ 193/* Define this if you have adjustable CPU frequency */
194#define HAVE_ADJUSTABLE_CPU_FREQ 194//#define HAVE_ADJUSTABLE_CPU_FREQ
195 195
196#define BOOTFILE_EXT "sansa" 196#define BOOTFILE_EXT "sansa"
197#define BOOTFILE "rockbox." BOOTFILE_EXT 197#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 @@
179#define CONFIG_LED LED_VIRTUAL 179#define CONFIG_LED LED_VIRTUAL
180 180
181/* Define this if you have adjustable CPU frequency */ 181/* Define this if you have adjustable CPU frequency */
182#define HAVE_ADJUSTABLE_CPU_FREQ 182//#define HAVE_ADJUSTABLE_CPU_FREQ
183 183
184#define BOOTFILE_EXT "sansa" 184#define BOOTFILE_EXT "sansa"
185#define BOOTFILE "rockbox." BOOTFILE_EXT 185#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 @@
196#endif /* !BOOTLOADER */ 196#endif /* !BOOTLOADER */
197 197
198/* Define this if you have adjustable CPU frequency */ 198/* Define this if you have adjustable CPU frequency */
199#define HAVE_ADJUSTABLE_CPU_FREQ 199//#define HAVE_ADJUSTABLE_CPU_FREQ
200 200
201#define BOOTFILE_EXT "sansa" 201#define BOOTFILE_EXT "sansa"
202#define BOOTFILE "rockbox." BOOTFILE_EXT 202#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)
453 } 453 }
454} 454}
455#else /* as3525v2 */ 455#else /* as3525v2 */
456/* FIXME : disabled for now, seems to cause buggy memory accesses
457 * Disabling MMU or putting the function in uncached memory seems to help? */
456void set_cpu_frequency(long frequency) 458void set_cpu_frequency(long frequency)
457{ 459{
458 int oldstatus = disable_irq_save(); 460 int oldstatus = disable_irq_save();