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

Commit 9c585526 authored by Nicholas Troast's avatar Nicholas Troast
Browse files

power_supply: add PIN_ENABLED property



Hardware disables the parallel charger via the CHG_EN pin. Add a new
property called PIN_ENABLED which reflects the status of the CHG_EN pin.

Change-Id: I79f95b145176b66d6b8cec5a21922ea16c2c8206
Signed-off-by: default avatarNicholas Troast <ntroast@codeaurora.org>
parent 8c5c49fd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -225,9 +225,9 @@ static struct device_attribute power_supply_attrs[] = {
	/* Local extensions */
	POWER_SUPPLY_ATTR(usb_hc),
	POWER_SUPPLY_ATTR(usb_otg),
	POWER_SUPPLY_ATTR(charge_enabled),
	POWER_SUPPLY_ATTR(battery_charging_enabled),
	POWER_SUPPLY_ATTR(charging_enabled),
	POWER_SUPPLY_ATTR(pin_enabled),
	POWER_SUPPLY_ATTR(input_suspend),
	POWER_SUPPLY_ATTR(input_voltage_regulation),
	POWER_SUPPLY_ATTR(input_current_max),
+1 −1
Original line number Diff line number Diff line
@@ -174,9 +174,9 @@ enum power_supply_property {
	/* Local extensions */
	POWER_SUPPLY_PROP_USB_HC,
	POWER_SUPPLY_PROP_USB_OTG,
	POWER_SUPPLY_PROP_CHARGE_ENABLED,
	POWER_SUPPLY_PROP_BATTERY_CHARGING_ENABLED,
	POWER_SUPPLY_PROP_CHARGING_ENABLED,
	POWER_SUPPLY_PROP_PIN_ENABLED,
	POWER_SUPPLY_PROP_INPUT_SUSPEND,
	POWER_SUPPLY_PROP_INPUT_VOLTAGE_REGULATION,
	POWER_SUPPLY_PROP_INPUT_CURRENT_MAX,