Commit 48cf0a1e authored by Matt Roper's avatar Matt Roper

drm/i915/ehl: Map MCC pins based on PHY, not port

Now that we distinguish between phy and port(ddi), mcc_port_to_ddc_pin
should use the phy, not the DDI, for determining DDC pins.

We're only converting the MCC function at the moment since EHL is the
only platform that has configurations where port!=phy.

Cc: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: default avatarMatt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190712221641.21031-1-matthew.d.roper@intel.comReviewed-by: default avatarJosé Roberto de Souza <jose.souza@intel.com>
parent 506927ec
...@@ -2943,20 +2943,21 @@ static u8 icl_port_to_ddc_pin(struct drm_i915_private *dev_priv, enum port port) ...@@ -2943,20 +2943,21 @@ static u8 icl_port_to_ddc_pin(struct drm_i915_private *dev_priv, enum port port)
static u8 mcc_port_to_ddc_pin(struct drm_i915_private *dev_priv, enum port port) static u8 mcc_port_to_ddc_pin(struct drm_i915_private *dev_priv, enum port port)
{ {
enum phy phy = intel_port_to_phy(dev_priv, port);
u8 ddc_pin; u8 ddc_pin;
switch (port) { switch (phy) {
case PORT_A: case PHY_A:
ddc_pin = GMBUS_PIN_1_BXT; ddc_pin = GMBUS_PIN_1_BXT;
break; break;
case PORT_B: case PHY_B:
ddc_pin = GMBUS_PIN_2_BXT; ddc_pin = GMBUS_PIN_2_BXT;
break; break;
case PORT_C: case PHY_C:
ddc_pin = GMBUS_PIN_9_TC1_ICP; ddc_pin = GMBUS_PIN_9_TC1_ICP;
break; break;
default: default:
MISSING_CASE(port); MISSING_CASE(phy);
ddc_pin = GMBUS_PIN_1_BXT; ddc_pin = GMBUS_PIN_1_BXT;
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment