klimt_battery_data.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. /*
  2. * battery_data.h
  3. * Samsung Mobile Battery data Header
  4. *
  5. *
  6. * Copyright (C) 2012 Samsung Electronics, Inc.
  7. *
  8. *
  9. * This software is licensed under the terms of the GNU General Public
  10. * License version 2, as published by the Free Software Foundation, and
  11. * may be copied, distributed, and modified under those terms.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. */
  19. #ifndef __SEC_BATTERY_DATA_H
  20. #define __SEC_BATTERY_DATA_H __FILE__
  21. static struct battery_data_t samsung_battery_data[] = {
  22. /* SDI battery data (High voltage 4.35V) */
  23. {
  24. .Capacity = 0x2710, /* KLIMT : 5000mAh */
  25. .low_battery_comp_voltage = 3500,
  26. .low_battery_table = {
  27. /* range, slope, offset */
  28. {-5000, 0, 0}, /* dummy for top limit */
  29. {-1250, 0, 3320},
  30. {-750, 97, 3451},
  31. {-100, 96, 3461},
  32. {0, 0, 3456},
  33. },
  34. .temp_adjust_table = {
  35. /* range, slope, offset */
  36. {47000, 122, 8950},
  37. {60000, 200, 51000},
  38. {100000, 0, 0}, /* dummy for top limit */
  39. },
  40. .type_str = "SDI",
  41. }
  42. };
  43. #define CAPACITY_MAX 992
  44. #define CAPACITY_MAX_MARGIN 50
  45. #define CAPACITY_MIN 0
  46. static sec_bat_adc_table_data_t temp_table[] = {
  47. {1100, 1100},
  48. {695, 900},
  49. {678, 850},
  50. {661, 800},
  51. {641, 750},
  52. {619, 700},
  53. {593, 650},
  54. {562, 600},
  55. {529, 550},
  56. {495, 500},
  57. {454, 450},
  58. {412, 400},
  59. {367, 350},
  60. {318, 300},
  61. {267, 250},
  62. {213, 200},
  63. {158, 150},
  64. {105, 100},
  65. {53, 50},
  66. {6, 0},
  67. {-40, -50},
  68. {-71, -100},
  69. {-120, -150},
  70. {-155, -200},
  71. {-350, -400},
  72. };
  73. static sec_bat_adc_table_data_t chg_temp_table[] = {
  74. {0, 0},
  75. };
  76. #define TEMP_HIGH_THRESHOLD_EVENT 540
  77. #define TEMP_HIGH_RECOVERY_EVENT 470
  78. #define TEMP_LOW_THRESHOLD_EVENT -50
  79. #define TEMP_LOW_RECOVERY_EVENT 0
  80. #define TEMP_HIGH_THRESHOLD_NORMAL 540
  81. #define TEMP_HIGH_RECOVERY_NORMAL 470
  82. #define TEMP_LOW_THRESHOLD_NORMAL -50
  83. #define TEMP_LOW_RECOVERY_NORMAL 0
  84. #define TEMP_HIGH_THRESHOLD_LPM 540
  85. #define TEMP_HIGH_RECOVERY_LPM 480
  86. #define TEMP_LOW_THRESHOLD_LPM -40
  87. #define TEMP_LOW_RECOVERY_LPM 0
  88. #if defined(CONFIG_BATTERY_SWELLING)
  89. #define BATT_SWELLING_HIGH_TEMP_BLOCK 450
  90. #define BATT_SWELLING_HIGH_TEMP_RECOV 400
  91. #define BATT_SWELLING_LOW_TEMP_BLOCK 100
  92. #define BATT_SWELLING_LOW_TEMP_RECOV 150
  93. #define BATT_SWELLING_HIGH_CHG_CURRENT 0
  94. #define BATT_SWELLING_LOW_CHG_CURRENT 0
  95. #define BATT_SWELLING_FULL_CHECK_CURRENT_2ND 0
  96. #define BATT_SWELLING_DROP_FLOAT_VOLTAGE 4200
  97. #define BATT_SWELLING_HIGH_RECHG_VOLTAGE 4150
  98. #define BATT_SWELLING_LOW_RECHG_VOLTAGE 4050
  99. #endif
  100. #endif /* __SEC_BATTERY_DATA_H */