]> git.karo-electronics.de Git - linux-beck.git/commit
power: bq24257: Add SW-based approach for Power Good determination
authorAndreas Dannenberg <dannenberg@ti.com>
Mon, 28 Sep 2015 22:33:56 +0000 (17:33 -0500)
committerSebastian Reichel <sre@kernel.org>
Tue, 29 Sep 2015 14:53:37 +0000 (16:53 +0200)
commit7c071a0a08f6c6327b86df918d2dda728355d457
tree47a597aa6e441df1a5249afed0712141171cdcf9
parenteb9fbcc6693ad73745198bbfc7c2b0e881580f59
power: bq24257: Add SW-based approach for Power Good determination

A software-based approach for determining the charger's input voltage
"Power Good" state is introduced for devices like the bq24250 which
don't have a dedicated hardware pin for that purpose. This SW-based
approach is also used for other devices (with dedicated PG pin) as a
fall back solution if that pin is not configured to be used through
"pg-gpios".

Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/bq24257_charger.c