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/cx0: Add MTL+ .get_freq hook

Add .get_freq hook to support dpll framework for MTL+
platforms.

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-27-mika.kahola@intel.com

+13
+13
drivers/gpu/drm/i915/display/intel_dpll_mgr.c
··· 4379 4379 return intel_cx0pll_readout_hw_state(encoder, &dpll_hw_state->cx0pll); 4380 4380 } 4381 4381 4382 + static int mtl_pll_get_freq(struct intel_display *display, 4383 + const struct intel_dpll *pll, 4384 + const struct intel_dpll_hw_state *dpll_hw_state) 4385 + { 4386 + struct intel_encoder *encoder = get_intel_encoder(display, pll); 4387 + 4388 + if (drm_WARN_ON(display->drm, !encoder)) 4389 + return -EINVAL; 4390 + 4391 + return intel_cx0pll_calc_port_clock(encoder, &dpll_hw_state->cx0pll); 4392 + } 4393 + 4382 4394 static const struct intel_dpll_funcs mtl_pll_funcs = { 4383 4395 .get_hw_state = mtl_pll_get_hw_state, 4396 + .get_freq = mtl_pll_get_freq, 4384 4397 }; 4385 4398 4386 4399 static const struct dpll_info mtl_plls[] = {