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

Commit 07a9d05e authored by Harry Yang's avatar Harry Yang
Browse files

power_supply: Add SMB_EN_MODE property



Add POWER_SUPPLY_PROP_SMB_EN_MODE to indicate the secondary
charger module currently selected for charging via SMB_EN
pin - Charge Pump, SMB1355, or neither.

Also add enum for a list of charger config combos.

Change-Id: I17a489f2103e0ef3045f139ba52de16f819ebb17
Signed-off-by: default avatarHarry Yang <harryy@codeaurora.org>
parent ada19597
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -368,6 +368,7 @@ static struct device_attribute power_supply_attrs[] = {
	POWER_SUPPLY_ATTR(batt_full_current),
	POWER_SUPPLY_ATTR(recharge_soc),
	POWER_SUPPLY_ATTR(hvdcp_opti_allowed),
	POWER_SUPPLY_ATTR(smb_en_mode),
	/* Local extensions of type int64_t */
	POWER_SUPPLY_ATTR(charge_counter_ext),
	/* Properties of type `const char *' */
+8 −0
Original line number Diff line number Diff line
@@ -115,6 +115,13 @@ enum {
	POWER_SUPPLY_PL_USBMID_USBMID,
};

enum {
	POWER_SUPPLY_CHARGER_SEC_NONE = 0,
	POWER_SUPPLY_CHARGER_SEC_CP,
	POWER_SUPPLY_CHARGER_SEC_PL,
	POWER_SUPPLY_CHARGER_SEC_CP_PL,
};

enum {
	POWER_SUPPLY_CONNECTOR_TYPEC,
	POWER_SUPPLY_CONNECTOR_MICRO_USB,
@@ -287,6 +294,7 @@ enum power_supply_property {
	POWER_SUPPLY_PROP_BATT_FULL_CURRENT,
	POWER_SUPPLY_PROP_RECHARGE_SOC,
	POWER_SUPPLY_PROP_HVDCP_OPTI_ALLOWED,
	POWER_SUPPLY_PROP_SMB_EN_MODE,
	/* Local extensions of type int64_t */
	POWER_SUPPLY_PROP_CHARGE_COUNTER_EXT,
	/* Properties of type `const char *' */