codesnake / linux-amlogic-old

Linux kernel from Amlogic
Other
28 stars 36 forks source link

[WeTek_Play] - enable cputemp sensor #11

Closed Memphiz closed 9 years ago

Memphiz commented 9 years ago

As the topic says - this enables the sysfs access to the sar adc which has a temperature sensor connected as it seems. It can be accessed via:

/sys/class/saradc/temperature

and should return the temperature in degree celsius. Unfortunatly the conversion from ADC Value to celsius doesn't fit the used hardware/resistor network and needs to be fixed here:

https://github.com/codesnake/linux-amlogic/blob/master/drivers/amlogic/input/saradc/saradc.c#L356

by someone who has access to the schematics...