Skip to content

Commit cb8bcc9

Browse files
committed
drm/amdgpu/display: fix build without CONFIG_DRM_AMD_DC_DCN3_0
Need to guard some new DCN3.0 stuff. Reviewed-by: Nicholas Kazlauskas <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent f0bfa78 commit cb8bcc9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/gpu/drm/amd/display/dc/dcn10/dcn10_optc.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,13 +288,16 @@ void optc1_program_timing(
288288
if (optc1_is_two_pixels_per_containter(&patched_crtc_timing) || optc1->opp_count == 2)
289289
h_div = H_TIMING_DIV_BY2;
290290

291+
#if defined(CONFIG_DRM_AMD_DC_DCN3_0)
291292
if (optc1->tg_mask->OTG_H_TIMING_DIV_MODE != 0) {
292293
if (optc1->opp_count == 4)
293294
h_div = H_TIMING_DIV_BY4;
294295

295296
REG_UPDATE(OTG_H_TIMING_CNTL,
296297
OTG_H_TIMING_DIV_MODE, h_div);
297-
} else {
298+
} else
299+
#endif
300+
{
298301
REG_UPDATE(OTG_H_TIMING_CNTL,
299302
OTG_H_TIMING_DIV_BY2, h_div);
300303
}

0 commit comments

Comments
 (0)