ANDROID: GKI: power_supply: add properties to report parallel connection topology

Add power_supply properties to report and the connection topology
of parallel charger(input and output).

Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
(cherry picked from commit ad45db3e1f)
Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 150789066
Change-Id: Id4e9e3c23d83e58906e0cb3dd208b57089eed81a
This commit is contained in:
Ashay Jaiswal
2019-04-25 15:20:24 +05:30
committed by Mark Salyzyn
parent f7b16318ce
commit cb77fe70ec
2 changed files with 8 additions and 0 deletions

View File

@ -496,6 +496,7 @@ static struct device_attribute power_supply_attrs[] = {
POWER_SUPPLY_ATTR(cp_irq_status),
POWER_SUPPLY_ATTR(cp_ilim),
POWER_SUPPLY_ATTR(irq_status),
POWER_SUPPLY_ATTR(parallel_output_mode),
/* Local extensions of type int64_t */
POWER_SUPPLY_ATTR(charge_counter_ext),
POWER_SUPPLY_ATTR(charge_charger_state),

View File

@ -139,6 +139,12 @@ enum {
POWER_SUPPLY_PL_NON_STACKED_BATFET,
};
/* Parallel output connection topology */
enum {
POWER_SUPPLY_PL_OUTPUT_VPH,
POWER_SUPPLY_PL_OUTPUT_VBAT,
};
enum {
POWER_SUPPLY_PD_INACTIVE = 0,
POWER_SUPPLY_PD_ACTIVE,
@ -361,6 +367,7 @@ enum power_supply_property {
POWER_SUPPLY_PROP_CP_IRQ_STATUS,
POWER_SUPPLY_PROP_CP_ILIM,
POWER_SUPPLY_PROP_IRQ_STATUS,
POWER_SUPPLY_PROP_PARALLEL_OUTPUT_MODE,
/* Local extensions of type int64_t */
POWER_SUPPLY_PROP_CHARGE_COUNTER_EXT,
POWER_SUPPLY_PROP_CHARGE_CHARGER_STATE,