Commit 4a421335 authored by Charlene Liu's avatar Charlene Liu Committed by Alex Deucher
Browse files

drm/amd/display: Enable vstateup hook for DCN401 to be reused



Add the hook to the DCN401 header file so that it can be reused in other
files

Reviewed-by: default avatarLeo Chen <leo.chen@amd.com>
Signed-off-by: default avatarCharlene Liu <Charlene.Liu@amd.com>
Signed-off-by: default avatarAurabindo Pillai <aurabindo.pillai@amd.com>
Tested-by: default avatarDan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 6ce8d536
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}
+2 −0
Original line number Diff line number Diff line
@@ -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 */