summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMengdong Lin <mengdong.lin@intel.com>2013-07-17 13:29:17 -0400
committerBen Widawsky <benjamin.widawsky@intel.com>2013-11-06 09:39:41 -0800
commit69cc00b072198264a8a6e7b1e870fe0cbad34ce6 (patch)
tree060a8f44a329045b4e2fa7beec8471a709f9717c /tools
parentc82872b0193c38994d09f2b78fca03264d52e614 (diff)
intel_audio_dump/bdw: add support for Broadwell
This patch renames Haswell audio dump function and reuses it for Broadwell. Since Haswell, audio registers are moved from the south display engine to the north display engine. And the audio register layout is same for Haswell and its successors like Broadwell. Signed-off-by: Mengdong Lin <mengdong.lin@intel.com> Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Diffstat (limited to 'tools')
-rw-r--r--tools/intel_audio_dump.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/tools/intel_audio_dump.c b/tools/intel_audio_dump.c
index b74d293e..b4d704b8 100644
--- a/tools/intel_audio_dump.c
+++ b/tools/intel_audio_dump.c
@@ -1897,7 +1897,10 @@ static void dump_hdmi_fifo_status(void)
printf("AUD_HDMI_FIFO_STATUS Conv_3_CDCLK/DOTCLK_FIFO_Underrun\t%lu\n", BIT(dword, 31));
}
-static void dump_hsw(void)
+/* Dump audio registers for Haswell and its successors (eg. Broadwell).
+ * Their register layout are same in the north display engine.
+ */
+static void dump_hsw_plus(void)
{
uint32_t dword;
@@ -2046,12 +2049,12 @@ int main(int argc, char **argv)
else
intel_get_mmio(pci_dev);
- if (IS_GEN6(devid) || IS_GEN7(devid) || getenv("HAS_PCH_SPLIT")) {
- if (IS_HASWELL(devid)) {
- printf("Haswell audio registers:\n\n");
- dump_hsw();
- return 0;
- }
+ if (IS_BROADWELL(devid) || IS_HASWELL(devid)) {
+ printf("%s audio registers:\n\n",
+ IS_BROADWELL(devid) ? "Broadwell" : "Haswell");
+ dump_hsw_plus();
+ } else if (IS_GEN6(devid) || IS_GEN7(devid)
+ || getenv("HAS_PCH_SPLIT")) {
printf("%s audio registers:\n\n",
IS_GEN6(devid) ? "SandyBridge" : "IvyBridge");
intel_check_pch();