]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
power: supply: bq24190_charger: Use extcon to determine ilimit, 5v boost
authorHans de Goede <hdegoede@redhat.com>
Thu, 23 Mar 2017 08:32:35 +0000 (09:32 +0100)
committerSebastian Reichel <sre@kernel.org>
Thu, 13 Apr 2017 23:41:34 +0000 (01:41 +0200)
commitda26580f4eb81f3614cf5e3af43155fb45d118fc
tree0a29efdd629f1d2fd64970006bc39416bef42a6b
parent99c88eb244aa6b61cc0c4ca6e6b6b9c7ce00cc53
power: supply: bq24190_charger: Use extcon to determine ilimit, 5v boost

Add support for monitoring an extcon device with USB SDP/CDP/DCP and HOST
cables and adjust ilimit and enable/disable the 5V boost converter
accordingly. This is necessary on systems where the PSEL pin is hardwired
high and ILIM needs to be set by software based on the detected charger
type, as well as on systems where the 5V boost converter is used, as
that always needs to be enabled from software.

Cc: Liam Breck <kernel@networkimprov.net>
Cc: Tony Lindgren <tony@atomide.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/Kconfig
drivers/power/supply/bq24190_charger.c