GoogleGit

blob: 7a9656143d1b37dc3357ae1b2cecc2c1376f34dd [file] [log] [blame]
  1. /*
  2. * This file is part of the coreboot project.
  3. *
  4. * Copyright (C) 2012 Google Inc.
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; version 2 of the License.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  18. */
  19. #ifndef THERMAL_H
  20. #define THERMAL_H
  21. /* Fan is OFF */
  22. #define FAN4_THRESHOLD_OFF 0
  23. #define FAN4_THRESHOLD_ON 0
  24. #define FAN4_PWM 0x00
  25. /* Fan is at LOW speed */
  26. #define FAN3_THRESHOLD_OFF 40
  27. #define FAN3_THRESHOLD_ON 50
  28. #define FAN3_PWM 0x5a
  29. /* Fan is at MEDIUM speed */
  30. #define FAN2_THRESHOLD_OFF 58
  31. #define FAN2_THRESHOLD_ON 67
  32. #define FAN2_PWM 0xa6
  33. /* Fan is at HIGH speed */
  34. #define FAN1_THRESHOLD_OFF 67
  35. #define FAN1_THRESHOLD_ON 75
  36. #define FAN1_PWM 0xc0
  37. /* Fan is at FULL speed */
  38. #define FAN0_THRESHOLD_OFF 85
  39. #define FAN0_THRESHOLD_ON 90
  40. #define FAN0_PWM 0xff
  41. /* Temperature which OS will shutdown at */
  42. #define CRITICAL_TEMPERATURE 98
  43. /* Temperature which OS will throttle CPU */
  44. #define PASSIVE_TEMPERATURE 90
  45. /* Tj_max value for calculating PECI CPU temperature */
  46. #define MAX_TEMPERATURE 100
  47. #endif