aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-exynos/midas-thermistor.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-exynos/midas-thermistor.c')
-rw-r--r--arch/arm/mach-exynos/midas-thermistor.c132
1 files changed, 132 insertions, 0 deletions
diff --git a/arch/arm/mach-exynos/midas-thermistor.c b/arch/arm/mach-exynos/midas-thermistor.c
index 27c7e05..0618978 100644
--- a/arch/arm/mach-exynos/midas-thermistor.c
+++ b/arch/arm/mach-exynos/midas-thermistor.c
@@ -727,6 +727,111 @@ static struct sec_therm_adc_table temper_table_ap[] = {
{762, 310},
{784, 300},
};
+#elif defined(CONFIG_MACH_KONA)
+static struct sec_therm_adc_table temper_table_ap[] = {
+ { 174, 800 },
+ { 185, 790 },
+ { 196, 780 },
+ { 208, 770 },
+ { 219, 760 },
+ { 228, 750 },
+ { 235, 740 },
+ { 242, 730 },
+ { 250, 720 },
+ { 258, 710 },
+ { 268, 700 },
+ { 275, 690 },
+ { 282, 680 },
+ { 290, 670 },
+ { 297, 660 },
+ { 304, 650 },
+ { 312, 640 },
+ { 320, 630 },
+ { 328, 620 },
+ { 336, 610 },
+ { 344, 600 },
+ { 356, 590 },
+ { 368, 580 },
+ { 380, 570 },
+ { 393, 560 },
+ { 407, 550 },
+ { 420, 540 },
+ { 433, 530 },
+ { 447, 520 },
+ { 460, 510 },
+ { 473, 500 },
+ { 489, 490 },
+ { 505, 480 },
+ { 521, 470 },
+ { 537, 460 },
+ { 552, 450 },
+ { 567, 440 },
+ { 583, 430 },
+ { 598, 420 },
+ { 613, 410 },
+ { 628, 400 },
+ { 649, 390 },
+ { 670, 380 },
+ { 792, 370 },
+ { 715, 360 },
+ { 738, 350 },
+ { 759, 340 },
+ { 780, 330 },
+ { 800, 320 },
+ { 821, 310 },
+ { 842, 300 },
+ { 867, 290 },
+ { 893, 280 },
+ { 928, 270 },
+ { 949, 260 },
+ { 969, 250 },
+ { 992, 240 },
+ { 1015, 230 },
+ { 1038, 220 },
+ { 1061, 210 },
+ { 1085, 200 },
+ { 1110, 190 },
+ { 1138, 180 },
+ { 1164, 170 },
+ { 1189, 160 },
+ { 1214, 150 },
+ { 1230, 140 },
+ { 1257, 130 },
+ { 1284, 120 },
+ { 1314, 110 },
+ { 1343, 100 },
+ { 1366, 90 },
+ { 1388, 80 },
+ { 1410, 70 },
+ { 1432, 60 },
+ { 1454, 50 },
+ { 1475, 40 },
+ { 1496, 30 },
+ { 1516, 20 },
+ { 1536, 10 },
+ { 1556, 0 },
+ { 1576, -10 },
+ { 1595, -20 },
+ { 1613, -30 },
+ { 1631, -40 },
+ { 1649, -50 },
+ { 1666, -60 },
+ { 1683, -70 },
+ { 1699, -80 },
+ { 1714, -90 },
+ { 1730, -100 },
+ { 1744, -110 },
+ { 1759, -120 },
+ { 1773, -130 },
+ { 1786, -140 },
+ { 1799, -150 },
+ { 1811, -160 },
+ { 1823, -170 },
+ { 1835, -180 },
+ { 1846, -190 },
+ { 1856, -200 },
+};
+
#else
static struct sec_therm_adc_table temper_table_ap[] = {
{196, 700},
@@ -840,6 +945,33 @@ static int get_midas_siop_level(int temp)
if (level > prev_level)
level = prev_level;
}
+#elif defined(CONFIG_MACH_KONA)
+ if (temp > prev_temp) {
+ if (temp >= 720)
+ level = 4;
+ else if (temp >= 700)
+ level = 3;
+ else if (temp >= 680)
+ level = 2;
+ else if (temp >= 660)
+ level = 1;
+ else
+ level = 0;
+ } else {
+ if (temp < 640)
+ level = 0;
+ else if (temp < 660)
+ level = 1;
+ else if (temp < 680)
+ level = 2;
+ else if (temp < 700)
+ level = 3;
+ else
+ level = 4;
+
+ if (level > prev_level)
+ level = prev_level;
+ }
#elif defined(CONFIG_MACH_T0)
if (temp > prev_temp) {
if (temp >= 620)