]> git.baikalelectronics.ru Git - 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)
commit77ceebd40007432a43aca304f615f095c493cbb9
tree0a29efdd629f1d2fd64970006bc39416bef42a6b
parent9b9161d6974741c40e02fb3d8f1429a16c99eb58
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