summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/dc/dc.c
diff options
context:
space:
mode:
authorJon Mayo <jmayo@nvidia.com>2012-01-06 12:08:07 -0800
committerRohan Somvanshi <rsomvanshi@nvidia.com>2012-01-12 09:17:50 -0800
commit3929968b672725bd85d06f489659fa5eb6ae6d5a (patch)
tree2f79d61b989b956d57319997b56b82bdd58293e8 /drivers/video/tegra/dc/dc.c
parent546729d2e7a9dbb55aa4d5f6ba8ad59fa9a79361 (diff)
Revert "video: tegra: dc: use highest bandwidth setting"
This reverts commit af9a6eb54c031a8cca1477134d07e1ef2b807be3. Test reports were inconclusive on the effectiveness of this change. Change-Id: I859a14d2e2dcd9eed3a1c64f35e4f1c077660311 Reviewed-on: http://git-master/r/74021 Reviewed-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Tested-by: Rohan Somvanshi <rsomvanshi@nvidia.com> Reviewed-on: http://git-master/r/74550 Reviewed-by: Varun Wadekar <vwadekar@nvidia.com> Tested-by: Varun Wadekar <vwadekar@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Diffstat (limited to 'drivers/video/tegra/dc/dc.c')
-rw-r--r--drivers/video/tegra/dc/dc.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/video/tegra/dc/dc.c b/drivers/video/tegra/dc/dc.c
index e9bbf11d9019..87ef9c4395dc 100644
--- a/drivers/video/tegra/dc/dc.c
+++ b/drivers/video/tegra/dc/dc.c
@@ -977,24 +977,6 @@ unsigned long tegra_dc_get_bandwidth(struct tegra_dc_win *windows[], int n)
return tegra_dc_find_max_bandwidth(windows, n);
}
-/* program bandwidth needs if higher than old bandwidth */
-static void tegra_dc_increase_bandwidth(struct tegra_dc *dc)
-{
- unsigned i;
-
- if (dc->emc_clk_rate < dc->new_emc_clk_rate) {
- dc->emc_clk_rate = dc->new_emc_clk_rate;
- clk_set_rate(dc->emc_clk, dc->emc_clk_rate);
- }
-
- for (i = 0; i < DC_N_WINDOWS; i++) {
- struct tegra_dc_win *w = &dc->windows[i];
- if (w->bandwidth < w->new_bandwidth && w->new_bandwidth != 0)
- tegra_dc_set_latency_allowance(dc, w);
- }
-}
-
-/* program the current bandwidth */
static void tegra_dc_program_bandwidth(struct tegra_dc *dc)
{
unsigned i;
@@ -1252,7 +1234,6 @@ int tegra_dc_update_windows(struct tegra_dc_win *windows[], int n)
}
tegra_dc_set_dynamic_emc(windows, n);
- tegra_dc_increase_bandwidth(dc);
tegra_dc_writel(dc, update_mask << 8, DC_CMD_STATE_CONTROL);