aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorMinsu Kim <minsu78.kim@samsung.com>2010-09-23 22:05:53 -0700
committerArve Hjønnevåg <arve@android.com>2011-11-17 17:46:34 -0800
commit48fe4e6a634dd8570ee0c6075d08631ee094f4b5 (patch)
tree072ab256c6b14163c565088a5dfec3e7db5db190 /drivers/power
parent40b721b6677142e43fd06ee682d6fe095efa50a6 (diff)
downloadkernel_samsung_aries-48fe4e6a634dd8570ee0c6075d08631ee094f4b5.zip
kernel_samsung_aries-48fe4e6a634dd8570ee0c6075d08631ee094f4b5.tar.gz
kernel_samsung_aries-48fe4e6a634dd8570ee0c6075d08631ee094f4b5.tar.bz2
S5PC11X: BATTERY: apply temperature adc table measured by HW
Change-Id: I1bd9a654c94cc6c396367dea8a48faf9b8fa0cb0 Signed-off-by: Minsu Kim <minsu78.kim@samsung.com>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/s5pc110_battery.h156
1 files changed, 78 insertions, 78 deletions
diff --git a/drivers/power/s5pc110_battery.h b/drivers/power/s5pc110_battery.h
index 1bb7247..c495592 100644
--- a/drivers/power/s5pc110_battery.h
+++ b/drivers/power/s5pc110_battery.h
@@ -35,86 +35,86 @@
const int temper_table[][2] = {
/* ADC, Temperature (C/10) */
{ 1715, (-100) },
- { 1691, (-90) },
- { 1669, (-80) },
- { 1648, (-70) },
- { 1631, (-60) },
- { 1617, (-50) },
- { 1591, (-40) },
- { 1565, (-30) },
- { 1539, (-20) },
- { 1513, (-10) },
- { 1489, 0 },
- { 1465, 10 },
- { 1441, 20 },
- { 1417, 30 },
- { 1394, 40 },
- { 1371, 50 },
- { 1359, 60 },
- { 1340, 70 },
- { 1321, 80 },
- { 1302, 90 },
- { 1288, 100 },
- { 1266, 110 },
- { 1245, 120 },
- { 1225, 130 },
- { 1206, 140 },
- { 1188, 150 },
- { 1164, 160 },
- { 1141, 170 },
- { 1119, 180 },
- { 1098, 190 },
- { 1078, 200 },
- { 1052, 210 },
- { 1027, 220 },
- { 1003, 230 },
- { 980, 240 },
- { 958, 250 },
- { 933, 260 },
- { 909, 270 },
- { 887, 280 },
- { 866, 290 },
- { 845, 300 },
- { 821, 310 },
- { 799, 320 },
- { 778, 330 },
- { 758, 340 },
+ { 1697, (-90) },
+ { 1678, (-80) },
+ { 1659, (-70) },
+ { 1641, (-60) },
+ { 1623, (-50) },
+ { 1604, (-40) },
+ { 1585, (-30) },
+ { 1567, (-20) },
+ { 1544, (-10) },
+ { 1533, 0 },
+ { 1514, 10 },
+ { 1498, 20 },
+ { 1474, 30 },
+ { 1450, 40 },
+ { 1427, 50 },
+ { 1405, 60 },
+ { 1384, 70 },
+ { 1362, 80 },
+ { 1341, 90 },
+ { 1320, 100 },
+ { 1297, 110 },
+ { 1274, 120 },
+ { 1251, 130 },
+ { 1228, 140 },
+ { 1206, 150 },
+ { 1182, 160 },
+ { 1158, 170 },
+ { 1134, 180 },
+ { 1110, 190 },
+ { 1086, 200 },
+ { 1062, 210 },
+ { 1038, 220 },
+ { 1014, 230 },
+ { 990, 240 },
+ { 966, 250 },
+ { 942, 260 },
+ { 918, 270 },
+ { 894, 280 },
+ { 870, 290 },
+ { 847, 300 },
+ { 825, 310 },
+ { 803, 320 },
+ { 782, 330 },
+ { 760, 340 },
{ 739, 350 },
- { 715, 360 },
- { 692, 370 },
- { 671, 380 },
- { 653, 390 },
- { 637, 400 },
- { 616, 410 },
- { 596, 420 },
- { 577, 430 },
- { 558, 440 },
+ { 717, 360 },
+ { 695, 370 },
+ { 674, 380 },
+ { 649, 390 },
+ { 642, 400 },
+ { 618, 410 },
+ { 600, 420 },
+ { 580, 430 },
+ { 559, 440 },
{ 539, 450 },
- { 519, 460 },
- { 502, 470 },
- { 486, 480 },
- { 470, 490 },
- { 454, 500 },
- { 440, 510 },
- { 426, 520 },
- { 412, 530 },
- { 398, 540 },
- { 385, 550 },
- { 371, 560 },
- { 357, 570 },
- { 343, 580 },
- { 329, 590 },
- { 316, 600 },
- { 300, 610 },
- { 285, 620 },
- { 270, 630 },
- { 366, 640 },
- { 264, 650 },
- { 253, 650 },
- { 244, 650 },
- { 235, 650 },
- { 227, 650 },
- { 219, 700 },
+ { 526, 460 },
+ { 513, 470 },
+ { 495, 480 },
+ { 477, 490 },
+ { 459, 500 },
+ { 444, 510 },
+ { 430, 520 },
+ { 415, 530 },
+ { 401, 540 },
+ { 386, 550 },
+ { 374, 560 },
+ { 362, 570 },
+ { 350, 580 },
+ { 339, 590 },
+ { 327, 600 },
+ { 314, 610 },
+ { 300, 620 },
+ { 287, 630 },
+ { 274, 640 },
+ { 261, 650 },
+ { 253, 660 },
+ { 245, 670 },
+ { 238, 680 },
+ { 230, 690 },
+ { 222, 700 },
};
#define TEMP_IDX_ZERO_CELSIUS 10