Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/i915/lt_phy: Get encoder configuration for xe3plpd platform

Reuse mtl_ddi_*_get_config functions now that all hooks are in place.

Signed-off-by: Mika Kahola <mika.kahola@intel.com>
Reviewed-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://patch.msgid.link/20260312080657.2648265-21-mika.kahola@intel.com

+4 -16
+4 -16
drivers/gpu/drm/i915/display/intel_ddi.c
··· 4243 4243 &crtc_state->dpll_hw_state); 4244 4244 } 4245 4245 4246 - static void xe3plpd_ddi_get_config(struct intel_encoder *encoder, 4247 - struct intel_crtc_state *crtc_state) 4248 - { 4249 - struct intel_display *display = to_intel_display(encoder); 4250 - 4251 - intel_lt_phy_pll_readout_hw_state(encoder, &crtc_state->dpll_hw_state.ltpll); 4252 - 4253 - if (crtc_state->dpll_hw_state.ltpll.tbt_mode) 4254 - crtc_state->port_clock = intel_mtl_tbt_calc_port_clock(encoder); 4255 - else 4256 - crtc_state->port_clock = 4257 - intel_lt_phy_calc_port_clock(display, &crtc_state->dpll_hw_state.ltpll); 4258 - intel_ddi_get_config(encoder, crtc_state); 4259 - } 4260 - 4261 4246 static bool icl_ddi_tc_pll_is_tbt(const struct intel_dpll *pll) 4262 4247 { 4263 4248 return pll->info->id == DPLL_ID_ICL_TBTPLL; ··· 5286 5301 encoder->enable_clock = intel_mtl_pll_enable_clock; 5287 5302 encoder->disable_clock = intel_mtl_pll_disable_clock; 5288 5303 encoder->port_pll_type = intel_mtl_port_pll_type; 5289 - encoder->get_config = xe3plpd_ddi_get_config; 5304 + if (intel_encoder_is_tc(encoder)) 5305 + encoder->get_config = mtl_ddi_tc_phy_get_config; 5306 + else 5307 + encoder->get_config = mtl_ddi_non_tc_phy_get_config; 5290 5308 } else if (DISPLAY_VER(display) >= 14) { 5291 5309 encoder->enable_clock = intel_mtl_pll_enable_clock; 5292 5310 encoder->disable_clock = intel_mtl_pll_disable_clock;