summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorWen Yi <wyi@nvidia.com>2011-03-30 15:48:23 -0700
committerVarun Colbert <vcolbert@nvidia.com>2011-04-01 19:26:10 -0700
commit8e70c9ce2c7caaac96b643daa7adb007515ac68b (patch)
tree38ac80346db22b7f1d1f23d601647aeb237a0a4f /drivers
parent82727cdc199df35484927ba44813e431cc4a7944 (diff)
video: tegra: dc: emc scaling based on overlay and panel freq
Using a factor of two to increase the emc frequency required by the display panel to prevent underflow. Bug 800993 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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/tegra/dc/overlay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/tegra/dc/overlay.c b/drivers/video/tegra/dc/overlay.c
index 99aa4e8825e4..b76d87ced011 100644
--- a/drivers/video/tegra/dc/overlay.c
+++ b/drivers/video/tegra/dc/overlay.c
@@ -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);
}