OSDN Git Service

qcom-charger: smb138x-charger: add parallel enable status properties
authorNicholas Troast <ntroast@codeaurora.org>
Wed, 27 Jul 2016 18:29:30 +0000 (11:29 -0700)
committerNicholas Troast <ntroast@codeaurora.org>
Tue, 2 Aug 2016 21:03:21 +0000 (14:03 -0700)
commit081e422149b9a683d859fc79023ce0948328b4bc
treedc2ab972e3582d272668a6b2f3328614f31d7380
parent9c585526980f4ed9916a67a052d7eafa3bc014f8
qcom-charger: smb138x-charger: add parallel enable status properties

There are several ways that the parallel charger can be enabled, and
disabled. Currently charging is enabled by default, but the hardware has
the option to disable the parallel charger via the CHG_EN pin on the
parallel charger. The parallel charger driver controls when the
parallel charger is enabled via the input suspend bit.

To better understand the state of the parallel charger add two power
supply properties to the parallel power supply:

CHARGING_ENABLED - Reflects whether the parallel charger is
  enabled by any source.
PIN_ENABLED - Reflects whether hardware has voted to enable
  the parallel charger.

Change-Id: I725245178ab02c5ec39b89998f5c2ca3d494c8ee
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
drivers/power/qcom-charger/smb138x-charger.c