From 11cca264ff57ad0b234bd1cd2c9a2366b967feb7 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Fri, 23 Apr 2010 15:32:50 +0000 Subject: 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 --- firmware/target/arm/imx31/gigabeat-s/power-gigabeat-s.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'firmware/target/arm/imx31/gigabeat-s/power-gigabeat-s.c') 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 @@ #include "backlight-target.h" #include "avic-imx31.h" #include "mc13783.h" +#include "dvfs_dptc-imx31.h" #if CONFIG_TUNER #include "fmradio_i2c.h" #endif @@ -121,6 +122,9 @@ bool tuner_powered(void) void power_off(void) { + /* Turn off voltage and frequency scaling */ + dvfs_dptc_stop(); + /* Cut backlight */ _backlight_off(); @@ -131,9 +135,7 @@ void power_off(void) mc13783_set(MC13783_POWER_CONTROL0, MC13783_USEROFFSPI); /* Wait for power cut */ - disable_interrupt(IRQ_FIQ_STATUS); - - while (1); + system_halt(); } void power_init(void) -- cgit v1.2.3