]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amd/display: add DCN301 specific logic for OTG programming
authorAurabindo Pillai <aurabindo.pillai@amd.com>
Wed, 12 Jul 2023 16:35:16 +0000 (12:35 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Jul 2023 21:31:38 +0000 (17:31 -0400)
commitb188069f788d6cbf081a73538e331e19892fbab6
tree438c72452a67a4add3ed4e4035e49a42b2f20cd2
parent69dc8023778334082225e2911c1f0d38734b71e9
drm/amd/display: add DCN301 specific logic for OTG programming

[Why&How]
DCN301 does not have FAMS hence the workaround needed on other DCN3x
variants related to OTG min/max selector programming is not applicable for it.
Hence isolate it and have it use the old sequence without workaround.

Fixes: 1598fc576420 ("drm/amd/display: Program OTG vtotal min/max selectors unconditionally for DCN1+")
Reviewed-by: Swapnil Patel <swapnil.patel@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Tested-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn301/Makefile
drivers/gpu/drm/amd/display/dc/dcn301/dcn301_optc.c [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dcn301/dcn301_optc.h [new file with mode: 0644]
drivers/gpu/drm/amd/display/dc/dcn301/dcn301_resource.c