drm/amd/display: Isolate remaining FPU code in DCN32
authorJasdeep Dhillon <jasdeep.dhillon@amd.com>
Tue, 28 Feb 2023 16:46:31 +0000 (11:46 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Apr 2023 02:48:52 +0000 (22:48 -0400)
[Why]
DCN32 resource contains code that uses FPU.

[How]
Moved code into DCN32 FPU

Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Jasdeep Dhillon <jasdeep.dhillon@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.h

index 23a972f2885fe914007582eb2fa300df96404deb..47beb4ea779d30df03b6e5daf638eee79f9e7f05 100644 (file)
@@ -2876,3 +2876,9 @@ bool dcn32_find_vactive_pipe(struct dc *dc, const struct dc_state *context, uint
        }
        return vactive_found;
 }
+
+void dcn32_set_clock_limits(const struct _vcs_dpi_soc_bounding_box_st *soc_bb)
+{
+       dc_assert_fp_enabled();
+       dcn3_2_soc.clock_limits[0].dcfclk_mhz = 1200.0;
+}
index 9a0806a0e2ef0c5552ad85835743a14de1152755..dcf512cd30721645033a86dae9be51ed44d7aa16 100644 (file)
@@ -80,4 +80,6 @@ void dcn32_assign_fpo_vactive_candidate(struct dc *dc, const struct dc_state *co
 
 bool dcn32_find_vactive_pipe(struct dc *dc, const struct dc_state *context, uint32_t vactive_margin_req);
 
+void dcn32_set_clock_limits(const struct _vcs_dpi_soc_bounding_box_st *soc_bb);
+
 #endif