| /* |
| * charging_temperature_data.h |
| * |
| * header file supporting temperature functions for Samsung device |
| * |
| * COPYRIGHT(C) Samsung Electronics Co., Ltd. 2012-2017 All Right Reserved. |
| * |
| * This program is free software; you can redistribute it and/or modify |
| * it under the terms of the GNU General Public License as published by |
| * the Free Software Foundation; either version 2 of the License, or |
| * (at your option) any later version. |
| * |
| * This program is distributed in the hope that it will be useful, but WITHOUT |
| * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
| * more details. |
| * |
| * You should have received a copy of the GNU General Public License along |
| * with this program; if not, write to the Free Software Foundation, Inc., |
| * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| */ |
| #include <linux/mfd/pm8xxx/pm8xxx-adc.h> |
| #ifndef __CHARGING_TEMPERATURE_DATA_H |
| #define __CHARGING_TEMPERATURE_DATA_H __FILE__ |
| |
| #define DEFAULT_HIGH_BLOCK_TEMP 650 |
| #define DEFAULT_HIGH_RECOVER_TEMP 430 |
| #define DEFAULT_LOW_BLOCK_TEMP -50 |
| #define DEFAULT_LOW_RECOVER_TEMP 0 |
| |
| #if defined(CONFIG_MACH_JAGUAR) |
| static const struct pm8xxx_adc_map_pt temp_table[] = { |
| {26250, 800}, |
| {26583, 750}, |
| {26979, 700}, |
| {27429, 650}, |
| {27941, 600}, |
| {28523, 550}, |
| {29170, 500}, |
| {29875, 450}, |
| {30684, 400}, |
| {31705, 350}, |
| {32726, 300}, |
| {33747, 250}, |
| {34768, 200}, |
| {35789, 150}, |
| {36810, 100}, |
| {37837, 50}, |
| {38710, 0}, |
| {39539, -50}, |
| {40269, -100}, |
| {41099, -150}, |
| {41859, -200}, |
| }; |
| |
| #elif defined(CONFIG_MACH_M2_ATT) |
| static const struct pm8xxx_adc_map_pt temp_table[] = { |
| {26465, 800}, |
| {26749, 750}, |
| {27017, 700}, |
| {27414, 650}, |
| {27870, 600}, |
| {28424, 550}, |
| {29350, 500}, |
| {29831, 450}, |
| {30595, 400}, |
| {31561, 350}, |
| {32603, 300}, |
| {33647, 250}, |
| {34655, 200}, |
| {35741, 150}, |
| {36747, 100}, |
| {37755, 50}, |
| {38605, 0}, |
| {39412, -50}, |
| {40294, -100}, |
| {40845, -150}, |
| {41353, -200}, |
| }; |
| |
| #elif defined(CONFIG_MACH_M2_SPR) |
| static const struct pm8xxx_adc_map_pt temp_table[] = { |
| {26385, 800}, |
| {26787, 750}, |
| {27136, 700}, |
| {27540, 650}, |
| {28031, 600}, |
| {28601, 550}, |
| {29255, 500}, |
| {29568, 450}, |
| {30967, 400}, |
| {31880, 350}, |
| {32846, 300}, |
| {33694, 250}, |
| {34771, 200}, |
| {35890, 150}, |
| {37045, 100}, |
| {38144, 50}, |
| {39097, 0}, |
| {39885, -50}, |
| {40595, -100}, |
| {41190, -150}, |
| {41954, -200}, |
| }; |
| |
| #elif defined(CONFIG_MACH_M2_VZW) |
| static const struct pm8xxx_adc_map_pt temp_table[] = { |
| {26537, 800}, |
| {26849, 750}, |
| {27211, 700}, |
| {27627, 650}, |
| {28117, 600}, |
| {28713, 550}, |
| {29403, 500}, |
| {30205, 450}, |
| {31075, 400}, |
| {32026, 350}, |
| {33014, 300}, |
| {34117, 250}, |
| {35115, 200}, |
| {36121, 150}, |
| {37212, 100}, |
| {38190, 50}, |
| {39006, 0}, |
| {39813, -50}, |
| {40490, -100}, |
| {41084, -150}, |
| {41537, -200}, |
| }; |
| |
| #elif defined(CONFIG_MACH_GOGH) || defined(CONFIG_MACH_INFINITE) |
| static const struct pm8xxx_adc_map_pt temp_table[] = { |
| {26478, 800}, |
| {27123, 700}, |
| {27985, 600}, |
| {29180, 500}, |
| {30704, 400}, |
| {32510, 300}, |
| {34595, 200}, |
| {36722, 100}, |
| {38530, 0}, |
| {40142, -100}, |
| {41321, -200}, |
| }; |
| |
| #elif defined(CONFIG_MACH_AEGIS2) |
| static const struct pm8xxx_adc_map_pt temp_table[] = { |
| {27401, 650}, |
| {27790, 600}, |
| {28378, 550}, |
| {29190, 500}, |
| {29770, 450}, |
| {30676, 400}, |
| {31446, 350}, |
| {32493, 300}, |
| {33608, 250}, |
| {34631, 200}, |
| {35773, 150}, |
| {36814, 100}, |
| {37778, 50}, |
| {38570, 0}, |
| {39425, -50}, |
| {40253, -100}, |
| {40886, -150}, |
| {41328, -200}, |
| {41656, -250}, |
| }; |
| |
| #else |
| static const struct pm8xxx_adc_map_pt temp_table[] = { |
| {26250, 800}, |
| {26583, 750}, |
| {26979, 700}, |
| {27429, 650}, |
| {27941, 600}, |
| {28523, 550}, |
| {29170, 500}, |
| {29875, 450}, |
| {30684, 400}, |
| {31705, 350}, |
| {32726, 300}, |
| {33747, 250}, |
| {34768, 200}, |
| {35789, 150}, |
| {36810, 100}, |
| {37837, 50}, |
| {38710, 0}, |
| {39539, -50}, |
| {40269, -100}, |
| {41099, -150}, |
| {41859, -200}, |
| }; |
| #endif |
| |
| #endif /* __CHARGING_TEMPERATURE_DATA_H */ |