summaryrefslogtreecommitdiff
path: root/tools/intel_audio_dump.c
diff options
context:
space:
mode:
authorMengdong Lin <mengdong.lin@intel.com>2014-02-28 16:18:11 -0500
committerXiang, Haihao <haihao.xiang@intel.com>2014-03-06 16:42:52 +0800
commit1803f1ebfad1e14b5d0eb8560d99efd3ddb6ef67 (patch)
treeb9e36f636ea67f54af453a8c44fe742a2694693a /tools/intel_audio_dump.c
parented386663fe4894f9cfd2a3df4233292e0e3b39ac (diff)
intel_audio_dump: define IS_HASWELL_PLUS to cover Haswell and its successors
A macro IS_HASWELL_PLUS(devid) is defined to cover Haswell and its successors, for code sharing. Now it covers HSW and BDW. Signed-off-by: Mengdong Lin <mengdong.lin@intel.com> Reviewed-by: Haihao Xiang <haihao.xiang@intel.com>
Diffstat (limited to 'tools/intel_audio_dump.c')
-rw-r--r--tools/intel_audio_dump.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/intel_audio_dump.c b/tools/intel_audio_dump.c
index faa577e2..ffd82889 100644
--- a/tools/intel_audio_dump.c
+++ b/tools/intel_audio_dump.c
@@ -40,6 +40,8 @@ static uint32_t devid;
static int aud_reg_base = 0; /* base address of audio registers */
static int disp_reg_base = 0; /* base address of display registers */
+#define IS_HASWELL_PLUS(devid) (IS_HASWELL(devid) || IS_BROADWELL(devid))
+
#define BITSTO(n) (n >= sizeof(long) * 8 ? ~0 : (1UL << (n)) - 1)
#define BITMASK(high, low) (BITSTO(high+1) & ~BITSTO(low))
#define BITS(reg, high, low) (((reg) & (BITMASK(high, low))) >> (low))