Openwrt/target/linux
Mathias Kresin 23e3314cad 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>
2016-10-19 19:55:06 +02:00
..
adm5120 kernel: drop usbdev LED trigger 2016-10-19 12:09:45 +02:00
adm8668
apm821xx switch to the new usbport LED trigger 2016-10-19 12:09:45 +02:00
ar7
ar71xx switch to the new usbport LED trigger 2016-10-19 12:09:45 +02:00
arc770
archs38
arm64
at91
ath25
au1000
bcm53xx bcm53xx: include usbport trigger for devices with USB 2016-10-19 12:28:52 +02:00
brcm47xx
brcm63xx switch to the new usbport LED trigger 2016-10-19 12:09:45 +02:00
brcm2708 kernel: drop usbdev LED trigger 2016-10-19 12:09:45 +02:00
cns3xxx
gemini
generic kernel: drop usbdev LED trigger 2016-10-19 12:09:45 +02:00
imx6
ipq806x switch to the new usbport LED trigger 2016-10-19 12:09:45 +02:00
ixp4xx
kirkwood
lantiq lantiq: fix thermal sensors driver 2016-10-19 19:55:06 +02:00
malta
mcs814x switch to the new usbport LED trigger 2016-10-19 12:09:45 +02:00
mediatek switch to the new usbport LED trigger 2016-10-19 12:09:45 +02:00
mpc85xx
mvebu switch to the new usbport LED trigger 2016-10-19 12:09:45 +02:00
mxs
octeon
omap
omap24xx
orion
oxnas switch to the new usbport LED trigger 2016-10-19 12:09:45 +02:00
ppc40x
ppc44x
ramips switch to the new usbport LED trigger 2016-10-19 12:09:45 +02:00
rb532
realview
sunxi
uml
x86
xburst
zynq
Makefile