OSDN Git Service

drm/amd/display: Use set_vtotal_min_max to configure OTG VTOTAL
authorRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Fri, 12 Mar 2021 16:58:57 +0000 (11:58 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 10 Oct 2022 21:32:55 +0000 (17:32 -0400)
commit15e8b368981e1e8420f08b35bb12b794b200f4a0
tree37245c9ae58acc8c3123a1567127ed230ee92308
parent1298d9ab848653fc35431581d6e36662c7b6935a
drm/amd/display: Use set_vtotal_min_max to configure OTG VTOTAL

In multiple parts of the DCN code, we write directly to the
OTG_V_TOTAL_* registers in some OPTC functions. Let's avoid it by using
the set_vtotal_min_max.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.c
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_optc.c
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_optc.c
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h