Hi,

On Wed, Jun 10, 2015 at 8:00 PM, schroete
<[email protected]> wrote:
> Hello,
>
> i've written a short kernel module to readout the onchip thermal register of
> the A23 CPU.
> Should also work on other Allwinner CPUs with thermal base register at
> 0x01C25000.
>
> Pls note that there are errors in the A23 User Manual, Page 248.
> Allwinner is informed but no feedback so far.
> The calculus of the T value is wrong by an offset of 0x10.
> Also the bit numbering of the CTRL1 is wrong by one bit.
>
> Tested with A20 CPU on cubietruck and kernel 3.4.103-sunxi7.
> Compiles also under Kernel 4.1rc7 (but no Tests been done so far.)
>
> It is my first kernel module and may be some find it also useful and could
> test in their setup if the module compiles and loads.
>
> The results are output via /proc/a23_thermal. Value needs to be divided by
> 100.
>
> If a driver already exists pls let me know.

AFAIK the thermal unit is pretty much the same as found in sun6i,
except the touchscreen stuff is gone, and it's missing an interrupt line.

The interrupt line seems to have been added back on A33.

It should be pretty easy to just pull the relevant code out of sun4i-ts.c
and use it. We'll also need to extend it to support multiple sensors
on sun9i.


Regards
ChenYu

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