summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/dc/mode.c
diff options
context:
space:
mode:
authorJon Mayo <jmayo@nvidia.com>2012-12-18 14:57:29 -0800
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 13:04:03 -0700
commit2a3dbff56ced2ed558d6477d20fa9469b8248c84 (patch)
treee034d58cc6a2df47691a0f31062032d73e8e4700 /drivers/video/tegra/dc/mode.c
parent6c30614889433c3b0381c5b06a785e051b25e1ff (diff)
video: tegra: dc: request bandwidth from isomgr
Report event TEGRA_DC_EXT_EVENT_BANDWIDTH through tegra_dc_ctrl device when there is not enough bandwidth. Bug 1169265 Change-Id: Ia95b1ecc7eb16db6f3a709e7c9efc59ab2490ead Signed-off-by: Jon Mayo <jmayo@nvidia.com> Reviewed-on: http://git-master/r/207766 Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'drivers/video/tegra/dc/mode.c')
-rw-r--r--drivers/video/tegra/dc/mode.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/video/tegra/dc/mode.c b/drivers/video/tegra/dc/mode.c
index 45c0746e9966..c860f34f52ed 100644
--- a/drivers/video/tegra/dc/mode.c
+++ b/drivers/video/tegra/dc/mode.c
@@ -3,7 +3,7 @@
*
* Copyright (C) 2010 Google, Inc.
*
- * Copyright (c) 2010-2012, NVIDIA CORPORATION, All rights reserved.
+ * Copyright (c) 2010-2013, NVIDIA CORPORATION, All rights reserved.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
@@ -23,6 +23,7 @@
#include <mach/clk.h>
#include <mach/dc.h>
+#include <mach/mc.h>
#include <trace/events/display.h>
#include "dc_reg.h"
@@ -201,7 +202,8 @@ int tegra_dc_program_mode(struct tegra_dc *dc, struct tegra_dc_mode *mode)
print_mode(dc, mode, __func__);
/* use default EMC rate when switching modes */
- dc->new_emc_clk_rate = tegra_dc_get_default_emc_clk_rate(dc);
+ dc->new_bw_kbps = tegra_emc_freq_req_to_bw(
+ tegra_dc_get_default_emc_clk_rate(dc) / 1000);
tegra_dc_program_bandwidth(dc, true);
tegra_dc_writel(dc, 0x0, DC_DISP_DISP_TIMING_OPTIONS);