summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx233
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
parent80101edcf7d680f9df26600daff6f9f8ee8f750d (diff)
downloadrockbox-b1a97d2c0fd035bc116739717d4cf541a9487ae1.tar.gz
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')
-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 @@
40#define HW_POWER_MINPWR (*(volatile uint32_t *)(HW_POWER_BASE + 0x20)) 40#define HW_POWER_MINPWR (*(volatile uint32_t *)(HW_POWER_BASE + 0x20))
41 41
42#define HW_POWER_CHARGE (*(volatile uint32_t *)(HW_POWER_BASE + 0x30)) 42#define HW_POWER_CHARGE (*(volatile uint32_t *)(HW_POWER_BASE + 0x30))
43#define HW_POWER_CHARGE__BATTCHRG_I_BP 0
44#define HW_POWER_CHARGE__BATTCHRG_I_BM 0x3f
45#define HW_POWER_CHARGE__STOP_ILIMIT_BP 8
46#define HW_POWER_CHARGE__STOP_ILIMIT_BM 0xf00
47#define HW_POWER_CHARGE__PWD_BATTCHRG (1 << 16)
48#define HW_POWER_CHARGE__CHRG_STS_OFF (1 << 19)
43 49
44#define HW_POWER_VDDDCTRL (*(volatile uint32_t *)(HW_POWER_BASE + 0x40)) 50#define HW_POWER_VDDDCTRL (*(volatile uint32_t *)(HW_POWER_BASE + 0x40))
45#define HW_POWER_VDDDCTRL__TRG_BP 0 51#define HW_POWER_VDDDCTRL__TRG_BP 0