drm/amd/display: Add DIG_CLOCK_PATTERN in the transmitter control
authorDerek Lai <Derek.Lai@amd.com>
Tue, 26 Jan 2021 02:42:45 +0000 (10:42 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 9 Feb 2021 20:30:42 +0000 (15:30 -0500)
commit166590ccb92c9805045b94b6ee53edd166de2bcd
tree19a15fe6856e8f03c36be933c5e917d744ff7202
parentbd0c064c161c4bbfe69b50851c10955a9066deff
drm/amd/display: Add DIG_CLOCK_PATTERN in the transmitter control

[Why and How]
VBIOS program DIG_CLK_PATTERN using engine ID instead of PHY ID.
Workaround by writing value for 0x1f (for HDMI) after calling vbios.

Signed-off-by: Derek Lai <Derek.Lai@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Anson Jacob <Anson.Jacob@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_link_encoder.c
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_link_encoder.h
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_link_encoder.c