Skip to content

Commit 3159d41

Browse files
Dmytro Laktyushkinalexdeucher
authored andcommitted
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 <[email protected]> Reviewed-by: Eric Bernstein <[email protected]> Acked-by: Aurabindo Pillai <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 9017a48 commit 3159d41

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2294,7 +2294,8 @@ void dcn20_fpga_init_hw(struct dc *dc)
22942294

22952295
REG_UPDATE(DCHUBBUB_GLOBAL_TIMER_CNTL, DCHUBBUB_GLOBAL_TIMER_REFDIV, 2);
22962296
REG_UPDATE(DCHUBBUB_GLOBAL_TIMER_CNTL, DCHUBBUB_GLOBAL_TIMER_ENABLE, 1);
2297-
REG_WRITE(REFCLK_CNTL, 0);
2297+
if (REG(REFCLK_CNTL))
2298+
REG_WRITE(REFCLK_CNTL, 0);
22982299
//
22992300

23002301

0 commit comments

Comments
 (0)