summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/radeon/nid.h
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2013-06-28 17:49:02 -0400
committerAlex Deucher <alexander.deucher@amd.com>2013-07-01 16:08:57 -0400
commitbdf0c4f07d5fbda79569a11116053bed44873c8a (patch)
treee286da1d681c2033f39eb817be263331250a95e5 /drivers/gpu/drm/radeon/nid.h
parent490ab9314bb7f70af227fd905571d6cfc10688fb (diff)
downloadlwn-bdf0c4f07d5fbda79569a11116053bed44873c8a.tar.gz
lwn-bdf0c4f07d5fbda79569a11116053bed44873c8a.zip
drm/radeon/dpm: add debugfs support for cayman
This allows you to look at the current DPM state via debugfs. Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/nid.h')
-rw-r--r--drivers/gpu/drm/radeon/nid.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/nid.h b/drivers/gpu/drm/radeon/nid.h
index 95693c77351d..fe24a93542ec 100644
--- a/drivers/gpu/drm/radeon/nid.h
+++ b/drivers/gpu/drm/radeon/nid.h
@@ -618,6 +618,10 @@
# define MRDCKD0_BYPASS (1 << 30)
# define MRDCKD1_BYPASS (1 << 31)
+#define TARGET_AND_CURRENT_PROFILE_INDEX 0x66c
+# define CURRENT_STATE_INDEX_MASK (0xf << 4)
+# define CURRENT_STATE_INDEX_SHIFT 4
+
#define CG_AT 0x6d4
# define CG_R(x) ((x) << 0)
# define CG_R_MASK (0xffff << 0)