From 00169c7695fd87a313b8d7de7daa07e948f8f0b7 Mon Sep 17 00:00:00 2001 From: Patrik Jakobsson Date: Tue, 19 Jun 2012 19:02:42 +0200 Subject: [PATCH] gma500: cdv: Reset dpll_md when output is LVDS Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/cdv_intel_display.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/gma500/cdv_intel_display.c b/drivers/gpu/drm/gma500/cdv_intel_display.c index c3e9a0f..ce10b9a 100644 --- a/drivers/gpu/drm/gma500/cdv_intel_display.c +++ b/drivers/gpu/drm/gma500/cdv_intel_display.c @@ -1086,7 +1086,9 @@ static int cdv_intel_crtc_mode_set(struct drm_crtc *crtc, return -EBUSY; } - { + if (is_lvds) { + REG_WRITE(map->dpll_md, 0); + } else { int sdvo_pixel_multiply = adjusted_mode->clock / mode->clock; REG_WRITE(map->dpll_md, (0 << DPLL_MD_UDI_DIVIDER_SHIFT) | ((sdvo_pixel_multiply - 1) << DPLL_MD_UDI_MULTIPLIER_SHIFT)); } -- 1.7.9.5