Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 45142d95 authored by Ashay Jaiswal's avatar Ashay Jaiswal
Browse files

power_supply: add POWER_SUPPLY_PROP_(BATFET_MODE/MIN_CIL) properties



Add power_supply properties to expose parallel charger configuration.
POWER_SUPPLY_PROP_BATFET_MODE property exposes BATFET configuration
of parallel charger and POWER_SUPPLY_PROP_MIN_ICL property exposes
minimum ICL configuration required by parallel charger.

Change-Id: I477789b4ea9dd56ac34606b00566f46aa6f84aa5
Signed-off-by: default avatarAshay Jaiswal <ashayj@codeaurora.org>
parent 098abe14
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -320,6 +320,8 @@ static struct device_attribute power_supply_attrs[] = {
	POWER_SUPPLY_ATTR(pd_voltage_min),
	POWER_SUPPLY_ATTR(sdp_current_max),
	POWER_SUPPLY_ATTR(connector_type),
	POWER_SUPPLY_ATTR(parallel_batfet_mode),
	POWER_SUPPLY_ATTR(min_icl),
	/* Local extensions of type int64_t */
	POWER_SUPPLY_ATTR(charge_counter_ext),
	/* Properties of type `const char *' */
+7 −0
Original line number Diff line number Diff line
@@ -120,6 +120,11 @@ enum {
	POWER_SUPPLY_CONNECTOR_MICRO_USB,
};

enum {
	POWER_SUPPLY_PL_STACKED_BATFET,
	POWER_SUPPLY_PL_NON_STACKED_BATFET,
};

enum power_supply_property {
	/* Properties of type `int' */
	POWER_SUPPLY_PROP_STATUS = 0,
@@ -266,6 +271,8 @@ enum power_supply_property {
	POWER_SUPPLY_PROP_PD_VOLTAGE_MIN,
	POWER_SUPPLY_PROP_SDP_CURRENT_MAX,
	POWER_SUPPLY_PROP_CONNECTOR_TYPE,
	POWER_SUPPLY_PROP_PARALLEL_BATFET_MODE,
	POWER_SUPPLY_PROP_MIN_ICL,
	/* Local extensions of type int64_t */
	POWER_SUPPLY_PROP_CHARGE_COUNTER_EXT,
	/* Properties of type `const char *' */