jsglte_battery_data.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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 = 0x6A,
  24. .RCOMP_charging = 0x7C,
  25. .temp_cohot = -700,
  26. .temp_cocold = -4875,
  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. {25400, 900},
  36. {25525, 850},
  37. {25660, 800},
  38. {25838, 750},
  39. {25991, 700},
  40. {26242, 650},
  41. {26549, 600},
  42. {26878, 550},
  43. {27278, 500},
  44. {27763, 450},
  45. {28358, 400},
  46. {29026, 350},
  47. {29807, 300},
  48. {30684, 250},
  49. {31671, 200},
  50. {32851, 150},
  51. {33976, 100},
  52. {35128, 50},
  53. {35341, 40},
  54. {35602, 30},
  55. {35823, 20},
  56. {36059, 10},
  57. {36302, 0},
  58. {36488, -10},
  59. {36909, -30},
  60. {37117, -40},
  61. {37311, -50},
  62. {38380, -100},
  63. {39335, -150},
  64. {40179, -200},
  65. };
  66. static sec_bat_adc_table_data_t chg_temp_table[] = {
  67. {0, 0},
  68. };
  69. #define TEMP_HIGH_THRESHOLD_EVENT 600
  70. #define TEMP_HIGH_RECOVERY_EVENT 400
  71. #define TEMP_LOW_THRESHOLD_EVENT -45
  72. #define TEMP_LOW_RECOVERY_EVENT 0
  73. #define TEMP_HIGH_THRESHOLD_NORMAL 600
  74. #define TEMP_HIGH_RECOVERY_NORMAL 400
  75. #define TEMP_LOW_THRESHOLD_NORMAL -45
  76. #define TEMP_LOW_RECOVERY_NORMAL 0
  77. #define TEMP_HIGH_THRESHOLD_LPM 600
  78. #define TEMP_HIGH_RECOVERY_LPM 400
  79. #define TEMP_LOW_THRESHOLD_LPM -45
  80. #define TEMP_LOW_RECOVERY_LPM 0
  81. #endif /* __SEC_BATTERY_DATA_H */