diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2013-07-07 17:29:41 +0200 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2013-07-07 17:36:21 +0200 |
commit | 3afcb53fb94b7bb937147236f338dd89afb781d0 (patch) | |
tree | fca31ca98a49047e49a0f317abdc00ede26599f3 /firmware/target/arm/imx233/powermgmt-imx233.h | |
parent | 659febc749627a92c59f2d765da59eb9c995c50d (diff) | |
download | rockbox-3afcb53fb94b7bb937147236f338dd89afb781d0.tar.gz 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.h | 1 |
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 @@ | |||
24 | #include "config.h" | 24 | #include "config.h" |
25 | #include "powermgmt.h" | 25 | #include "powermgmt.h" |
26 | 26 | ||
27 | void imx233_powermgmt_init(void); | ||
27 | void powermgmt_init_target(void); | 28 | void powermgmt_init_target(void); |
28 | void charging_algorithm_step(void); | 29 | void charging_algorithm_step(void); |
29 | void charging_algorithm_close(void); | 30 | void charging_algorithm_close(void); |