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

Commit 07ad8933 authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar
Browse files

power: power_supply: Add USB_PARALLEL charger type



Add definitions for usb parallel charger type. This charger assists
the main charging path by splitting the current drawn from the usb
charger. This reduces the current flowing through the main charging
path thereby reducing thermal impact and size of the inductor.

Change-Id: I13ffa386c234387ec057d27f35818527c2c4fcdd
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent ab4d2b88
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -45,7 +45,8 @@ static ssize_t power_supply_show_property(struct device *dev,
					  char *buf) {
	static char *type_text[] = {
		"Unknown", "Battery", "UPS", "Mains", "USB",
		"USB_DCP", "USB_CDP", "USB_ACA", "Wireless", "BMS"
		"USB_DCP", "USB_CDP", "USB_ACA", "Wireless", "BMS",
		"USB_Parallel"
	};
	static char *status_text[] = {
		"Unknown", "Charging", "Discharging", "Not charging", "Full"
+1 −0
Original line number Diff line number Diff line
@@ -176,6 +176,7 @@ enum power_supply_type {
	POWER_SUPPLY_TYPE_USB_ACA,	/* Accessory Charger Adapters */
	POWER_SUPPLY_TYPE_WIRELESS,	/* Accessory Charger Adapters */
	POWER_SUPPLY_TYPE_BMS,		/* Battery Monitor System */
	POWER_SUPPLY_TYPE_USB_PARALLEL,		/* USB Parallel Path */
};

union power_supply_propval {