chagallkdi_battery_data.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. .RCOMP0 = 0x5D,
  25. .RCOMP_charging = 0x5D,
  26. .temp_cohot = -175,
  27. .temp_cocold = -5825,
  28. .is_using_model_data = true,
  29. .type_str = "SDI",
  30. }
  31. };
  32. #define CAPACITY_MAX 992
  33. #define CAPACITY_MAX_MARGIN 50
  34. #define CAPACITY_MIN 0
  35. static sec_bat_adc_table_data_t temp_table[] = {
  36. {1100, 350},
  37. {668, 350},
  38. {657, 350},
  39. {613, 350},
  40. {556, 325},
  41. {486, 325},
  42. {402, 325},
  43. {306, 300},
  44. {199, 300},
  45. {90, 300},
  46. {-3, 300},
  47. {-93, 290},
  48. {-161, 290},
  49. {-350, 290},
  50. };
  51. static sec_bat_adc_table_data_t chg_temp_table[] = {
  52. {0, 0},
  53. };
  54. #define TEMP_HIGH_THRESHOLD_EVENT 567
  55. #define TEMP_HIGH_RECOVERY_EVENT 480
  56. #define TEMP_LOW_THRESHOLD_EVENT -50
  57. #define TEMP_LOW_RECOVERY_EVENT 0
  58. #define TEMP_HIGH_THRESHOLD_NORMAL 567
  59. #define TEMP_HIGH_RECOVERY_NORMAL 480
  60. #define TEMP_LOW_THRESHOLD_NORMAL -50
  61. #define TEMP_LOW_RECOVERY_NORMAL 0
  62. #define TEMP_HIGH_THRESHOLD_LPM 520
  63. #define TEMP_HIGH_RECOVERY_LPM 472
  64. #define TEMP_LOW_THRESHOLD_LPM -20
  65. #define TEMP_LOW_RECOVERY_LPM 0
  66. #endif /* __SEC_BATTERY_DATA_H */