aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhongmin.son <hongmin.son@samsung.com>2010-10-15 18:30:21 -0700
committerArve Hjønnevåg <arve@android.com>2011-11-17 17:50:05 -0800
commit17907c24103b74780e45c53cc032307c4dd92156 (patch)
treef56f960778afaaf653a0c1d2200c290df4bc6b9a
parentd38aaec6a2d8943eb0fbd29aab6aed97872b53eb (diff)
downloadkernel_samsung_crespo-17907c24103b74780e45c53cc032307c4dd92156.zip
kernel_samsung_crespo-17907c24103b74780e45c53cc032307c4dd92156.tar.gz
kernel_samsung_crespo-17907c24103b74780e45c53cc032307c4dd92156.tar.bz2
S5PC11X: BATTERY: Add battery ADC table in board file
Add battery ADC table in board file Change-Id: I7a88cc7d068ae9c2e01f006597fea0f4e95835c1 Signed-off-by: hongmin.son <hongmin.son@samsung.com>
-rw-r--r--arch/arm/mach-s5pv210/mach-herring.c86
1 files changed, 86 insertions, 0 deletions
diff --git a/arch/arm/mach-s5pv210/mach-herring.c b/arch/arm/mach-s5pv210/mach-herring.c
index 60095bd..e6a3a9b 100644
--- a/arch/arm/mach-s5pv210/mach-herring.c
+++ b/arch/arm/mach-s5pv210/mach-herring.c
@@ -701,6 +701,90 @@ static struct max8998_regulator_data herring_regulators[] = {
{ MAX8998_BUCK4, &herring_buck4_data },
};
+static struct max8998_adc_table_data temper_table[] = {
+ /* ADC, Temperature (C/10) */
+ { 222, 700 },
+ { 230, 690 },
+ { 238, 680 },
+ { 245, 670 },
+ { 253, 660 },
+ { 261, 650 },
+ { 274, 640 },
+ { 287, 630 },
+ { 300, 620 },
+ { 314, 610 },
+ { 327, 600 },
+ { 339, 590 },
+ { 350, 580 },
+ { 362, 570 },
+ { 374, 560 },
+ { 386, 550 },
+ { 401, 540 },
+ { 415, 530 },
+ { 430, 520 },
+ { 444, 510 },
+ { 459, 500 },
+ { 477, 490 },
+ { 495, 480 },
+ { 513, 470 },
+ { 526, 460 },
+ { 539, 450 },
+ { 559, 440 },
+ { 580, 430 },
+ { 600, 420 },
+ { 618, 410 },
+ { 642, 400 },
+ { 649, 390 },
+ { 674, 380 },
+ { 695, 370 },
+ { 717, 360 },
+ { 739, 350 },
+ { 760, 340 },
+ { 782, 330 },
+ { 803, 320 },
+ { 825, 310 },
+ { 847, 300 },
+ { 870, 290 },
+ { 894, 280 },
+ { 918, 270 },
+ { 942, 260 },
+ { 966, 250 },
+ { 990, 240 },
+ { 1014, 230 },
+ { 1038, 220 },
+ { 1062, 210 },
+ { 1086, 200 },
+ { 1110, 190 },
+ { 1134, 180 },
+ { 1158, 170 },
+ { 1182, 160 },
+ { 1206, 150 },
+ { 1228, 140 },
+ { 1251, 130 },
+ { 1274, 120 },
+ { 1297, 110 },
+ { 1320, 100 },
+ { 1341, 90 },
+ { 1362, 80 },
+ { 1384, 70 },
+ { 1405, 60 },
+ { 1427, 50 },
+ { 1450, 40 },
+ { 1474, 30 },
+ { 1498, 20 },
+ { 1514, 10 },
+ { 1533, 0 },
+ { 1544, (-10) },
+ { 1567, (-20) },
+ { 1585, (-30) },
+ { 1604, (-40) },
+ { 1623, (-50) },
+ { 1641, (-60) },
+ { 1659, (-70) },
+ { 1678, (-80) },
+ { 1697, (-90) },
+ { 1715, (-100) },
+};
struct max8998_charger_callbacks *callbacks;
static enum cable_type_t set_cable_status;
@@ -716,6 +800,8 @@ static void max8998_charger_register_callbacks(
static struct max8998_charger_data herring_charger = {
.register_callbacks = &max8998_charger_register_callbacks,
+ .adc_table = temper_table,
+ .adc_array_size = ARRAY_SIZE(temper_table),
};
static struct max8998_platform_data max8998_pdata = {