summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/powermgmt-imx233.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-07-07 17:29:41 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-07-07 17:36:21 +0200
commit3afcb53fb94b7bb937147236f338dd89afb781d0 (patch)
treefca31ca98a49047e49a0f317abdc00ede26599f3 /firmware/target/arm/imx233/powermgmt-imx233.h
parent659febc749627a92c59f2d765da59eb9c995c50d (diff)
downloadrockbox-3afcb53fb94b7bb937147236f338dd89afb781d0.tar.gz
rockbox-3afcb53fb94b7bb937147236f338dd89afb781d0.tar.bz2
rockbox-3afcb53fb94b7bb937147236f338dd89afb781d0.zip
imx233: rework power management
The current code was spreaded over power and powermgmt which made it behave strangely, especially since there are relationships between power management and frequency scaling. The new code makes sure power management is initialised before frequency scaling starts. It also makes sure to start from a known state, thus fixing potential issue when the bootloader stops in a trickle state where DCDC is improperly configured. Change-Id: Ibded2e590e108f6c98daa52d2cf1bd28763c8923
Diffstat (limited to 'firmware/target/arm/imx233/powermgmt-imx233.h')
-rw-r--r--firmware/target/arm/imx233/powermgmt-imx233.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/powermgmt-imx233.h b/firmware/target/arm/imx233/powermgmt-imx233.h
index 8876a2d62e..07634ec12e 100644
--- a/firmware/target/arm/imx233/powermgmt-imx233.h
+++ b/firmware/target/arm/imx233/powermgmt-imx233.h
@@ -24,6 +24,7 @@
#include "config.h"
#include "powermgmt.h"
+void imx233_powermgmt_init(void);
void powermgmt_init_target(void);
void charging_algorithm_step(void);
void charging_algorithm_close(void);