From b9c59ecbba5ec8138657058c598c43cf17638a68 Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Tue, 21 Aug 2012 13:47:24 -0400 Subject: radeonreg: add support for dce6 Signed-off-by: Alex Deucher Signed-off-by: Dave Airlie --- radeonreg.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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; -- cgit v1.2.3