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

Commit 91a609cd authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar
Browse files

power: smbcharger: Use Wipower charger type for dc charging path



On certain platforms the DC path could be connected to Wipower charge
input. Support Wipower as the DC path charger type.

Change-Id: I5368aff2c826e6d3ea3037602001093acfa60a38
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent a5dd6fc4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -125,7 +125,7 @@ Optional Properties:
				the qcom,charging-timeout-mins property must
				be specified in order for this to take effect.
- qcom,dc-psy-type		The type of charger connected to the DC path.
				Can be "Mains" or "Wireless"
				Can be "Mains", "Wireless" or "Wipower"
- qcom,dc-psy-ma		The current in mA dc path can support. Must be
				specified if dc-psy-type is specified. Valid
				range 300mA to 2000mA.
+2 −0
Original line number Diff line number Diff line
@@ -3571,6 +3571,8 @@ static int smb_parse_dt(struct smbchg_chip *chip)
			chip->dc_psy_type = POWER_SUPPLY_TYPE_MAINS;
		else if (strcmp(dc_psy_type, "Wireless") == 0)
			chip->dc_psy_type = POWER_SUPPLY_TYPE_WIRELESS;
		else if (strcmp(dc_psy_type, "Wipower") == 0)
			chip->dc_psy_type = POWER_SUPPLY_TYPE_WIPOWER;
	}
	if (chip->dc_psy_type != -EINVAL) {
		OF_PROP_READ(chip, chip->dc_target_current_ma,