mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 15:02:32 +00:00
mvebu: enable thermal zone polling for IEI Puzzle devices
Marvell's thermal sensors do not support interrupts, so we need to poll them. Reading temperature every second should be enough to control the fan. While at it, also make sure fan speed is reduced again if temperature goes down. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
parent
7ac030876c
commit
fc177695e0
@ -1,4 +1,7 @@
|
|||||||
#define PUZZLE_FAN_THERMAL(_cname, _fan) \
|
#define PUZZLE_FAN_THERMAL(_cname, _fan) \
|
||||||
|
polling-delay-passive = <500>; \
|
||||||
|
polling-delay = <1000>; \
|
||||||
|
\
|
||||||
trips { \
|
trips { \
|
||||||
_cname##_active_high: cpu-active-high { \
|
_cname##_active_high: cpu-active-high { \
|
||||||
temperature = <80000>; \
|
temperature = <80000>; \
|
||||||
@ -28,14 +31,14 @@
|
|||||||
}; \
|
}; \
|
||||||
cpu-active-med { \
|
cpu-active-med { \
|
||||||
trip = <&_cname##_active_med>; \
|
trip = <&_cname##_active_med>; \
|
||||||
cooling-device = <_fan 2 THERMAL_NO_LIMIT>; \
|
cooling-device = <_fan 2 3>; \
|
||||||
}; \
|
}; \
|
||||||
cpu-active-low { \
|
cpu-active-low { \
|
||||||
trip = <&_cname##_active_low>; \
|
trip = <&_cname##_active_low>; \
|
||||||
cooling-device = <_fan 1 THERMAL_NO_LIMIT>; \
|
cooling-device = <_fan 1 2>; \
|
||||||
}; \
|
}; \
|
||||||
cpu-active-idle { \
|
cpu-active-idle { \
|
||||||
trip = <&_cname##_active_idle>; \
|
trip = <&_cname##_active_idle>; \
|
||||||
cooling-device = <_fan 0 THERMAL_NO_LIMIT>; \
|
cooling-device = <_fan 0 0>; \
|
||||||
}; \
|
}; \
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user