|
@@ -878,9 +878,14 @@ static bool vop_crtc_mode_fixup(struct drm_crtc *crtc,
|
|
|
const struct drm_display_mode *mode,
|
|
const struct drm_display_mode *mode,
|
|
|
struct drm_display_mode *adjusted_mode)
|
|
struct drm_display_mode *adjusted_mode)
|
|
|
{
|
|
{
|
|
|
|
|
+ struct vop *vop = to_vop(crtc);
|
|
|
|
|
+
|
|
|
if (adjusted_mode->htotal == 0 || adjusted_mode->vtotal == 0)
|
|
if (adjusted_mode->htotal == 0 || adjusted_mode->vtotal == 0)
|
|
|
return false;
|
|
return false;
|
|
|
|
|
|
|
|
|
|
+ adjusted_mode->clock =
|
|
|
|
|
+ clk_round_rate(vop->dclk, mode->clock * 1000) / 1000;
|
|
|
|
|
+
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
|
|
|
|