diff options
author | William Bryan <wilbryan@us.ibm.com> | 2016-06-28 16:39:27 -0500 |
---|---|---|
committer | William A. Bryan <wilbryan@us.ibm.com> | 2016-08-11 17:23:03 -0400 |
commit | cc748872bec8ece3814ff35a89d6ac66494eca9a (patch) | |
tree | 0a68123381597fde648543f8d4123292080f9dbb /src/include/p9_config.h | |
parent | 5b69d47a980cc851b7eea9f45f7eb9bb0f567a04 (diff) | |
download | talos-occ-cc748872bec8ece3814ff35a89d6ac66494eca9a.tar.gz talos-occ-cc748872bec8ece3814ff35a89d6ac66494eca9a.zip |
Get NEST DTS readings HWP
Change-Id: Ia0dff277cc79bb14f65805ffb483458480af89ca
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/27776
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com>
Reviewed-by: Martha Broyles <mbroyles@us.ibm.com>
Reviewed-by: William A. Bryan <wilbryan@us.ibm.com>
Diffstat (limited to 'src/include/p9_config.h')
-rw-r--r-- | src/include/p9_config.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/include/p9_config.h b/src/include/p9_config.h index ca2efc2..72168e1 100644 --- a/src/include/p9_config.h +++ b/src/include/p9_config.h @@ -32,6 +32,32 @@ #include <stdint.h> +#define THERM_DTS_RESULT 0x00050000 + +typedef union dts_sensor_result_reg +{ + uint64_t value; + struct + { + uint16_t reading[2]; + uint16_t unused_hw2; + uint16_t unused_hw3; + } half_words; +} dts_sensor_result_reg_t; + +typedef union sensor_result +{ + uint16_t result; + struct + { + uint16_t reading : 12; + uint16_t thermal_trip : 2; + uint16_t spare : 1; + uint16_t valid : 1; + } fields; + +} sensor_result_t; + /// SCOM address Ranges: // Cores (EX chiplet): 0x20000000 - 0x37000000 @@ -39,6 +65,7 @@ // #define CHIPLET_CORE_SCOM_BASE 0x20000000 #define CHIPLET_CACHE_SCOM_BASE 0x10000000 +#define CHIPLET_NEST_SCOM_BASE 0x02000000 #define CHIPLET_CORE_ID(n) \ (((n) << 24) + CHIPLET_CORE_SCOM_BASE) @@ -46,5 +73,7 @@ #define CHIPLET_CACHE_ID(n) \ (((n) << 24) + CHIPLET_CACHE_SCOM_BASE) +#define CHIPLET_NEST_ID(n) \ + (((n) << 24) + CHIPLET_NEST_SCOM_BASE) #endif /* __P9_GPE_CONFIG_H__ */ |