summaryrefslogtreecommitdiff
path: root/avivotool.c
diff options
context:
space:
mode:
Diffstat (limited to 'avivotool.c')
-rw-r--r--avivotool.c46
1 files changed, 46 insertions, 0 deletions
diff --git a/avivotool.c b/avivotool.c
index 33469d6..b8e3c5e 100644
--- a/avivotool.c
+++ b/avivotool.c
@@ -1117,6 +1117,7 @@ void radeon_cmd_regs(const char *type)
int show_pll1 = (show_all || strstr(type, "pll1"));
int show_pll2 = (show_all || strstr(type, "pll2"));
int show_tv = (show_all || strstr(type, "tv"));
+ int show_hdmi = (show_all || strstr(type, "hdmi"));
int shut_up = 1;
int tmp; /* may be stomped at any moment. */
unsigned long i;
@@ -1613,7 +1614,52 @@ void radeon_cmd_regs(const char *type)
SHOW_REG(SD1_CRTC_TV_FRAMESTART_CNTL);
}
+ if (show_hdmi) {
+ printf("\nAudio clocks:\n");
+ SHOW_REG(R600_AUDIO_PLL1_MUL);
+ SHOW_REG(R600_AUDIO_PLL1_DIV);
+ SHOW_REG(R600_AUDIO_PLL2_MUL);
+ SHOW_REG(R600_AUDIO_PLL2_DIV);
+ SHOW_REG(R600_AUDIO_CLK_SRCSEL);
+
+ printf("\nAudio general:\n");
+ SHOW_REG(R600_AUDIO_ENABLE);
+ SHOW_REG(R600_AUDIO_TIMING);
+
+ printf("\nAudio params:\n");
+ SHOW_REG(R600_AUDIO_VENDOR_ID);
+ SHOW_REG(R600_AUDIO_REVISION_ID);
+ SHOW_REG(R600_AUDIO_ROOT_NODE_COUNT);
+ SHOW_REG(R600_AUDIO_NID1_NODE_COUNT);
+ SHOW_REG(R600_AUDIO_NID1_TYPE);
+ SHOW_REG(R600_AUDIO_SUPPORTED_SIZE_RATE);
+ SHOW_REG(R600_AUDIO_SUPPORTED_CODEC);
+ SHOW_REG(R600_AUDIO_SUPPORTED_POWER_STATES);
+ SHOW_REG(R600_AUDIO_NID2_CAPS);
+ SHOW_REG(R600_AUDIO_NID3_CAPS);
+ SHOW_REG(R600_AUDIO_NID3_PIN_CAPS);
+
+ printf("\nAudio conn list:\n");
+ SHOW_REG(R600_AUDIO_CONN_LIST_LEN);
+ SHOW_REG(R600_AUDIO_CONN_LIST);
+
+ printf("\nAudio verbs:\n");
+ SHOW_REG(R600_AUDIO_RATE_BPS_CHANNEL);
+ SHOW_REG(R600_AUDIO_PLAYING);
+ SHOW_REG(R600_AUDIO_IMPLEMENTATION_ID);
+ SHOW_REG(R600_AUDIO_CONFIG_DEFAULT);
+ SHOW_REG(R600_AUDIO_PIN_SENSE);
+ SHOW_REG(R600_AUDIO_PIN_WIDGET_CNTL);
+ SHOW_REG(R600_AUDIO_STATUS_BITS);
+
+ printf("\nHDMI block at 0x%x:\n", R600_HDMI_BLOCK1);
+ for (i = R600_HDMI_BLOCK1; i < R600_HDMI_BLOCK1 + 0xf0; i += 4)
+ SHOW_UNKNOWN_REG(i);
+ printf("\nHDMI block at 0x%x:\n", R600_HDMI_BLOCK3);
+ for (i = R600_HDMI_BLOCK3; i < R600_HDMI_BLOCK3 + 0xf0; i += 4)
+ SHOW_UNKNOWN_REG(i);
+ }
}
void radeon_regsrange(unsigned int start, unsigned int end)