diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2011-05-26 02:45:37 +0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-05-26 03:21:54 +0400 |
commit | 67b3f823ec78d08aea8835bce2655674237abc1d (patch) | |
tree | 3cac280a6b8c154d73d9926cee899fc7b1985897 /drivers/gpu/drm/radeon/evergreend.h | |
parent | 457558eda1545c22163574f6dbb883394705e9dd (diff) | |
download | linux-67b3f823ec78d08aea8835bce2655674237abc1d.tar.xz |
drm/radeon/kms: fix thermal sensor reading on juniper
Uses a different method than other evergreen asics.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/evergreend.h')
-rw-r--r-- | drivers/gpu/drm/radeon/evergreend.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/evergreend.h b/drivers/gpu/drm/radeon/evergreend.h index 75b57e394f2b..103250ff3cbe 100644 --- a/drivers/gpu/drm/radeon/evergreend.h +++ b/drivers/gpu/drm/radeon/evergreend.h @@ -168,10 +168,16 @@ #define SE_DB_BUSY (1 << 30) #define SE_CB_BUSY (1 << 31) /* evergreen */ +#define CG_THERMAL_CTRL 0x72c +#define TOFFSET_MASK 0x00003FE0 +#define TOFFSET_SHIFT 5 #define CG_MULT_THERMAL_STATUS 0x740 #define ASIC_T(x) ((x) << 16) -#define ASIC_T_MASK 0x7FF0000 +#define ASIC_T_MASK 0x07FF0000 #define ASIC_T_SHIFT 16 +#define CG_TS0_STATUS 0x760 +#define TS0_ADC_DOUT_MASK 0x000003FF +#define TS0_ADC_DOUT_SHIFT 0 /* APU */ #define CG_THERMAL_STATUS 0x678 |