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

Commit e4d0bb96 authored by Anomalchik's avatar Anomalchik
Browse files

drivers: hwmon: qpnp-adc-common: add markw table

parent 71bf9153
Loading
Loading
Loading
Loading
+113 −0
Original line number Diff line number Diff line
@@ -51,6 +51,118 @@
   their framework which is 0.1DegC. True resolution of 0.1DegC
   will result in the below table size to increase by 10 times */
static const struct qpnp_vadc_map_pt adcmap_btm_threshold[] = {
#ifdef CONFIG_MACH_XIAOMI_MARKW
	{-300,	1651},
	{-290,	1644},
	{-280,	1637},
	{-270,	1629},
	{-260,	1621},
	{-250,	1613},
	{-240,	1605},
	{-230,	1596},
	{-220,	1587},
	{-210,	1578},
	{-200,	1568},
	{-190,	1558},
	{-180,	1548},
	{-170,	1538},
	{-160,	1527},
	{-150,	1516},
	{-140,	1505},
	{-130,	1493},
	{-120,	1481},
	{-110,	1469},
	{-100,	1456},
	{-90,	1444},
	{-80,	1430},
	{-70,	1417},
	{-60,	1404},
	{-50,	1390},
	{-40,	1376},
	{-30,	1361},
	{-20,	1347},
	{-10,	1332},
	{0,	1317},
	{10,	1301},
	{20,	1286},
	{30,	1270},
	{40,	1254},
	{50,	1238},
	{60,	1222},
	{70,	1206},
	{80,	1189},
	{90,	1173},
	{100,	1156},
	{110,	1139},
	{120,	1122},
	{130,	1105},
	{140,	1088},
	{150,	1071},
	{160,	1054},
	{170,	1036},
	{180,	1019},
	{190,	1002},
	{200,	985},
	{210,	968},
	{220,	950},
	{230,	933},
	{240,	916},
	{250,	900},
	{260,	883},
	{270,	866},
	{280,	849},
	{290,	833},
	{300,	817},
	{310,	800},
	{320,	784},
	{330,	768},
	{340,	753},
	{350,	737},
	{360,	722},
	{370,	706},
	{380,	691},
	{390,	677},
	{400,	662},
	{410,	648},
	{420,	634},
	{430,	620},
	{440,	606},
	{450,	592},
	{460,	579},
	{470,	566},
	{480,	553},
	{490,	540},
	{500,	528},
	{510,	516},
	{520,	504},
	{530,	492},
	{540,	481},
	{550,	470},
	{560,	459},
	{570,	448},
	{580,	437},
	{590,	427},
	{600,	417},
	{610,	407},
	{620,	397},
	{630,	388},
	{640,	379},
	{650,	370},
	{660,	361},
	{670,	352},
	{680,	344},
	{690,	335},
	{700,	327},
	{710,	320},
	{720,	312},
	{730,	304},
	{740,	297},
	{750,	290},
	{760,	283},
	{770,	276},
	{780,	270},
	{790,	263}
#else
	{-300,	1642},
	{-200,	1544},
	{-100,	1414},
@@ -134,6 +246,7 @@ static const struct qpnp_vadc_map_pt adcmap_btm_threshold[] = {
	{770,	213},
	{780,	208},
	{790,	203}
#endif
};

static const struct qpnp_vadc_map_pt adcmap_qrd_btm_threshold[] = {