mirror of
https://github.com/torvalds/linux.git
synced 2026-09-11 20:13:02 +02:00
drm/i915/cx0: program DDI_CLK_VALFREQ with DDI clock frequency
DDI_CLK_VALFREQ is programmed with the port clock, which for DP is the symbol clock computed assuming 8b/10b encoding (link_rate / 10). For DP 128b/132b (UHBR) rates and for HDMI FRL the port clock needs to be modfied. DDI_CLK_VALFREQ does not have any functional impact on H/w, it only records the frequency S/w intends to set. Use intel_ddi_link_symbol_clock() to write the correct DDI clock in kHz. Fixes:51390cc0e0("drm/i915/mtl: Add Support for C10 PHY message bus and pll programming") Fixes:73fc3abcb7("drm/i915/mtl: Enabling/disabling sequence Thunderbolt pll") Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com> Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com> Link: https://patch.msgid.link/20260811175844.2613721-3-suraj.kandpal@intel.com (cherry picked from commit 9ac3ee6c0f92cd09893bd442964fb6b0d6813b5e) Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
parent
900f48940a
commit
0cd42b346d
|
|
@ -3233,7 +3233,8 @@ static void intel_cx0pll_enable(struct intel_encoder *encoder,
|
|||
* 8. Program DDI_CLK_VALFREQ to match intended DDI
|
||||
* clock frequency.
|
||||
*/
|
||||
intel_de_write(display, DDI_CLK_VALFREQ(encoder->port), port_clock);
|
||||
intel_de_write(display, DDI_CLK_VALFREQ(encoder->port),
|
||||
intel_ddi_link_symbol_clock(encoder, port_clock));
|
||||
|
||||
/*
|
||||
* 9. Set PORT_CLOCK_CTL register PCLK PLL Request
|
||||
|
|
@ -3406,7 +3407,7 @@ void intel_mtl_tbt_pll_enable_clock(struct intel_encoder *encoder, int port_cloc
|
|||
* clock frequency.
|
||||
*/
|
||||
intel_de_write(display, DDI_CLK_VALFREQ(encoder->port),
|
||||
port_clock);
|
||||
intel_ddi_link_symbol_clock(encoder, port_clock));
|
||||
}
|
||||
|
||||
void intel_mtl_pll_enable(struct intel_encoder *encoder,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user