]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/cx0: Determine Cx0 PLL DP mode from PLL state
authorImre Deak <imre.deak@intel.com>
Mon, 17 Nov 2025 10:45:41 +0000 (12:45 +0200)
committerMika Kahola <mika.kahola@intel.com>
Wed, 19 Nov 2025 11:24:21 +0000 (13:24 +0200)
commit90fd33c2626008b8c5e6c30c44b480c21ea41c2d
tree27629b0a88189d8d27f0b6d3c5bc0824233ce5ec
parent8ad92b0733030841d5a728178f5c8a6f2c3e8f78
drm/i915/cx0: Determine Cx0 PLL DP mode from PLL state

The Cx0 PLL enable programming needs to know if the PLL is in DP or HDMI
mode. The PLL manager framework doesn't pass the CRTC state to the PLL's
enable hook, so prepare here for the conversion to use the PLL manager
for Cx0 PHY PLLs by determining the DP/HDMI mode from the PLL state.

For C10 PHYs use the fact that the HDMI divider value in the PLL
registers are set if and only if the PLL is in HDMI mode.

For C20 PHYs use the DP mode flag programmed to the VDR SERDES register,
which is set if and only if the PLL is in DP mode.

Assert that the above PLL/VDR SERDES register values match the DP/HDMI
mode being configured already during state computation.

This also allows dropping the is_dp param from the
__intel_cx0pll_enable() function, since it can retrieve this now from
the PLL state.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Mika Kahola <mika.kahola@intel.com>
Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://lore.kernel.org/r/20251117104602.2363671-12-mika.kahola@intel.com
drivers/gpu/drm/i915/display/intel_cx0_phy.c