drm/amd/display: Initialize DP ref clk with the correct clock
authorRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Thu, 21 Mar 2024 20:30:45 +0000 (14:30 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Apr 2024 02:05:22 +0000 (22:05 -0400)
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Acked-by: Roman Li <roman.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/dce_clk_mgr.c

index b77804cfde0f14fe62532d299fb23d965988d12f..2a5dd3a296b203a390345ae0e2b948490de3ddc7 100644 (file)
@@ -131,8 +131,8 @@ int dce_get_dp_ref_freq_khz(struct clk_mgr *clk_mgr_base)
        struct clk_mgr_internal *clk_mgr = TO_CLK_MGR_INTERNAL(clk_mgr_base);
        int dprefclk_wdivider;
        int dprefclk_src_sel;
-       int dp_ref_clk_khz;
-       int target_div = 600000;
+       int dp_ref_clk_khz = 600000;
+       int target_div;
 
        /* ASSERT DP Reference Clock source is from DFS*/
        REG_GET(DPREFCLK_CNTL, DPREFCLK_SRC_SEL, &dprefclk_src_sel);