|
@@ -0,0 +1,41 @@
|
|
|
+#define PUZZLE_FAN_THERMAL(_cname, _fan) \
|
|
|
+ trips { \
|
|
|
+ _cname##_active_high: cpu-active-high { \
|
|
|
+ temperature = <80000>; \
|
|
|
+ hysteresis = <2000>; \
|
|
|
+ type = "active"; \
|
|
|
+ }; \
|
|
|
+ _cname##_active_med: cpu-active-med { \
|
|
|
+ temperature = <72000>; \
|
|
|
+ hysteresis = <2000>; \
|
|
|
+ type = "active"; \
|
|
|
+ }; \
|
|
|
+ _cname##_active_low: cpu-active-low { \
|
|
|
+ temperature = <65000>; \
|
|
|
+ hysteresis = <2000>; \
|
|
|
+ type = "active"; \
|
|
|
+ }; \
|
|
|
+ _cname##_active_idle: cpu-active-idle { \
|
|
|
+ temperature = <60000>; \
|
|
|
+ hysteresis = <2000>; \
|
|
|
+ type = "active"; \
|
|
|
+ }; \
|
|
|
+ }; \
|
|
|
+ cooling-maps { \
|
|
|
+ cpu-active-high { \
|
|
|
+ trip = <&_cname##_active_high>; \
|
|
|
+ cooling-device = <_fan 3 THERMAL_NO_LIMIT>; \
|
|
|
+ }; \
|
|
|
+ cpu-active-med { \
|
|
|
+ trip = <&_cname##_active_med>; \
|
|
|
+ cooling-device = <_fan 2 THERMAL_NO_LIMIT>; \
|
|
|
+ }; \
|
|
|
+ cpu-active-low { \
|
|
|
+ trip = <&_cname##_active_low>; \
|
|
|
+ cooling-device = <_fan 1 THERMAL_NO_LIMIT>; \
|
|
|
+ }; \
|
|
|
+ cpu-active-idle { \
|
|
|
+ trip = <&_cname##_active_idle>; \
|
|
|
+ cooling-device = <_fan 0 THERMAL_NO_LIMIT>; \
|
|
|
+ }; \
|
|
|
+ }
|