mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
ANDROID: GKI: power_supply: Add properties to support PPS constant current(CC) mode
Add power supply properties to support PPS CC mode charging for dual charge pumps with MID-VBAT configuration, these properties are set from user space. Signed-off-by: Sahil Chandna <chandna@codeaurora.org> (cherry picked from commit 04e367f45dbd8ecd4a67ce1cc7d5cd11bb8a49e9) Signed-off-by: Mark Salyzyn <salyzyn@google.com> Bug: 150789066 Change-Id: Ia2d467255818dbaaf2d87f56aae39584368772ce
This commit is contained in:
committed by
Mark Salyzyn
parent
954e48cc31
commit
55d9887cf9
@@ -458,6 +458,10 @@ static struct device_attribute power_supply_attrs[] = {
|
||||
POWER_SUPPLY_ATTR(dc_reset),
|
||||
POWER_SUPPLY_ATTR(voltage_max_limit),
|
||||
POWER_SUPPLY_ATTR(real_capacity),
|
||||
POWER_SUPPLY_ATTR(force_main_icl),
|
||||
POWER_SUPPLY_ATTR(force_main_fcc),
|
||||
POWER_SUPPLY_ATTR(comp_clamp_level),
|
||||
POWER_SUPPLY_ATTR(adapter_cc_mode),
|
||||
/* Charge pump properties */
|
||||
POWER_SUPPLY_ATTR(cp_status1),
|
||||
POWER_SUPPLY_ATTR(cp_status2),
|
||||
|
||||
@@ -330,6 +330,10 @@ enum power_supply_property {
|
||||
POWER_SUPPLY_PROP_DC_RESET,
|
||||
POWER_SUPPLY_PROP_VOLTAGE_MAX_LIMIT,
|
||||
POWER_SUPPLY_PROP_REAL_CAPACITY,
|
||||
POWER_SUPPLY_PROP_FORCE_MAIN_ICL,
|
||||
POWER_SUPPLY_PROP_FORCE_MAIN_FCC,
|
||||
POWER_SUPPLY_PROP_COMP_CLAMP_LEVEL,
|
||||
POWER_SUPPLY_PROP_ADAPTER_CC_MODE,
|
||||
/* Charge pump properties */
|
||||
POWER_SUPPLY_PROP_CP_STATUS1,
|
||||
POWER_SUPPLY_PROP_CP_STATUS2,
|
||||
|
||||
Reference in New Issue
Block a user