On Wed, Jun 10, 2015 at 3: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. > How did you contact Allwinner? There is a report at https://github.com/allwinner-zh/documents/issues/10 for newer A23 documentation. Simos > 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. > > -- 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.
