summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/radeon/btcd.h
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2014-01-30 11:19:22 -0500
committerAlex Deucher <alexander.deucher@amd.com>2014-02-06 12:22:46 -0500
commit9f3f63f24c901cad831e78bbb738df61a1c4ff02 (patch)
treeda2a56d1219d83608c6b457a54aa08dc9e41dc80 /drivers/gpu/drm/radeon/btcd.h
parent858a41c853cef2cb01de34dae334c19c1c15b237 (diff)
drm/radeon/dpm: use the driver state for dpm debugfs
For btc and newer, we may modify the power state depending on the circumstances. Use the modified state rather than the base state. Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/btcd.h')
-rw-r--r--drivers/gpu/drm/radeon/btcd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/btcd.h b/drivers/gpu/drm/radeon/btcd.h
index 29e32de7e025..9c65be2d55a9 100644
--- a/drivers/gpu/drm/radeon/btcd.h
+++ b/drivers/gpu/drm/radeon/btcd.h
@@ -44,6 +44,10 @@
# define DYN_SPREAD_SPECTRUM_EN (1 << 23)
# define AC_DC_SW (1 << 24)
+#define TARGET_AND_CURRENT_PROFILE_INDEX 0x66c
+# define CURRENT_PROFILE_INDEX_MASK (0xf << 4)
+# define CURRENT_PROFILE_INDEX_SHIFT 4
+
#define CG_BIF_REQ_AND_RSP 0x7f4
#define CG_CLIENT_REQ(x) ((x) << 0)
#define CG_CLIENT_REQ_MASK (0xff << 0)