video: tegra: dc: emc scaling based on overlay and panel freq
Wen Yi [Wed, 30 Mar 2011 22:48:23 +0000 (15:48 -0700)]
Using a factor of two to increase the emc frequency required by
the display panel to prevent underflow.

Bug 800993

Original-Change-Id: Ibb60a88a4efb384bce6f1277022b335540f11a2e
Reviewed-on: http://git-master/r/24862
Reviewed-by: Wen Yi <wyi@nvidia.com>
Tested-by: Wen Yi <wyi@nvidia.com>
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R4894df954d75da78e87e8b7116829809c61101bb

drivers/video/tegra/dc/overlay.c

index 99aa4e8..b76d87c 100644 (file)
@@ -312,7 +312,7 @@ static void tegra_overlay_set_emc_freq(struct tegra_overlay_info *dev)
 
        for (i = 0; i < dev->dc->n_windows; i++) {
                if (dev->overlays[i].owner != NULL)
-                       emc_freq += dev->dc->mode.pclk*(i==1?2:1);
+                       emc_freq += dev->dc->mode.pclk*(i==1?2:1)*2;
        }
        clk_set_rate(dev->dc->emc_clk, emc_freq);
 }