drm/amd/display: check if REFCLK_CNTL register is present
authorDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Wed, 22 Apr 2020 22:07:52 +0000 (18:07 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Apr 2020 20:42:45 +0000 (16:42 -0400)
commit3159d41db3a04330c31ece32f8b29752fc114848
tree2168ca2ddff31e6536c1c529126f3d3a030ef9a8
parent9017a4897a20658f010bebea825262963c10afa6
drm/amd/display: check if REFCLK_CNTL register is present

Check before programming the register since it isn't present on
all IPs using this code.

Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Reviewed-by: Eric Bernstein <Eric.Bernstein@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c