diff options
author | Eugeni Dodonov <eugeni.dodonov@intel.com> | 2011-10-25 14:40:12 -0200 |
---|---|---|
committer | Eugeni Dodonov <eugeni.dodonov@intel.com> | 2012-01-03 15:18:06 -0200 |
commit | 1649ab350f60b664a51fc4a7fd9c225bb72eb0a8 (patch) | |
tree | 354e7b2542dcbef09af31d644b23503914bbe759 /tools | |
parent | f3f84bb3502cd1188dbc60cd975564eb3c3d4670 (diff) |
tools/intel_reg_dumper: Add support for debug register
Right now, we only check for hardware DRRS support. But much more can be
done with it. Some day.
Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/intel_reg_dumper.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/intel_reg_dumper.c b/tools/intel_reg_dumper.c index 021e4cc4..c167813c 100644 --- a/tools/intel_reg_dumper.c +++ b/tools/intel_reg_dumper.c @@ -255,6 +255,24 @@ DEBUGSTRING(i830_debug_pipestat) _OREG_UPDATE_STATUS); } +DEBUGSTRING(ivb_debug_port) +{ + char *drrs; + switch (val & (2 << 30)) { + case PORT_DBG_DRRS_HW_STATE_OFF: + drrs = "off"; + break; + case PORT_DBG_DRRS_HW_STATE_LOW: + drrs = "low"; + break; + case PORT_DBG_DRRS_HW_STATE_HIGH: + drrs = "high"; + break; + } + snprintf(result, len, "HW DRRS %s", + drrs); +} + DEBUGSTRING(i830_debug_hvtotal) { snprintf(result, len, "%d active, %d total", @@ -1674,6 +1692,8 @@ static struct reg_debug ironlake_debug_regs[] = { DEFINEREG(PCH_PP_ON_DELAYS), DEFINEREG(PCH_PP_OFF_DELAYS), DEFINEREG(PCH_PP_DIVISOR), + + DEFINEREG2(PORT_DBG, ivb_debug_port), }; static struct reg_debug i945gm_mi_regs[] = { |