[email protected] wrote:
> In the meantime I realized that it's bit 7 of the touchpanel's TP_CTRL1 
> register so when sunxi-dbgreg.ko is loaded I should succeed with
> 
>     echo 'f1c25004' > /sys/devices/virtual/misc/sunxi-dbgreg/rw/read;
> 
> Corentin's code in this module as well as the sunxi-dbgreg-workaround I use 
> set bit 4 to 1 but leave bit 7 untouched.

Just realized my mistake. The method I used (writing \x10 to TP_CTRL1 using 
sunxi-dbgreg.ko) led to bit 7 being cleared and therefore setting CHOP_TEMP_EN 
from enable to disable. Restoring the default by writing \x90 to TP_CTRL1 gives 
temperature readouts way closer to reality. If CHOP_TEMP_EN is disabled the 
temperatures reported show in some situations a rather large offset to the 
actual temperatures in one or the other direction. If  CHOP_TEMP_EN is enabled 
the deviation is much smaller.

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to