Page MenuHomeFreeBSD

Allwinner A83T thermal sensor support
ClosedPublic

Authored by jmcneill on May 15 2016, 8:19 PM.
Tags
Referenced Files
Unknown Object (File)
Wed, Jun 5, 2:30 AM
Unknown Object (File)
Mon, May 27, 9:24 AM
Unknown Object (File)
Mon, May 27, 9:24 AM
Unknown Object (File)
May 4 2024, 12:54 AM
Unknown Object (File)
Apr 24 2024, 10:20 AM
Unknown Object (File)
Mar 17 2024, 9:15 AM
Unknown Object (File)
Mar 17 2024, 8:53 AM
Unknown Object (File)
Feb 29 2024, 6:34 PM
Subscribers

Details

Summary

This diff adds support for the thermal sensor found in the A83T SoC.

The A83T thermal sensor controller has three thermal sensors. Sensor 0 corresponds to CPU cluster 0, sensor 1 corresponds to CPU cluster 1, and sensor 2 corresponds to the GPU. The sensor values are exported via sysctl.

Calibration data is obtained from SRAM found in the Secure ID module.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jmcneill retitled this revision from to Allwinner A83T thermal sensor support.
jmcneill updated this object.
jmcneill edited the test plan for this revision. (Show Details)
jmcneill added a reviewer: ARM.
jmcneill set the repository for this revision to rS FreeBSD src repository - subversion.
jmcneill added a project: ARM.

I've just added sid support in my tree and my driver is ~90% the same than yours so I'll merge them after.

manu added a reviewer: manu.
This revision is now accepted and ready to land.May 15 2016, 8:36 PM
sys/arm/allwinner/aw_sid.c
133 ↗(On Diff #16353)

It's probably better to use EARLY_DRIVER_MODULE with BUS_PASS_RESOURCE + BUS_PASS_ORDER_FIRST since some device will rely on it's presence.

jmcneill edited edge metadata.

Use EARLY_DRIVER_MODULE with aw_sid

This revision now requires review to proceed.May 15 2016, 9:29 PM
This revision was automatically updated to reflect the committed changes.