summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/power-imx233.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-12-29 01:33:55 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2012-12-29 01:40:35 +0100
commit2b1159dda06b7c47e7c208a521c3ca8114da78a9 (patch)
treec1c5ff0ee45b5e5ecee740c4d05f9fd864344cfd /firmware/target/arm/imx233/power-imx233.h
parentf7132e4044be078e0f879f73b8d4545811d1cfb2 (diff)
downloadrockbox-2b1159dda06b7c47e7c208a521c3ca8114da78a9.tar.gz
rockbox-2b1159dda06b7c47e7c208a521c3ca8114da78a9.tar.bz2
rockbox-2b1159dda06b7c47e7c208a521c3ca8114da78a9.zip
imx233: move power init to system init
Do low level power init in system_init(). This can be needed since imx233 must be able to frequecy scale atfer system_init() and kernel_init() and this is only possible if power system was initialised. Change-Id: I27c66ec0dccd60bda26a45be24683c0bfe72c6da
Diffstat (limited to 'firmware/target/arm/imx233/power-imx233.h')
-rw-r--r--firmware/target/arm/imx233/power-imx233.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/power-imx233.h b/firmware/target/arm/imx233/power-imx233.h
index 786a450972..5379326969 100644
--- a/firmware/target/arm/imx233/power-imx233.h
+++ b/firmware/target/arm/imx233/power-imx233.h
@@ -177,6 +177,8 @@
#define HW_POWER_RESET__UNLOCK 0x3E770000
#define HW_POWER_RESET__PWD 0x1
+void imx233_power_init(void);
+
void imx233_power_set_charge_current(unsigned current); /* in mA */
void imx233_power_set_stop_current(unsigned current); /* in mA */
void imx233_power_enable_batadj(bool enable);