summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2012-08-21 13:47:24 -0400
committerDave Airlie <airlied@gmail.com>2012-08-22 05:37:13 +1000
commitb9c59ecbba5ec8138657058c598c43cf17638a68 (patch)
tree9415c713fecce4c99c4b7900a9a378b2f23b2af3
parent36c4d89b48ab31f2c8fefefbc3bc17cc78617e33 (diff)
radeonreg: add support for dce6
Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@gmail.com>
-rw-r--r--radeonreg.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/radeonreg.c b/radeonreg.c
index 0dc14fe..37efdd7 100644
--- a/radeonreg.c
+++ b/radeonreg.c
@@ -252,6 +252,19 @@ static void radeon_show_dce5_display_regs(const char *type)
SHOW_UNKNOWN_REG(i);
}
+static void radeon_show_dce6_display_regs(const char *type)
+{
+ int tmp; /* may be stomped at any moment. */
+ unsigned long i;
+
+ for (i = 0x0000; i < 0x5e8; i += 4)
+ SHOW_UNKNOWN_REG(i);
+ for (i = 0x5800; i < 0x7fb0; i += 4)
+ SHOW_UNKNOWN_REG(i);
+ for (i = 0x10000; i < 0x12fb0; i += 4)
+ SHOW_UNKNOWN_REG(i);
+}
+
void radeon_cmd_regs(const char *type)
{
@@ -276,6 +289,10 @@ void radeon_cmd_regs(const char *type)
radeon_show_dce5_display_regs(type);
return;
}
+ if (strcmp(type, "dce6") == 0) {
+ radeon_show_dce6_display_regs(type);
+ return;
+ }
if (strcmp(type, "all") == 0) {
if (IS_DISPLAY_RADEON(card_info))
radeon_show_radeon_display_regs(type);
@@ -287,6 +304,8 @@ void radeon_cmd_regs(const char *type)
radeon_show_dce4_display_regs(type);
else if (IS_DISPLAY_DCE5(card_info))
radeon_show_dce5_display_regs(type);
+ else if (IS_DISPLAY_DCE6(card_info))
+ radeon_show_dce6_display_regs(type);
else
printf("unknown chipset, specify the regs to dump\n");
return;