Skip to content

Commit 82b047d

Browse files
drm: atmel-hlcdc: bypass LCDC pixel clock divider with LCDC generic clock
In SAM9X7 SoC where XLCDC IP is used, add support to bypass the LCDC pixel clock divider when LCDC Generic clock is enabled and used to match and drive the panel requested Pixel clock. Signed-off-by: Manikandan Muralidharan <manikandan.m@microchip.com>
1 parent 26208f0 commit 82b047d

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,14 @@ static void atmel_hlcdc_crtc_mode_set_nofb(struct drm_crtc *c)
163163

164164
if (div_low >= 2 &&
165165
((prate / div_low >= mode_rate) &&
166-
(prate / div < mode_rate)))
166+
(prate / div < mode_rate))) {
167167
div = div_low;
168+
} else {
169+
if (is_xlcdc) {
170+
cfg |= ATMEL_XLCDC_CLKBYP;
171+
mask |= ATMEL_XLCDC_CLKBYP;
172+
}
173+
}
168174
}
169175
cfg |= ATMEL_HLCDC_CLKDIV(div);
170176
}

0 commit comments

Comments
 (0)