patek_battery_data.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. {
  23. .RCOMP0 = 0x6B,
  24. .RCOMP_charging = 0x6B,
  25. .temp_cohot = -1175,
  26. .temp_cocold = -5675,
  27. .is_using_model_data = true,
  28. .type_str = "SDI",
  29. }
  30. };
  31. #define CAPACITY_MAX 990
  32. #define CAPACITY_MAX_MARGIN 50
  33. #define CAPACITY_MIN -7
  34. static sec_bat_adc_table_data_t temp_table[] = {
  35. {25970, 900},
  36. {26193, 850},
  37. {26454, 800},
  38. {26757, 750},
  39. {27098, 700},
  40. {27512, 650},
  41. {27984, 600},
  42. {28557, 550},
  43. {29213, 500},
  44. {29792, 460},
  45. {29950, 450},
  46. {30805, 400},
  47. {31676, 350},
  48. {32685, 300},
  49. {33727, 250},
  50. {34793, 200},
  51. {35848, 150},
  52. {36950, 100},
  53. {37977, 50},
  54. {38830, 0},
  55. {38970, -10},
  56. {39173, -20},
  57. {39322, -30},
  58. {39637, -50},
  59. {40366, -100},
  60. {40964, -150},
  61. {41461, -200},
  62. {41830, -250},
  63. {42074, -300},
  64. };
  65. static sec_bat_adc_table_data_t chg_temp_table[] = {
  66. {0, 0},
  67. };
  68. #define TEMP_HIGHLIMIT_THRESHOLD_EVENT 800
  69. #define TEMP_HIGHLIMIT_RECOVERY_EVENT 750
  70. #define TEMP_HIGHLIMIT_THRESHOLD_NORMAL 800
  71. #define TEMP_HIGHLIMIT_RECOVERY_NORMAL 750
  72. #define TEMP_HIGHLIMIT_THRESHOLD_LPM 800
  73. #define TEMP_HIGHLIMIT_RECOVERY_LPM 750
  74. #define TEMP_HIGH_THRESHOLD_EVENT 600
  75. #define TEMP_HIGH_RECOVERY_EVENT 460
  76. #define TEMP_LOW_THRESHOLD_EVENT -50
  77. #define TEMP_LOW_RECOVERY_EVENT 0
  78. #define TEMP_HIGH_THRESHOLD_NORMAL 600
  79. #define TEMP_HIGH_RECOVERY_NORMAL 460
  80. #define TEMP_LOW_THRESHOLD_NORMAL -50
  81. #define TEMP_LOW_RECOVERY_NORMAL 0
  82. #define TEMP_HIGH_THRESHOLD_LPM 600
  83. #define TEMP_HIGH_RECOVERY_LPM 460
  84. #define TEMP_LOW_THRESHOLD_LPM -50
  85. #define TEMP_LOW_RECOVERY_LPM 0
  86. #endif /* __SEC_BATTERY_DATA_H */