diff options
| author | Imre Deak <imre.deak@intel.com> | 2026-10-29 13:30:15 +0200 |
|---|---|---|
| committer | Joonas Lahtinen <joonas.lahtinen@linux.intel.com> | 2026-11-09 13:36:39 +0200 |
| commit | 899f7dc007391b8e3fd514b30645cdb263970db3 (patch) | |
| tree | ab46a7d1f72376e6c44a174e241029774683faa7 /drivers/gpu | |
| parent | af8b4d4817678a255ee310dbca983193cc09a075 (diff) | |
| download | linux-899f7dc007391b8e3fd514b30645cdb263970db3.tar.gz linux-899f7dc007391b8e3fd514b30645cdb263970db3.zip | |
drm/i915/ptl+: Add TypeC HPD pin selection for port B
Handle the TypeC PHY on port B case while mapping the port to an HPD
pin. This prepares for an upcoming change that will set port B's PHY
type to TypeC on PTL+ platforms with an eDP panel connected to a TypeC
PHY.
Keep the existing port >= PORT_TC1 case and its HPD pin mapping for
DG2, where PORT_TC1 has a non-TypeC PHY.
CC: stable@vger.kernel.org # 6.14+
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Link: https://patch.msgid.link/20261029113017.618286-5-imre.deak@intel.com
(cherry picked from commit 0f35ced2b44db21527cdb80065e80693fb0ab563)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Diffstat (limited to 'drivers/gpu')
| -rw-r--r-- | drivers/gpu/drm/i915/display/intel_ddi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_ddi.c b/drivers/gpu/drm/i915/display/intel_ddi.c index 6feb277f951e..d7c7ef22b73c 100644 --- a/drivers/gpu/drm/i915/display/intel_ddi.c +++ b/drivers/gpu/drm/i915/display/intel_ddi.c @@ -5053,6 +5053,8 @@ static enum hpd_pin xelpd_hpd_pin(struct intel_display *display, enum port port) return HPD_PORT_D + port - PORT_D_XELPD; else if (port >= PORT_TC1) return HPD_PORT_TC1 + port - PORT_TC1; + else if (intel_phy_is_tc(display, intel_port_to_phy(display, port))) + return HPD_PORT_TC1 + intel_port_to_tc(display, port) - TC_PORT_1; else return HPD_PORT_A + port - PORT_A; } |
