power: wm831x_power: Support USB charger current limit management
authorBaolin Wang <baolin.wang@linaro.org>
Tue, 15 Aug 2017 11:07:55 +0000 (19:07 +0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 15 Aug 2017 12:05:01 +0000 (15:05 +0300)
commit626b6cd5f52e83f208e3fb6d499bde4d6134e39d
tree939dd73d712a326534895a3538ed317597c0d582
parenta9081a008f84819ab2f3da596bf89afa16beea94
power: wm831x_power: Support USB charger current limit management

Integrate with the newly added USB charger interface to limit the current
we draw from the USB input based on the input device configuration
identified by the USB stack, allowing us to charge more quickly from high
current inputs without drawing more current than specified from others.

Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Acked-by: Lee Jones <lee.jones@linaro.org>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Acked-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Documentation/devicetree/bindings/mfd/wm831x.txt
drivers/power/supply/wm831x_power.c