diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2010-04-23 15:32:50 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2010-04-23 15:32:50 +0000 |
commit | 11cca264ff57ad0b234bd1cd2c9a2366b967feb7 (patch) | |
tree | 7693e7150d5abc9687966cc248bfbd550d356964 /firmware/target/arm/imx31/gigabeat-s/system-target.h | |
parent | 6cee7579dbdc4d41c4df08c9395cf96c952ebab1 (diff) | |
download | rockbox-11cca264ff57ad0b234bd1cd2c9a2366b967feb7.tar.gz rockbox-11cca264ff57ad0b234bd1cd2c9a2366b967feb7.zip |
i.MX31/Gigabeat S: Implement frequency and voltage scaling-- 1.6V for 528MHz, and 1.35V for 264MHz and 132MHz. Keep DPTC overdrive ( > 400MHz) voltage scaling off for now because of uncertainties. Simplify the (working) mess later.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25699 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/imx31/gigabeat-s/system-target.h')
-rw-r--r-- | firmware/target/arm/imx31/gigabeat-s/system-target.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/firmware/target/arm/imx31/gigabeat-s/system-target.h b/firmware/target/arm/imx31/gigabeat-s/system-target.h index b859093c58..af95471db6 100644 --- a/firmware/target/arm/imx31/gigabeat-s/system-target.h +++ b/firmware/target/arm/imx31/gigabeat-s/system-target.h | |||
@@ -24,12 +24,12 @@ | |||
24 | #include "system-arm.h" | 24 | #include "system-arm.h" |
25 | #include "mmu-arm.h" | 25 | #include "mmu-arm.h" |
26 | 26 | ||
27 | #ifndef HAVE_ADJUSTABLE_CPU_FREQ | 27 | /* High enough for most tasks but low enough for reduced voltage */ |
28 | /* TODO: implement CPU frequency scaling */ | 28 | #define CPUFREQ_DEFAULT 264000000 |
29 | #define CPUFREQ_DEFAULT CPU_FREQ | 29 | /* Still quite powerful, minimum possible frequency */ |
30 | #define CPUFREQ_NORMAL CPU_FREQ | 30 | #define CPUFREQ_NORMAL 132000000 |
31 | #define CPUFREQ_MAX CPU_FREQ | 31 | /* Overdrive mode */ |
32 | #endif | 32 | #define CPUFREQ_MAX 528000000 |
33 | 33 | ||
34 | static inline void udelay(unsigned int usecs) | 34 | static inline void udelay(unsigned int usecs) |
35 | { | 35 | { |
@@ -45,10 +45,11 @@ void gpt_stop(void); | |||
45 | 45 | ||
46 | unsigned int iim_system_rev(void); | 46 | unsigned int iim_system_rev(void); |
47 | 47 | ||
48 | /* Prepare for transition to firmware */ | 48 | /* Prepare for transition to (new) firmware */ |
49 | void system_prepare_fw_start(void); | 49 | void system_prepare_fw_start(void); |
50 | void tick_stop(void); | 50 | void tick_stop(void); |
51 | void kernel_device_init(void); | 51 | void kernel_device_init(void); |
52 | void system_halt(void); | ||
52 | 53 | ||
53 | void imx31_regmod32(volatile uint32_t *reg_p, uint32_t value, | 54 | void imx31_regmod32(volatile uint32_t *reg_p, uint32_t value, |
54 | uint32_t mask); | 55 | uint32_t mask); |