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

Commit 51393071 authored by bozhilin(79975)'s avatar bozhilin(79975) Committed by Gerrit Code Review
Browse files

Merge "Fill the correct NTC table for battery" into 8901-fairphone-p-vanilla

parents e8cb6436 7b2e45d5
Loading
Loading
Loading
Loading
+72 −70
Original line number Diff line number Diff line
@@ -604,78 +604,80 @@ static const struct qpnp_vadc_map_pt adcmap_ncp03wf683[] = {
};

/* Voltage to temperature */
//<--[Fairphone][Charging][JasonHsing] Fill the correct NTC table for 8901 battery 20190115 BEGIN --
static const struct qpnp_vadc_map_pt adcmap_batt_therm[] = {
	{1770,	-400},
	{1757,	-380},
	{1743,	-360},
	{1727,	-340},
	{1710,	-320},
	{1691,	-300},
	{1671,	-280},
	{1650,	-260},
	{1627,	-240},
	{1602,	-220},
	{1576,	-200},
	{1548,	-180},
	{1519,	-160},
	{1488,	-140},
	{1456,	-120},
	{1423,	-100},
	{1388,	-80},
	{1353,	-60},
	{1316,	-40},
	{1278,	-20},
	{1240,	0},
	{1201,	20},
	{1162,	40},
	{1122,	60},
	{1082,	80},
	{1042,	100},
	{1003,	120},
	{964,	140},
	{925,	160},
	{887,	180},
	{849,	200},
	{812,	220},
	{777,	240},
	{742,	260},
	{708,	280},
	{675,	300},
	{643,	320},
	{613,	340},
	{583,	360},
	{555,	380},
	{528,	400},
	{502,	420},
	{477,	440},
	{453,	460},
	{430,	480},
	{409,	500},
	{388,	520},
	{369,	540},
	{350,	560},
	{333,	580},
	{316,	600},
	{300,	620},
	{285,	640},
	{271,	660},
	{257,	680},
	{245,	700},
	{233,	720},
	{221,	740},
	{210,	760},
	{200,	780},
	{190,	800},
	{181,	820},
	{173,	840},
	{164,	860},
	{157,	880},
	{149,	900},
	{142,	920},
	{136,	940},
	{129,	960},
	{124,	980}
	{1819,	-400},
	{1812,	-380},
	{1803,	-360},
	{1794,	-340},
	{1784,	-320},
	{1773,	-300},
	{1761,	-280},
	{1747,	-260},
	{1732,	-240},
	{1716,	-220},
	{1699,	-200},
	{1680,	-180},
	{1659,	-160},
	{1637,	-140},
	{1613,	-120},
	{1588,	-100},
	{1561,	-80},
	{1532,	-60},
	{1501,	-40},
	{1470,	-20},
	{1436,	0},
	{1401,	20},
	{1365,	40},
	{1327,	60},
	{1289,	80},
	{1249,	100},
	{1209,	120},
	{1167,	140},
	{1126,	160},
	{1084,	180},
	{1042,	200},
	{1000,	220},
	{958,	240},
	{916,	260},
	{875,	280},
	{835,	300},
	{796,	320},
	{757,	340},
	{720,	360},
	{683,	380},
	{648,	400},
	{614,	420},
	{581,	440},
	{550,	460},
	{520,	480},
	{491,	500},
	{463,	520},
	{437,	540},
	{412,	560},
	{389,	580},
	{367,	600},
	{345,	620},
	{325,	640},
	{306,	660},
	{289,	680},
	{272,	700},
	{256,	720},
	{241,	740},
	{227,	760},
	{214,	780},
	{201,	800},
	{190,	820},
	{179,	840},
	{169,	860},
	{159,	880},
	{150,	900},
	{141,	920},
	{133,	940},
	{126,	960},
	{119,	980}
};
//-->[Fairphone][Charging][JasonHsing] Fill the correct NTC table for 8901 battery 20190115 END --

/* Voltage to temperature */
static const struct qpnp_vadc_map_pt adcmap_batt_therm_qrd[] = {