summaryrefslogtreecommitdiff
path: root/board/ti/sdp4430/sdp.c
diff options
context:
space:
mode:
authorBalaji T K <balajitk@ti.com>2010-11-25 16:22:04 +0530
committerSandeep Paulraj <s-paulraj@ti.com>2010-12-11 10:56:01 -0500
commit3e664f6d50ea7f5d6ea96a028fc8f099236e99be (patch)
tree032ec5be00d6b17bfc491e9cbc4d34ee0cd01a88 /board/ti/sdp4430/sdp.c
parent917a62c0d292d9da45100a76151a9fa2d13a9cdc (diff)
downloadu-boot-imx-3e664f6d50ea7f5d6ea96a028fc8f099236e99be.zip
u-boot-imx-3e664f6d50ea7f5d6ea96a028fc8f099236e99be.tar.gz
u-boot-imx-3e664f6d50ea7f5d6ea96a028fc8f099236e99be.tar.bz2
ARMV7: OMAP4: twl6030 add battery charging support
Add battery charging support twl6030 driver. Add support for battery voltage and current measurements. Add command to get battery status and start/stop battery charging from USB. Signed-off-by: Balaji T K <balajitk@ti.com> Tested-by: Steve Sakoman <steve.sakoman@linaro.org> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
Diffstat (limited to 'board/ti/sdp4430/sdp.c')
-rw-r--r--board/ti/sdp4430/sdp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/board/ti/sdp4430/sdp.c b/board/ti/sdp4430/sdp.c
index 01d5ce4..b13c4c5 100644
--- a/board/ti/sdp4430/sdp.c
+++ b/board/ti/sdp4430/sdp.c
@@ -23,6 +23,7 @@
* MA 02111-1307 USA
*/
#include <common.h>
+#include <twl6030.h>
#include <asm/arch/sys_proto.h>
#include <asm/arch/mmc_host_def.h>
@@ -63,6 +64,9 @@ int board_eth_init(bd_t *bis)
*/
int misc_init_r(void)
{
+#ifdef CONFIG_TWL6030_POWER
+ twl6030_init_battery_charging();
+#endif
return 0;
}