diff options
author | Cédric Le Goater <clg@kaod.org> | 2017-01-20 16:29:36 +0100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2017-03-16 17:17:24 +1100 |
commit | 04aaed9bcba35a87d7ac50beb60757087c1d6e42 (patch) | |
tree | 69c0d4798aa96ee283ddc2fcc42a9f2f1e02c60a /hw/dts.c | |
parent | 4940b8148640c06e139aec8c6d0370af7dd3b184 (diff) | |
download | skiboot-04aaed9bcba35a87d7ac50beb60757087c1d6e42.zip skiboot-04aaed9bcba35a87d7ac50beb60757087c1d6e42.tar.gz skiboot-04aaed9bcba35a87d7ac50beb60757087c1d6e42.tar.bz2 |
dts: remove unused defines
Also move the definitions closer to the code using them.
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/dts.c')
-rw-r--r-- | hw/dts.c | 23 |
1 files changed, 6 insertions, 17 deletions
@@ -21,23 +21,6 @@ #include <skiboot.h> #include <opal-api.h> -/* Per core Digital Thermal Sensors */ -#define EX_THERM_DTS_RESULT0 0x10050000 -#define EX_THERM_DTS_RESULT1 0x10050001 - -/* Per core Digital Thermal Sensors control registers */ -#define EX_THERM_MODE_REG 0x1005000F -#define EX_THERM_CONTROL_REG 0x10050012 -#define EX_THERM_ERR_STATUS_REG 0x10050013 - -/* Per memory controller Digital Thermal Sensors */ -#define THERM_MEM_DTS_RESULT0 0x2050000 - -/* Per memory controller Digital Thermal Sensors control registers */ -#define THERM_MEM_MODE_REG 0x205000F -#define THERM_MEM_CONTROL_REG 0x2050012 -#define THERM_MEM_ERR_STATUS_REG 0x2050013 - struct dts { uint8_t valid; uint8_t trip; @@ -132,6 +115,10 @@ static void dts_decode_one_dts(uint16_t raw, struct dts *dts) } } +/* Per core Digital Thermal Sensors */ +#define EX_THERM_DTS_RESULT0 0x10050000 +#define EX_THERM_DTS_RESULT1 0x10050001 + /* Different sensor locations */ #define P8_CT_ZONE_LSU 0 #define P8_CT_ZONE_ISU 1 @@ -209,6 +196,8 @@ static int dts_read_core_temp(uint32_t pir, struct dts *dts) return rc; } +/* Per memory controller Digital Thermal Sensors */ +#define THERM_MEM_DTS_RESULT0 0x2050000 /* Different sensor locations */ #define P8_MEM_DTS0 0 |