]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/display: Enable vstateup hook for DCN401 to be reused
authorCharlene Liu <Charlene.Liu@amd.com>
Fri, 9 Jan 2026 02:45:41 +0000 (21:45 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 27 Jan 2026 23:10:17 +0000 (18:10 -0500)
Add the hook to the DCN401 header file so that it can be reused in other
files

Reviewed-by: Leo Chen <leo.chen@amd.com>
Signed-off-by: Charlene Liu <Charlene.Liu@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.c
drivers/gpu/drm/amd/display/dc/resource/dcn401/dcn401_resource.h

index 875ae97489d324aee8afe46370ab90bee65ffbbb..1cdbb65da4a335d4299e07f267618462a3715da3 100644 (file)
@@ -1772,7 +1772,7 @@ static int dcn401_get_power_profile(const struct dc_state *context)
        return dpm_level;
 }
 
-static unsigned int dcn401_get_vstartup_for_pipe(struct pipe_ctx *pipe_ctx)
+unsigned int dcn401_get_vstartup_for_pipe(struct pipe_ctx *pipe_ctx)
 {
        return pipe_ctx->global_sync.dcn4x.vstartup_lines;
 }
index 406246a9867ea4fe59b20d54f85a17581985b06f..08bec1755617447e6402c71502662e543fde9fed 100644 (file)
@@ -28,6 +28,8 @@ enum dc_status dcn401_validate_bandwidth(struct dc *dc,
 
 void dcn401_prepare_mcache_programming(struct dc *dc, struct dc_state *context);
 
+unsigned int dcn401_get_vstartup_for_pipe(struct pipe_ctx *pipe_ctx);
+
 /* Following are definitions for run time init of reg offsets */
 
 /* HUBP */