drm/i915/tgl: port to ddc pin mapping
authorLucas De Marchi <lucas.demarchi@intel.com>
Thu, 11 Jul 2019 17:31:12 +0000 (10:31 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 11 Jul 2019 23:31:23 +0000 (16:31 -0700)
commitfb81cbe46988cddfd9e6fd2bb9f7ce39cea0c380
tree01a4542399faaacfb65ba5f6523cc9f20277a999
parent3fd53262f0dd81361efcb5ccba8312525ee6c645
drm/i915/tgl: port to ddc pin mapping

Make the icl function generic so it is based on phy type and can be
applied to tgl as well.

I checked if this could not apply to EHL as well, but unfortunately
there the HPD and DDC/GMBUS pins for DDI C are mapped to TypeC Port 1
even though it doesn't have TC phy.

v2: don't add a separate function for TGL, but rather reuse the ICL one
    (suggested by Rodrigo)
v3: rebase after the introduction of enum phy and use it for the
    conversions

Cc: Anusha Srivatsa <anusha.srivatsa@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190711173115.28296-19-lucas.demarchi@intel.com
drivers/gpu/drm/i915/display/intel_hdmi.c