rubenslte_battery_data.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. #if defined(CONFIG_MACH_RUBENSWIFI_OPEN)
  25. .RCOMP0 = 0x75,
  26. .RCOMP_charging = 0x75,
  27. .temp_cohot = -100,
  28. .temp_cocold = -3600,
  29. #else
  30. .RCOMP0 = 0x91,
  31. .RCOMP_charging = 0x91,
  32. .temp_cohot = -100,
  33. .temp_cocold = -3600,
  34. #endif
  35. .is_using_model_data = true,
  36. .type_str = "SDI",
  37. }
  38. };
  39. #define CAPACITY_MAX 1000
  40. #define CAPACITY_MAX_MARGIN 50
  41. #define CAPACITY_MIN 0
  42. #define TEMP_HIGH_THRESHOLD_EVENT 550
  43. #define TEMP_HIGH_RECOVERY_EVENT 460
  44. #define TEMP_LOW_THRESHOLD_EVENT (-50)
  45. #define TEMP_LOW_RECOVERY_EVENT 0
  46. #define TEMP_HIGH_THRESHOLD_NORMAL 550
  47. #define TEMP_HIGH_RECOVERY_NORMAL 460
  48. #define TEMP_LOW_THRESHOLD_NORMAL (-50)
  49. #define TEMP_LOW_RECOVERY_NORMAL 0
  50. #define TEMP_HIGH_THRESHOLD_LPM 550
  51. #define TEMP_HIGH_RECOVERY_LPM 460
  52. #define TEMP_LOW_THRESHOLD_LPM (-50)
  53. #define TEMP_LOW_RECOVERY_LPM 0
  54. static sec_bat_adc_table_data_t temp_table[] = {
  55. {25348, 900},
  56. {25804, 850},
  57. {26261, 800},
  58. {26717, 750},
  59. {27174, 700},
  60. {27630, 650},
  61. {28119, 600},
  62. {28716, 550},
  63. {29379, 500},
  64. {30051, 450},
  65. {30884, 400},
  66. {31955, 350},
  67. {32915, 300},
  68. {34013, 250},
  69. {35124, 200},
  70. {36159, 150},
  71. {37233, 100},
  72. {38286, 50},
  73. {39075, 0},
  74. {39866, -50},
  75. {40669, -100},
  76. {41184, -150},
  77. {41686, -200},
  78. };
  79. static sec_bat_adc_table_data_t chg_temp_table[] = {
  80. {0, 0},
  81. };
  82. #endif /* __SEC_BATTERY_DATA_H */