drm/amd/display: Disable DTB Ref Clock Switching in dcn32
authorDillon Varone <dillon.varone@amd.com>
Wed, 13 Apr 2022 21:54:19 +0000 (17:54 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 3 Jun 2022 20:45:00 +0000 (16:45 -0400)
[How & Why]
To be enabled once PMFW supports it.

Signed-off-by: Dillon Varone <dillon.varone@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c

index 774de29..f147c65 100644 (file)
@@ -607,6 +607,10 @@ void dcn32_clk_mgr_construct(
        if (clk_mgr->base.dentist_vco_freq_khz == 0)
                clk_mgr->base.dentist_vco_freq_khz = 4300000; /* Updated as per HW docs */
 
+       if (clk_mgr->dccg->ref_dtbclk_khz != clk_mgr->base.boot_snapshot.dtbclk) {
+               clk_mgr->dccg->ref_dtbclk_khz = clk_mgr->base.boot_snapshot.dtbclk;
+       }
+
        if (clk_mgr->base.boot_snapshot.dprefclk != 0) {
                //ASSERT(clk_mgr->base.dprefclk_khz == clk_mgr->base.boot_snapshot.dprefclk);
                //clk_mgr->base.dprefclk_khz = clk_mgr->base.boot_snapshot.dprefclk;