ab8500-bm: Add usb power path support
authorLee Jones <lee.jones@linaro.org>
Thu, 14 Feb 2013 12:39:15 +0000 (12:39 +0000)
committerLee Jones <lee.jones@linaro.org>
Thu, 7 Mar 2013 04:35:46 +0000 (12:35 +0800)
commitdb43e6c473b57d4e7a55c4bd6edef71f40f13eae
tree0fbe4762c914ba15898cf8bcb9bd8e531fe8fc31
parent405fea1c6691eb8259f2ca879c9348a4cf5d898d
ab8500-bm: Add usb power path support

AB8540 supports power path function in USB charging mode for fast
power up with dead and weak battery, and it could extend
the battery age.

When USB charging starts, if the Vbattrue is below than SW cut off
voltage, power path and pre-charge should be enabled. If Vbattrue
is higher than SW cut off voltage, power path and pre-charge should
be disabled. This is to make sure full current to battery charge.
At the end of charge, power path should be enable again to reduce
charging the battery again.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/power/ab8500_charger.c
drivers/power/abx500_chargalg.c
include/linux/mfd/abx500.h
include/linux/mfd/abx500/ab8500-bm.h
include/linux/mfd/abx500/ux500_chargalg.h