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

Commit a9f35e2a authored by jessicatseng's avatar jessicatseng Committed by jessicatseng(45616)
Browse files

Add Kayo battery and QCT step charging.

Battery profile is temporary, wait for QCT's official release.

Change-Id: Icf8371ea2c069f3abcace87d37fa3d9fad0b43d1
parent 977347ed
Loading
Loading
Loading
Loading
+1066 −0

File added.

Preview size limit exceeded, changes collapsed.

+3 −0
Original line number Diff line number Diff line
@@ -36,14 +36,17 @@
/{
	mtp_batterydata: qcom,battery-data {
		qcom,batt-id-range-pct = <15>;
//<2019/09/17-JessicaTseng, Add Kayo battery profile
//<--[Lightphone][Charging][JasonHsing] Battery profile for Fuel Gauge 20190123 BEGIN
#if 1
		#include "qg-batterydata-Fuji-3000mah-Jan22th2019-pmi632.dtsi"
		#include "qg-batterydata-Kayo-3000mah-Jan22th2019-pmi632.dtsi"
#else
		#include "qg-batterydata-ascent-3450mah.dtsi"
		#include "qg-batterydata-mlp356477-2800mah.dtsi"
#endif
//-->[Lightphone][Charging][JasonHsing] Battery profile for Fuel Gauge 20190123 END
//>2019/09/17-JessicaTseng
	};
};

+1 −1
Original line number Diff line number Diff line
@@ -788,7 +788,7 @@ int qcom_step_chg_init(struct device *dev,

	chip->step_chg_config->psy_prop = POWER_SUPPLY_PROP_VOLTAGE_NOW;
	chip->step_chg_config->prop_name = "VBATT";
	chip->step_chg_config->hysteresis = 100000;
	chip->step_chg_config->hysteresis = 0;//100000; //<2019/09/17-JessicaTseng, Add Kayo battery profile

	chip->jeita_fcc_config = devm_kzalloc(dev,
			sizeof(struct jeita_fcc_cfg), GFP_KERNEL);