Christian Ege wrote:
> Am 05.11.2014 12:44 schrieb <[email protected]>:
>> Does anyone have a clue how the A20's CHOP_TEMP_EN register (according to 
>> the A20's
>> user manual: "Chop temperature calibration enable: 0: Disable, 1: Enable") 
>> can be read/set?
> 
> For read write access from user space you can try to use devmem2 with the 
> address given
> in the user manual.
> 
> http://manpages.ubuntu.com/manpages/natty/man1/devmem2.1.html

Thx, will give it a try this evening. 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. With CHOP_TEMP_EN enabled I get a 
whopping 25°C lower reported by the TP controller inside the A20 with an 
attached heatsink compared to the very same A20 without a heatsink a few 
minutes before. I'll report back what can be read when CHOP_TEMP_EN is disabled.

-- 
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