diff options
author | Shashank Sharma <shashanks@nvidia.com> | 2012-04-30 17:36:24 +0530 |
---|---|---|
committer | Matthew Pedro <mapedro@nvidia.com> | 2012-05-22 15:15:55 -0700 |
commit | 6a784625cc117a3e03cabc228d7bcc4fe738fd5b (patch) | |
tree | 3f56f6bcee4ce1bc45b31852cab4f88f6fdce479 /arch/arm | |
parent | 5ee0824abb56bdbb4d3d5edcb12c995d5500af18 (diff) |
video: tegra: dc: Set default videomode
Set default videomode during the dc probe. This patch enables
HDMI during the probe only and fixes following issues:
1. Until Xinit there was no display on HDMI.
2. Framebuffer console on HDMI needs it to be enabled well before
Xinit.
To avoide un-necessary powering on HDMI,Check HPD and enable HDMI
only if it's present.
Bug: 930136
Bug: 977705
Change-Id: Ifb71328e5df0ccbb5751669db71fd24719fe3738
Signed-off-by: Shashank Sharma <shashanks@nvidia.com>
Reviewed-on: http://git-master/r/100656
(cherry picked from commit dfd813141283891e397d73958aabad38eddfe350)
Reviewed-on: http://git-master/r/103630
GVS: Gerrit_Virtual_Submit
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-tegra/board-cardhu-panel.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-tegra/include/mach/dc.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/board-cardhu-panel.c b/arch/arm/mach-tegra/board-cardhu-panel.c index 80adfc030921..5c7bd877f6a6 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 = 0, + .flags = TEGRA_DC_FLAG_ENABLED, .default_out = &cardhu_disp2_out, .fb = &cardhu_hdmi_fb_data, .emc_clk_rate = 300000000, diff --git a/arch/arm/mach-tegra/include/mach/dc.h b/arch/arm/mach-tegra/include/mach/dc.h index a5f7210f2b29..3b9b431dea82 100644 --- a/arch/arm/mach-tegra/include/mach/dc.h +++ b/arch/arm/mach-tegra/include/mach/dc.h @@ -505,6 +505,8 @@ struct tegra_dc_platform_data { struct tegra_dc *tegra_dc_get_dc(unsigned idx); struct tegra_dc_win *tegra_dc_get_window(struct tegra_dc *dc, unsigned win); bool tegra_dc_get_connected(struct tegra_dc *); +bool tegra_dc_hpd(struct tegra_dc *dc); + void tegra_dc_blank(struct tegra_dc *dc); |