summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_reg.h
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2020-10-28 22:33:21 +0100
committerVille Syrjälä <ville.syrjala@linux.intel.com>2020-10-30 14:07:09 +0100
commit2ea63927b6f677f250e26126c7e822679c20a460 (patch)
tree03cf35849ca181f23c60606bb78add04edeb9f38 /drivers/gpu/drm/i915/i915_reg.h
parentdrm/i915: Remove per-platform IIR HPD masking (diff)
downloadlinux-2ea63927b6f677f250e26126c7e822679c20a460.tar.xz
linux-2ea63927b6f677f250e26126c7e822679c20a460.zip
drm/i915: Enable hpd logic only for ports that are present
Let's enable the hardware hpd logic only for the ports we can actually use. In theory this may save some miniscule amounts of power, and more importantly it eliminates a lot if platform specific codepaths since the generic thing can now deal with any combination of ports being present on each SKU. v2: Deal with DG1 v3: Deal with DG1 some more Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20201028213323.5423-18-ville.syrjala@linux.intel.com Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_reg.h')
-rw-r--r--drivers/gpu/drm/i915/i915_reg.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h
index 290848647b6a..bb0656875697 100644
--- a/drivers/gpu/drm/i915/i915_reg.h
+++ b/drivers/gpu/drm/i915/i915_reg.h
@@ -8444,23 +8444,6 @@ enum {
#define SHPD_FILTER_CNT _MMIO(0xc4038)
#define SHPD_FILTER_CNT_500_ADJ 0x001D9
-#define ICP_DDI_HPD_ENABLE_MASK (SHOTPLUG_CTL_DDI_HPD_ENABLE(HPD_PORT_B) | \
- SHOTPLUG_CTL_DDI_HPD_ENABLE(HPD_PORT_A))
-#define ICP_TC_HPD_ENABLE_MASK (ICP_TC_HPD_ENABLE(HPD_PORT_TC4) | \
- ICP_TC_HPD_ENABLE(HPD_PORT_TC3) | \
- ICP_TC_HPD_ENABLE(HPD_PORT_TC2) | \
- ICP_TC_HPD_ENABLE(HPD_PORT_TC1))
-#define TGP_DDI_HPD_ENABLE_MASK (SHOTPLUG_CTL_DDI_HPD_ENABLE(HPD_PORT_C) | \
- SHOTPLUG_CTL_DDI_HPD_ENABLE(HPD_PORT_B) | \
- SHOTPLUG_CTL_DDI_HPD_ENABLE(HPD_PORT_A))
-#define TGP_TC_HPD_ENABLE_MASK (ICP_TC_HPD_ENABLE(HPD_PORT_TC6) | \
- ICP_TC_HPD_ENABLE(HPD_PORT_TC5) | \
- ICP_TC_HPD_ENABLE_MASK)
-#define DG1_DDI_HPD_ENABLE_MASK (SHOTPLUG_CTL_DDI_HPD_ENABLE(HPD_PORT_D) | \
- SHOTPLUG_CTL_DDI_HPD_ENABLE(HPD_PORT_C) | \
- SHOTPLUG_CTL_DDI_HPD_ENABLE(HPD_PORT_B) | \
- SHOTPLUG_CTL_DDI_HPD_ENABLE(HPD_PORT_A))
-
#define _PCH_DPLL_A 0xc6014
#define _PCH_DPLL_B 0xc6018
#define PCH_DPLL(pll) _MMIO((pll) == 0 ? _PCH_DPLL_A : _PCH_DPLL_B)