summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHunk Lin <hulin@nvidia.com>2012-05-03 05:35:47 +0800
committerMatthew Pedro <mapedro@nvidia.com>2012-05-18 11:42:23 -0700
commita20ac0850774494745e0ab3efd4215b50555ee8b (patch)
tree80e0e69cf04931eff5e267ce5e0a7330c84c8317
parent5ee48af7d25f136e7e4ee651809301bf7459813b (diff)
Revert "video: tegra: dc: Set default videomode"
This reverts commit 9349cedf17f9b3c10760c8d48f831473f87a3a15. It is reviewed on http://git-master/r/99635 It will cause HDMI power ON and emc clock bump up to 667Mhz after resume from LP0. bug 930136 Change-Id: I130494fdb381b3d322ac0e3fc8be2e44f2c2d7a7 Signed-off-by: Hunk Lin <hulin@nvidia.com> Reviewed-on: http://git-master/r/103092 GVS: Gerrit_Virtual_Submit Tested-by: Shashank Sharma <shashanks@nvidia.com> Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
-rw-r--r--arch/arm/mach-tegra/board-cardhu-panel.c2
-rw-r--r--drivers/video/tegra/dc/dc.c27
2 files changed, 3 insertions, 26 deletions
diff --git a/arch/arm/mach-tegra/board-cardhu-panel.c b/arch/arm/mach-tegra/board-cardhu-panel.c
index 5c7bd877f6a6..80adfc030921 100644
--- a/arch/arm/mach-tegra/board-cardhu-panel.c
+++ b/arch/arm/mach-tegra/board-cardhu-panel.c
@@ -734,7 +734,7 @@ static struct tegra_dc_out cardhu_disp2_out = {
};
static struct tegra_dc_platform_data cardhu_disp2_pdata = {
- .flags = TEGRA_DC_FLAG_ENABLED,
+ .flags = 0,
.default_out = &cardhu_disp2_out,
.fb = &cardhu_hdmi_fb_data,
.emc_clk_rate = 300000000,
diff --git a/drivers/video/tegra/dc/dc.c b/drivers/video/tegra/dc/dc.c
index 7161d8bf1694..11e62815f45a 100644
--- a/drivers/video/tegra/dc/dc.c
+++ b/drivers/video/tegra/dc/dc.c
@@ -64,20 +64,6 @@
#endif
static int no_vsync;
-static struct fb_videomode tegra_dc_hdmi_fallback_mode = {
- .refresh = 60,
- .xres = 640,
- .yres = 480,
- .pixclock = KHZ2PICOS(25200),
- .hsync_len = 96, /* h_sync_width */
- .vsync_len = 2, /* v_sync_width */
- .left_margin = 48, /* h_back_porch */
- .upper_margin = 33, /* v_back_porch */
- .right_margin = 16, /* h_front_porch */
- .lower_margin = 10, /* v_front_porch */
- .vmode = 0,
- .sync = 0,
-};
static void _tegra_dc_controller_disable(struct tegra_dc *dc);
@@ -2636,19 +2622,10 @@ static bool _tegra_dc_controller_reset_enable(struct tegra_dc *dc)
}
#endif
-static int _tegra_dc_set_default_videomode(struct tegra_dc *dc)
-{
- return tegra_dc_set_fb_mode(dc, &tegra_dc_hdmi_fallback_mode, 0);
-}
-
static bool _tegra_dc_enable(struct tegra_dc *dc)
{
- if (dc->mode.pclk == 0) {
- /* DC enable called but no videomode is loaded.
- Set fallback mode to enable driver with.*/
- if (_tegra_dc_set_default_videomode(dc))
- return false;
- }
+ if (dc->mode.pclk == 0)
+ return false;
if (!dc->out)
return false;