summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/power-imx233.h
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2011-09-13 23:40:19 +0000
committerAmaury Pouly <pamaury@rockbox.org>2011-09-13 23:40:19 +0000
commitb1a97d2c0fd035bc116739717d4cf541a9487ae1 (patch)
tree4010649d65fa15dcccc5c1f9af56e0132621f049 /firmware/target/arm/imx233/power-imx233.h
parent80101edcf7d680f9df26600daff6f9f8ee8f750d (diff)
downloadrockbox-b1a97d2c0fd035bc116739717d4cf541a9487ae1.tar.gz
rockbox-b1a97d2c0fd035bc116739717d4cf541a9487ae1.tar.bz2
rockbox-b1a97d2c0fd035bc116739717d4cf541a9487ae1.zip
imx233/fuze+: add charger related defines
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30537 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/imx233/power-imx233.h')
-rw-r--r--firmware/target/arm/imx233/power-imx233.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/power-imx233.h b/firmware/target/arm/imx233/power-imx233.h
index c37fdd60d9..d0fe686888 100644
--- a/firmware/target/arm/imx233/power-imx233.h
+++ b/firmware/target/arm/imx233/power-imx233.h
@@ -40,6 +40,12 @@
#define HW_POWER_MINPWR (*(volatile uint32_t *)(HW_POWER_BASE + 0x20))
#define HW_POWER_CHARGE (*(volatile uint32_t *)(HW_POWER_BASE + 0x30))
+#define HW_POWER_CHARGE__BATTCHRG_I_BP 0
+#define HW_POWER_CHARGE__BATTCHRG_I_BM 0x3f
+#define HW_POWER_CHARGE__STOP_ILIMIT_BP 8
+#define HW_POWER_CHARGE__STOP_ILIMIT_BM 0xf00
+#define HW_POWER_CHARGE__PWD_BATTCHRG (1 << 16)
+#define HW_POWER_CHARGE__CHRG_STS_OFF (1 << 19)
#define HW_POWER_VDDDCTRL (*(volatile uint32_t *)(HW_POWER_BASE + 0x40))
#define HW_POWER_VDDDCTRL__TRG_BP 0