From f6c75c6d93d7e6603dccf9321fa1b770988924a0 Mon Sep 17 00:00:00 2001 From: Alastair Poole Date: Thu, 15 Oct 2020 15:09:16 +0100 Subject: [PATCH] cpu: add some support for known hw... --- src/bin/system/machine/cpu.bogox | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/bin/system/machine/cpu.bogox b/src/bin/system/machine/cpu.bogox index d820810..b57719b 100644 --- a/src/bin/system/machine/cpu.bogox +++ b/src/bin/system/machine/cpu.bogox @@ -357,10 +357,17 @@ system_cpu_n_temperature_get(int n) #if defined(__linux__) static int init = 0; + // This list is not exhastive by any means, if you have the + // hardware and can provide a better init, please do. WIP. + // Min max (where applicable) thermal_drv drivers[] = { - { "coretemp", _coretemp_init, 0, 100 }, - { "k10temp", _generic_init, 0, 100 }, - { "cpu_thermal", _generic_init, 0, 100 }, + { "coretemp", _coretemp_init, 0, 90 }, /* Intel Coretemp */ + { "k10temp", _generic_init, 0, 90 }, /* AMD K10 */ + { "cpu_thermal", _generic_init, 0, 90 }, /* BCM2835/BCM2711 (RPI3/4) */ + { "cup", _generic_init, 0, 100 }, /* RK3399 */ + { "soc_thermal", _generic_init, 0, 100 }, /* RK3326 */ + { "cpu0_thermal", _generic_init, 0, 100 }, /* AllWinner A64 */ + { "soc_dts0", _generic_init, 0, 90 }, /* Intel Baytrail */ }; if (!init)