[PATCH 02/11] drm/i915: Name the "iboost bit"
Timo Aaltonen
tjaalton at ubuntu.com
Fri May 11 06:20:52 UTC 2018
From: Ville Syrjälä <ville.syrjala at linux.intel.com>
BugLink: http://bugs.launchpad.net/bugs/1770565
Give a proper name for the SKL DDI_BUF_TRANS iboost bit.
Cc: David Weinehall <david.weinehall at linux.intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1468328376-6380-3-git-send-email-ville.syrjala@linux.intel.com
Reviewed-by: David Weinehall <david.weinehall at linux.intel.com>
(cherry picked from commit c110ae6cffddb81cb69a8c1a57ce4b7ff2a42f99)
Signed-off-by: Timo Aaltonen <timo.aaltonen at canonical.com>
---
ubuntu/i915/i915_reg.h | 1 +
ubuntu/i915/intel_ddi.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/ubuntu/i915/i915_reg.h b/ubuntu/i915/i915_reg.h
index ffd6ab76db12..41c8b44c9eda 100644
--- a/ubuntu/i915/i915_reg.h
+++ b/ubuntu/i915/i915_reg.h
@@ -7436,6 +7436,7 @@ enum skl_disp_power_wells {
#define _DDI_BUF_TRANS_A 0x64E00
#define _DDI_BUF_TRANS_B 0x64E60
#define DDI_BUF_TRANS_LO(port, i) _MMIO(_PORT(port, _DDI_BUF_TRANS_A, _DDI_BUF_TRANS_B) + (i) * 8)
+#define DDI_BUF_BALANCE_LEG_ENABLE (1 << 31)
#define DDI_BUF_TRANS_HI(port, i) _MMIO(_PORT(port, _DDI_BUF_TRANS_A, _DDI_BUF_TRANS_B) + (i) * 8 + 4)
/* Sideband Interface (SBI) is programmed indirectly, via
diff --git a/ubuntu/i915/intel_ddi.c b/ubuntu/i915/intel_ddi.c
index d2082e9cd7f1..f44a6b3446c9 100644
--- a/ubuntu/i915/intel_ddi.c
+++ b/ubuntu/i915/intel_ddi.c
@@ -434,7 +434,7 @@ void intel_prepare_ddi_buffer(struct intel_encoder *encoder)
/* If we're boosting the current, set bit 31 of trans1 */
if (dev_priv->vbt.ddi_port_info[port].hdmi_boost_level ||
dev_priv->vbt.ddi_port_info[port].dp_boost_level)
- iboost_bit = 1<<31;
+ iboost_bit = DDI_BUF_BALANCE_LEG_ENABLE;
if (WARN_ON(encoder->type == INTEL_OUTPUT_EDP &&
port != PORT_A && port != PORT_E &&
--
2.17.0
More information about the kernel-team
mailing list