diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2014-03-06 13:46:53 -0500 |
---|---|---|
committer | Dave Airlie <airlied@gmail.com> | 2014-07-02 07:19:20 +1000 |
commit | 6b5e7c6a90b2e5bca89d6fd0f15319076c98cf5a (patch) | |
tree | 77e549f5a13ffbdba9113fbc03e4db8dde6bc841 | |
parent | 6c0ecee99e117514fb7842f82b6704552e9e2c63 (diff) |
radeonreg: add support for dce8
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@gmail.com>
-rw-r--r-- | radeonreg.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/radeonreg.c b/radeonreg.c index 92ff896..7ebce54 100644 --- a/radeonreg.c +++ b/radeonreg.c @@ -265,6 +265,19 @@ static void radeon_show_dce6_display_regs(const char *type) SHOW_UNKNOWN_REG(i); } +static void radeon_show_dce8_display_regs(const char *type) +{ + int tmp; /* may be stomped at any moment. */ + unsigned long i; + + for (i = 0x0000; i < 0x5e4; 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) { @@ -293,6 +306,10 @@ void radeon_cmd_regs(const char *type) radeon_show_dce6_display_regs(type); return; } + if (strcmp(type, "dce8") == 0) { + radeon_show_dce8_display_regs(type); + return; + } if (strcmp(type, "all") == 0) { if (IS_DISPLAY_RADEON(card_info)) radeon_show_radeon_display_regs(type); @@ -306,6 +323,8 @@ void radeon_cmd_regs(const char *type) radeon_show_dce5_display_regs(type); else if (IS_DISPLAY_DCE6(card_info)) radeon_show_dce6_display_regs(type); + else if (IS_DISPLAY_DCE8(card_info)) + radeon_show_dce8_display_regs(type); else printf("unknown chipset, specify the regs to dump\n"); return; |