23e3314cad
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> |
||
---|---|---|
.. | ||
adm5120 | ||
adm8668 | ||
apm821xx | ||
ar7 | ||
ar71xx | ||
arc770 | ||
archs38 | ||
arm64 | ||
at91 | ||
ath25 | ||
au1000 | ||
bcm53xx | ||
brcm47xx | ||
brcm63xx | ||
brcm2708 | ||
cns3xxx | ||
gemini | ||
generic | ||
imx6 | ||
ipq806x | ||
ixp4xx | ||
kirkwood | ||
lantiq | ||
malta | ||
mcs814x | ||
mediatek | ||
mpc85xx | ||
mvebu | ||
mxs | ||
octeon | ||
omap | ||
omap24xx | ||
orion | ||
oxnas | ||
ppc40x | ||
ppc44x | ||
ramips | ||
rb532 | ||
realview | ||
sunxi | ||
uml | ||
x86 | ||
xburst | ||
zynq | ||
Makefile |