123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 |
- /*
- * battery_data.h
- * Samsung Mobile Battery data Header
- *
- *
- * Copyright (C) 2012 Samsung Electronics, Inc.
- *
- *
- * This software is licensed under the terms of the GNU General Public
- * License version 2, as published by the Free Software Foundation, and
- * may be copied, distributed, and modified under those terms.
- *
- * 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.
- *
- */
- #ifndef __SEC_BATTERY_DATA_H
- #define __SEC_BATTERY_DATA_H __FILE__
- #if defined(CONFIG_MACH_SLTE_CMCC) || defined(CONFIG_MACH_SLTE_CTC) || \
- defined(CONFIG_MACH_SLTE_CU) || defined(CONFIG_MACH_SLTE_TD)
- static struct battery_data_t samsung_battery_data[] = {
- {
- .RCOMP0 = 0x65,
- .RCOMP_charging = 0x65,
- .temp_cohot = -1400,
- .temp_cocold = -4700,
- .is_using_model_data = true,
- .type_str = "SDI",
- }
- };
- #else
- static struct battery_data_t samsung_battery_data[] = {
- {
- .RCOMP0 = 0x65,
- .RCOMP_charging = 0x65,
- .temp_cohot = -1400,
- .temp_cocold = -4700,
- .is_using_model_data = true,
- .type_str = "SDI",
- }
- };
- #endif
- #define CAPACITY_MAX 990
- #define CAPACITY_MAX_MARGIN 50
- #define CAPACITY_MIN 0
- #if defined(CONFIG_MACH_SLTE_CMCC) || defined(CONFIG_MACH_SLTE_CTC) || \
- defined(CONFIG_MACH_SLTE_CU) || defined(CONFIG_MACH_SLTE_TD)
- static sec_bat_adc_table_data_t temp_table[] = {
- {25859, 900},
- {25920, 850},
- {26006, 800},
- {26266, 750},
- {26500, 700},
- {27030, 650},
- {28150, 600},
- {28600, 550},
- {29121, 500},
- {29863, 450},
- {30692, 400},
- {31716, 350},
- {32619, 300},
- {33703, 250},
- {34827, 200},
- {35879, 150},
- {37055, 100},
- {38099, 50},
- {38997, 0},
- {39897, -50},
- {40539, -100},
- {41289, -150},
- {41762, -200},
- {42141, -250},
- {42437, -300},
- };
- #else
- static sec_bat_adc_table_data_t temp_table[] = {
- {25859, 900},
- {26080, 850},
- {26366, 800},
- {26686, 750},
- {27030, 700},
- {27434, 650},
- {28160, 600},
- {28502, 570},
- {28720, 550},
- {29117, 520},
- {29398, 500},
- {29843, 470},
- {30135, 450},
- {30692, 400},
- {31716, 350},
- {32619, 300},
- {33703, 250},
- {34827, 200},
- {35879, 150},
- {37055, 100},
- {38099, 50},
- {38997, 0},
- {39897, -50},
- {40593, -100},
- {41289, -150},
- {41762, -200},
- {42141, -250},
- {42437, -300},
- };
- #endif
- static sec_bat_adc_table_data_t chg_temp_table[] = {
- {0, 0},
- };
- #define TEMP_HIGHLIMIT_THRESHOLD_EVENT 800
- #define TEMP_HIGHLIMIT_RECOVERY_EVENT 750
- #define TEMP_HIGHLIMIT_THRESHOLD_NORMAL 800
- #define TEMP_HIGHLIMIT_RECOVERY_NORMAL 750
- #define TEMP_HIGHLIMIT_THRESHOLD_LPM 800
- #define TEMP_HIGHLIMIT_RECOVERY_LPM 750
- #if defined(CONFIG_MACH_SLTE_CMCC) || defined(CONFIG_MACH_SLTE_CTC) || \
- defined(CONFIG_MACH_SLTE_CU) || defined(CONFIG_MACH_SLTE_TD)
- #define TEMP_HIGH_THRESHOLD_EVENT 620
- #define TEMP_HIGH_RECOVERY_EVENT 470
- #define TEMP_LOW_THRESHOLD_EVENT -30
- #define TEMP_LOW_RECOVERY_EVENT 10
- #define TEMP_HIGH_THRESHOLD_NORMAL 600
- #define TEMP_HIGH_RECOVERY_NORMAL 460
- #define TEMP_LOW_THRESHOLD_NORMAL -30
- #define TEMP_LOW_RECOVERY_NORMAL 10
- #define TEMP_HIGH_THRESHOLD_LPM 600
- #define TEMP_HIGH_RECOVERY_LPM 460
- #define TEMP_LOW_THRESHOLD_LPM -40
- #define TEMP_LOW_RECOVERY_LPM 0
- #else
- #define TEMP_HIGH_THRESHOLD_EVENT 620
- #define TEMP_HIGH_RECOVERY_EVENT 465
- #define TEMP_LOW_THRESHOLD_EVENT -30
- #define TEMP_LOW_RECOVERY_EVENT 10
- #define TEMP_HIGH_THRESHOLD_NORMAL 540
- #define TEMP_HIGH_RECOVERY_NORMAL 465
- #define TEMP_LOW_THRESHOLD_NORMAL -30
- #define TEMP_LOW_RECOVERY_NORMAL 10
- #define TEMP_HIGH_THRESHOLD_LPM 530
- #define TEMP_HIGH_RECOVERY_LPM 490
- #define TEMP_LOW_THRESHOLD_LPM -40
- #define TEMP_LOW_RECOVERY_LPM 0
- #endif
- #if defined(CONFIG_BATTERY_SWELLING)
- #define BATT_SWELLING_HIGH_TEMP_BLOCK 450
- #define BATT_SWELLING_HIGH_TEMP_RECOV 400
- #define BATT_SWELLING_LOW_TEMP_BLOCK 100
- #define BATT_SWELLING_LOW_TEMP_RECOV 150
- #define BATT_SWELLING_HIGH_CHG_CURRENT 0
- #define BATT_SWELLING_LOW_CHG_CURRENT 0
- #define BATT_SWELLING_DROP_FLOAT_VOLTAGE 4200
- #define BATT_SWELLING_HIGH_RECHG_VOLTAGE 4150
- #define BATT_SWELLING_LOW_RECHG_VOLTAGE 4050
- #endif
- #endif /* __SEC_BATTERY_DATA_H */
|