]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: axp20x_usb_power: enable USB BC detection on AXP813
authorIcenowy Zheng <icenowy@aosc.io>
Wed, 2 Oct 2019 11:25:44 +0000 (19:25 +0800)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 14 Oct 2019 04:19:53 +0000 (06:19 +0200)
commitcfa8e75ab071927b621611f4efb32445b3f9d887
tree55304ee5b4acb285fb641db2a9220e3f140440bf
parent5a46e552b1a5e6e7f070bb4a243dbf5200abc69b
power: supply: axp20x_usb_power: enable USB BC detection on AXP813

The AXP813 PMIC has support for detection of USB Battery Charging
specification, and it will limit the current to 500mA by default when
the detection is not enabled or the detection result is SDP.

Enable the BC detection to allow correctly selection of the current.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/axp20x_usb_power.c