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)
commitf2e5c49d221bd46c72d363ae595e47268bd1f420
tree55304ee5b4acb285fb641db2a9220e3f140440bf
parentb0ac8596edc8b37de90a5ec095a25abbbc24f169
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