puzzle-thermal.dtsi 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #define PUZZLE_FAN_THERMAL(_cname, _fan) \
  2. trips { \
  3. _cname##_active_high: cpu-active-high { \
  4. temperature = <80000>; \
  5. hysteresis = <2000>; \
  6. type = "active"; \
  7. }; \
  8. _cname##_active_med: cpu-active-med { \
  9. temperature = <72000>; \
  10. hysteresis = <2000>; \
  11. type = "active"; \
  12. }; \
  13. _cname##_active_low: cpu-active-low { \
  14. temperature = <65000>; \
  15. hysteresis = <2000>; \
  16. type = "active"; \
  17. }; \
  18. _cname##_active_idle: cpu-active-idle { \
  19. temperature = <60000>; \
  20. hysteresis = <2000>; \
  21. type = "active"; \
  22. }; \
  23. }; \
  24. cooling-maps { \
  25. cpu-active-high { \
  26. trip = <&_cname##_active_high>; \
  27. cooling-device = <_fan 3 THERMAL_NO_LIMIT>; \
  28. }; \
  29. cpu-active-med { \
  30. trip = <&_cname##_active_med>; \
  31. cooling-device = <_fan 2 THERMAL_NO_LIMIT>; \
  32. }; \
  33. cpu-active-low { \
  34. trip = <&_cname##_active_low>; \
  35. cooling-device = <_fan 1 THERMAL_NO_LIMIT>; \
  36. }; \
  37. cpu-active-idle { \
  38. trip = <&_cname##_active_idle>; \
  39. cooling-device = <_fan 0 THERMAL_NO_LIMIT>; \
  40. }; \
  41. }