diff options
author | loos <loos@FreeBSD.org> | 2016-12-30 20:28:07 +0000 |
---|---|---|
committer | loos <loos@FreeBSD.org> | 2016-12-30 20:28:07 +0000 |
commit | 67e39acb5a75037c2a50d934e187201fba189b2b (patch) | |
tree | 4efefdd39ff698895e61f3936b4ffb379d2d6e9a /sys/arm/ti/am335x/am335x_scm.h | |
parent | 61528a9f2e3a38f9daaf1542d9185276ea6ca492 (diff) | |
download | FreeBSD-src-67e39acb5a75037c2a50d934e187201fba189b2b.zip FreeBSD-src-67e39acb5a75037c2a50d934e187201fba189b2b.tar.gz |
MFC of r305114, r305115 and r305149:
Allow the use of control module extensions to cope with specific platform
features.
Add a driver for the AM335x bandgap sensor, an on-die temperature sensor
as part of the AM335x control module extension.
TI says that the bandgap sensor is not very accurate on AM335x, but in our
tests it seems to be a good reference for the SoC temperature.
TI details:
http://processors.wiki.ti.com/index.php/AM335x_Thermal_Considerations#Measuring_Case_Temperature
Sponsored by: Rubicon Communications, LLC (Netgate)
Diffstat (limited to 'sys/arm/ti/am335x/am335x_scm.h')
-rw-r--r-- | sys/arm/ti/am335x/am335x_scm.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/arm/ti/am335x/am335x_scm.h b/sys/arm/ti/am335x/am335x_scm.h index 4a01f82..6116be0 100644 --- a/sys/arm/ti/am335x/am335x_scm.h +++ b/sys/arm/ti/am335x/am335x_scm.h @@ -30,6 +30,14 @@ /* AM335x-specific registers for control module (scm) */ #define SCM_CTRL_STATUS 0x40 +#define SCM_BGAP_CTRL 0x448 +#define SCM_BGAP_TEMP_MASK 0xff +#define SCM_BGAP_TEMP_SHIFT 8 +#define SCM_BGAP_BGOFF (1 << 6) +#define SCM_BGAP_SOC (1 << 4) +#define SCM_BGAP_CLRZ (1 << 3) +#define SCM_BGAP_CONTCONV (1 << 2) +#define SCM_BGAP_EOCZ (1 << 1) #define SCM_USB_CTRL0 0x620 #define SCM_USB_STS0 0x624 #define SCM_USB_CTRL1 0x628 |