Unlike previous platforms that used PORT_TX_DFLEXDPSP
for max_lane calculation, MTL uses only PORT_TX_DFLEXPA1
from which the max_lanes has to be calculated.
Bspec: 50235, 65380
Cc: Mika Kahola <email address hidden>
Cc: Imre Deak <email address hidden>
Cc: Matt Roper <email address hidden>
Signed-off-by: Anusha Srivatsa <email address hidden>
Signed-off-by: Jose Roberto de Souza <email address hidden>
(cherrry-picked from https://patchwork.freedesktop.org/patch/528643/mbox/)
Signed-off-by: You-Sheng Yang <email address hidden>
The HPD live status for MTL has to be read from different set of
registers. MTL deserves a new function for this purpose
and cannot reuse the existing HPD live status detection
Signed-off-by: Anusha Srivatsa <email address hidden>
Signed-off-by: Imre Deak <email address hidden>
Signed-off-by: Mika Kahola <email address hidden>
(cherrry-picked from https://patchwork.freedesktop.org/patch/528639/mbox/)
Signed-off-by: You-Sheng Yang <email address hidden>
Add register writes to enable powering up Type-C subsystem i.e. TCSS.
For MeteorLake we need to request TCSS to power up and check the TCSS
power state after 500 us.
In addition, for PICA we need to set/clear the Type-C PHY ownnership
bit when Type-C device is connected/disconnected.
v2: Call tcss power request with correct parameter.
v3: Use de variant for register wait (Jani)
Xe_LPD+ defines interrupt bits for only DDI ports in the DE Port
Interrupt registers. The bits for Type-C ports are defined in the PICA
interrupt registers.
PICA is used for DP alt mode and TBT modes. Hotplug interruption is routed
from PICA chip to south display engine and from there to north display
engine. This patch adds functionality to enable hotplug detection for
all Type-C ports (4 ports available).
Differently from HPD in south display, PICA provides a dedicated HPD
control register for each supported port, so we loop over ports
ourselves instead of using intel_hpd_hotplug_enables() or
intel_get_hpd_pins().
BSpec: 49305, 55726, 65107, 65300
Signed-off-by: Mika Kahola <email address hidden>
Signed-off-by: Madhumitha Tolakanahalli Pradeep <email address hidden>
Signed-off-by: Gustavo Sousa <email address hidden>
Signed-off-by: Imre Deak <email address hidden>
(cherrry-picked from https://patchwork.freedesktop.org/patch/528642/mbox/)
Signed-off-by: You-Sheng Yang <email address hidden>