diff options
author | Balaji T K <balajitk@ti.com> | 2010-11-25 16:22:04 +0530 |
---|---|---|
committer | Sandeep Paulraj <s-paulraj@ti.com> | 2010-12-11 10:56:01 -0500 |
commit | 3e664f6d50ea7f5d6ea96a028fc8f099236e99be (patch) | |
tree | 032ec5be00d6b17bfc491e9cbc4d34ee0cd01a88 /board/ti/sdp4430/sdp.c | |
parent | 917a62c0d292d9da45100a76151a9fa2d13a9cdc (diff) |
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.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/board/ti/sdp4430/sdp.c b/board/ti/sdp4430/sdp.c index 01d5ce4f4f..b13c4c5c1d 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; } |