aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2016-10-17 20:25:53 +0200
committerMathias Kresin <dev@kresin.me>2016-10-19 19:55:06 +0200
commit23e3314cad2afcc5ef2897c247db11218b9df042 (patch)
treeef73444ed437ceec3a09e580927bf6780c98a0f1 /.github
parenteba84bee4ce518dc509fe51f252c5307dccf3a1c (diff)
downloadupstream-23e3314cad2afcc5ef2897c247db11218b9df042.tar.gz
upstream-23e3314cad2afcc5ef2897c247db11218b9df042.tar.bz2
upstream-23e3314cad2afcc5ef2897c247db11218b9df042.zip
lantiq: fix thermal sensors driver
Read the temperature including the decimale place from the CGU_GPHY1_CR register. Decrement the temperature read from the register by 38.0 degree celsius. The temperature range of the sensor is -38.0 to +154 °C and the register value 0 is equal to -38.0 °C. This fixes the report of unrealistic temperatures as seen on all tested boards. Give the SoC a few milliseconds to get the first temperature value. On some rare occasions there is no temperature value in the register when read the first time after activation. This leads to a reported temperature of -38.0 °C on boot. Only version 1.2 of the vr9 SoC has a temperature sensor. Add a check to make sure the driver doesn't load on v1.1 vr9 SoCs. Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions