Skip to content

Commit 28dcbd7

Browse files
KholkinDmitriiBenBE
authored andcommitted
feat: add sensors for Rockchip RK3566
1 parent ea27926 commit 28dcbd7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

linux/LibSensors.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ static int tempDriverPriority(const sensors_chip_name* chip) {
143143
{ "bigcore0_thermal", 0 },
144144
{ "bigcore1_thermal", 0 },
145145
{ "bigcore2_thermal", 0 },
146+
/* Rockchip RK3566 */
147+
{ "soc_thermal", 0 },
146148
/* Low priority drivers */
147149
{ "acpitz", 1 },
148150
};
@@ -242,6 +244,18 @@ void LibSensors_getCPUTemperatures(CPUData* cpus, unsigned int existingCPUs, uns
242244
}
243245
}
244246

247+
/* Rockchip RK3566 */
248+
if (existingCPUs == 4) {
249+
if (String_eq(chip->prefix, "soc_thermal")) {
250+
data[1] = temp;
251+
data[2] = temp;
252+
data[3] = temp;
253+
data[4] = temp;
254+
coreTempCount += 4;
255+
continue;
256+
}
257+
}
258+
245259
/* If already set, e.g. Ryzen reporting platform temperature for each die, use the bigger one */
246260
if (isNaN(data[tempID])) {
247261
data[tempID] = temp;

0 commit comments

Comments
 (0)