exynos_tmu_data.c 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /*
  2. * exynos_tmu_data.c - Samsung EXYNOS tmu data file
  3. *
  4. * Copyright (C) 2013 Samsung Electronics
  5. * Amit Daniel Kachhap <amit.daniel@samsung.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  20. *
  21. */
  22. #include "exynos_thermal_common.h"
  23. #include "exynos_tmu.h"
  24. #include "exynos_tmu_data.h"
  25. #if defined(CONFIG_CPU_EXYNOS4210)
  26. struct exynos_tmu_platform_data const exynos4210_default_tmu_data = {
  27. .threshold = 80,
  28. .trigger_levels[0] = 5,
  29. .trigger_levels[1] = 20,
  30. .trigger_levels[2] = 30,
  31. .trigger_level0_en = 1,
  32. .trigger_level1_en = 1,
  33. .trigger_level2_en = 1,
  34. .trigger_level3_en = 0,
  35. .gain = 15,
  36. .reference_voltage = 7,
  37. .cal_type = TYPE_ONE_POINT_TRIMMING,
  38. .freq_tab[0] = {
  39. .freq_clip_max = 800 * 1000,
  40. .temp_level = 85,
  41. },
  42. .freq_tab[1] = {
  43. .freq_clip_max = 200 * 1000,
  44. .temp_level = 100,
  45. },
  46. .freq_tab_count = 2,
  47. .type = SOC_ARCH_EXYNOS4210,
  48. };
  49. #endif
  50. #if defined(CONFIG_SOC_EXYNOS5250) || defined(CONFIG_SOC_EXYNOS4412)
  51. struct exynos_tmu_platform_data const exynos5250_default_tmu_data = {
  52. .threshold_falling = 10,
  53. .trigger_levels[0] = 85,
  54. .trigger_levels[1] = 103,
  55. .trigger_levels[2] = 110,
  56. .trigger_level0_en = 1,
  57. .trigger_level1_en = 1,
  58. .trigger_level2_en = 1,
  59. .trigger_level3_en = 0,
  60. .gain = 8,
  61. .reference_voltage = 16,
  62. .noise_cancel_mode = 4,
  63. .cal_type = TYPE_ONE_POINT_TRIMMING,
  64. .efuse_value = 55,
  65. .freq_tab[0] = {
  66. .freq_clip_max = 800 * 1000,
  67. .temp_level = 85,
  68. },
  69. .freq_tab[1] = {
  70. .freq_clip_max = 200 * 1000,
  71. .temp_level = 103,
  72. },
  73. .freq_tab_count = 2,
  74. .type = SOC_ARCH_EXYNOS,
  75. };
  76. #endif