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/power-gigabeat-s.c | |
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/power-gigabeat-s.c')
-rw-r--r-- | firmware/target/arm/imx31/gigabeat-s/power-gigabeat-s.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/firmware/target/arm/imx31/gigabeat-s/power-gigabeat-s.c b/firmware/target/arm/imx31/gigabeat-s/power-gigabeat-s.c index 7e3b39dba8..d7fe87f168 100644 --- a/firmware/target/arm/imx31/gigabeat-s/power-gigabeat-s.c +++ b/firmware/target/arm/imx31/gigabeat-s/power-gigabeat-s.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include "backlight-target.h" | 28 | #include "backlight-target.h" |
29 | #include "avic-imx31.h" | 29 | #include "avic-imx31.h" |
30 | #include "mc13783.h" | 30 | #include "mc13783.h" |
31 | #include "dvfs_dptc-imx31.h" | ||
31 | #if CONFIG_TUNER | 32 | #if CONFIG_TUNER |
32 | #include "fmradio_i2c.h" | 33 | #include "fmradio_i2c.h" |
33 | #endif | 34 | #endif |
@@ -121,6 +122,9 @@ bool tuner_powered(void) | |||
121 | 122 | ||
122 | void power_off(void) | 123 | void power_off(void) |
123 | { | 124 | { |
125 | /* Turn off voltage and frequency scaling */ | ||
126 | dvfs_dptc_stop(); | ||
127 | |||
124 | /* Cut backlight */ | 128 | /* Cut backlight */ |
125 | _backlight_off(); | 129 | _backlight_off(); |
126 | 130 | ||
@@ -131,9 +135,7 @@ void power_off(void) | |||
131 | mc13783_set(MC13783_POWER_CONTROL0, MC13783_USEROFFSPI); | 135 | mc13783_set(MC13783_POWER_CONTROL0, MC13783_USEROFFSPI); |
132 | 136 | ||
133 | /* Wait for power cut */ | 137 | /* Wait for power cut */ |
134 | disable_interrupt(IRQ_FIQ_STATUS); | 138 | system_halt(); |
135 | |||
136 | while (1); | ||
137 | } | 139 | } |
138 | 140 | ||
139 | void power_init(void) | 141 | void power_init(void) |