diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2012-03-20 22:18:10 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-03-21 07:55:52 +0100 |
commit | 1bd47d2e16573496efd2fd0ec36f57031d478f87 (patch) | |
tree | fca64840969fdfb2ac2b85a4a3130f87f6de756d /drivers/gpu/drm/radeon/sid.h | |
parent | drm/radeon/kms: update power table parsing for SI (diff) | |
download | linux-1bd47d2e16573496efd2fd0ec36f57031d478f87.tar.xz linux-1bd47d2e16573496efd2fd0ec36f57031d478f87.zip |
drm/radeon/kms: add support for internal thermal sensor on SI
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/sid.h')
-rw-r--r-- | drivers/gpu/drm/radeon/sid.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/sid.h b/drivers/gpu/drm/radeon/sid.h index 962cc17a6076..f565a8fa7ead 100644 --- a/drivers/gpu/drm/radeon/sid.h +++ b/drivers/gpu/drm/radeon/sid.h @@ -24,6 +24,14 @@ #ifndef SI_H #define SI_H +#define CG_MULT_THERMAL_STATUS 0x714 +#define ASIC_MAX_TEMP(x) ((x) << 0) +#define ASIC_MAX_TEMP_MASK 0x000001ff +#define ASIC_MAX_TEMP_SHIFT 0 +#define CTF_TEMP(x) ((x) << 9) +#define CTF_TEMP_MASK 0x0003fe00 +#define CTF_TEMP_SHIFT 9 + #define MC_SHARED_CHMAP 0x2004 #define NOOFCHAN_SHIFT 12 #define NOOFCHAN_MASK 0x0000f000 |