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.

Change-Id: Ia2d467255818dbaaf2d87f56aae39584368772ce
Signed-off-by: Sahil Chandna <chandna@codeaurora.org>
This commit is contained in:
Sahil Chandna committed 2019-06-22 15:35:19 +05:30
1 parent 0c6a536ee3
commit 04e367f45d
2 files changed
+8

No files matched your search

@@ -457,6 +457,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),
+4
View File
@@ -337,6 +337,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,