summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/system-target.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-08-30 20:56:39 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2012-08-30 20:56:39 +0200
commitc9ad8688f16a271e0ab2f0cd26dc2f9ac89625c3 (patch)
treefa3c54aebb4e2aade59587e8514f64b4a233a669 /firmware/target/arm/imx233/system-target.h
parent6c2190ea04f5031b2b7e439318b76eb9bdc65fd8 (diff)
downloadrockbox-c9ad8688f16a271e0ab2f0cd26dc2f9ac89625c3.tar.gz
rockbox-c9ad8688f16a271e0ab2f0cd26dc2f9ac89625c3.tar.bz2
rockbox-c9ad8688f16a271e0ab2f0cd26dc2f9ac89625c3.zip
imx233: implement basic frequency scaling and enable auto-slow
This does not scale the EMI frequency and keep the processor betweel 261MHz and 454MHz. It can still be improve. The auto-slow divisor could still be change, 8 seems reasonable for now Change-Id: I639bb3f6b7f8efedc7dc58d08127849156eeb1b6
Diffstat (limited to 'firmware/target/arm/imx233/system-target.h')
-rw-r--r--firmware/target/arm/imx233/system-target.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/imx233/system-target.h b/firmware/target/arm/imx233/system-target.h
index 2e850e830d..5515597570 100644
--- a/firmware/target/arm/imx233/system-target.h
+++ b/firmware/target/arm/imx233/system-target.h
@@ -55,10 +55,10 @@
#define IMX233_CPUFREQ_64_MHz 64000000
#define IMX233_CPUFREQ_24_MHz 24000000
-#define CPUFREQ_DEFAULT IMX233_CPUFREQ_454_MHz
-#define CPUFREQ_NORMAL IMX233_CPUFREQ_454_MHz
+#define CPUFREQ_DEFAULT IMX233_CPUFREQ_261_MHz
+#define CPUFREQ_NORMAL IMX233_CPUFREQ_261_MHz
#define CPUFREQ_MAX IMX233_CPUFREQ_454_MHz
-#define CPUFREQ_SLEEP IMX233_CPUFREQ_454_MHz
+#define CPUFREQ_SLEEP IMX233_CPUFREQ_261_MHz
void udelay(unsigned us);
bool imx233_us_elapsed(uint32_t ref, unsigned us_delay);