Commit 648d89e
fwk: dogwood: adding the backup temperature sensor
In some cases the CPU temperature might not be updated.
This change uses the onboard thermal sensors (QTH1 and UTH1) as a
backup to the CPU sensor. The maxumum temperature sets to 65C and
the minimum temperature sets to 50C.
BRANCH=fwk-dogwood-27111
BUG=https://app.clickup.com/t/86et9h4tv
TEST=heat the Qth1 sensor only to check the target duty uses the
backup temperature sensor.
[301.499900 Fan0 parameters:]
[301.501400 Target Duty:34]
[301.504100 Maximum Duty:100]
[301.507100 Minimum Duty:25]
[301.510100 Maximum Temperature:54]
[301.513500 Minimum Temperature:35]
[301.517000 Sensor Source:cpu@4c]
[301.520400 Always on disabled]
ec:~> temps
mainboard_power@4d 325 K (= 52 C) 87% (311 K and 327 K)
mainboard_memory@4d 303 K (= 30 C) 0% (313 K and 327 K)
mainboard_ambient@4d 304 K (= 31 C) 0% (313 K and 327 K)
cpu@4c 305 K (= 32 C)
cpu-average 576 K (= 303 C)
Signed-off-by: Josh-Tsai <josh_tsai@compal.com>1 parent a4fbf36 commit 648d89e
1 file changed
Lines changed: 20 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| |||
117 | 120 | | |
118 | 121 | | |
119 | 122 | | |
120 | | - | |
| 123 | + | |
| 124 | + | |
121 | 125 | | |
122 | | - | |
| 126 | + | |
123 | 127 | | |
124 | 128 | | |
125 | 129 | | |
126 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
127 | 145 | | |
128 | 146 | | |
129 | 147 | | |
| |||
0 commit comments