From 5ef6852e7aa750e47c44253763963d6495a471b2 Mon Sep 17 00:00:00 2001 From: Sujeet Baranwal Date: Wed, 28 Sep 2011 20:41:43 +0530 Subject: OMAP4: DSS: HDMI: Handle sync lost errors for TV The currrent code doesn't handle the SYNC_LOST error. The panel needs to be disabled & enabled in case of SYNC_LOST. To avoid edid read in this case, a flag is added which would not alter the value of custom_edid & edid_set flag. Change-Id: I11a17e5e1eda736c66b6d92973ede085d57dbd9d Signed-off-by: Baranwal Sujeet Signed-off-by: Muralidhar Dixit --- include/video/omapdss.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/video') diff --git a/include/video/omapdss.h b/include/video/omapdss.h index 0d63f4b..a69f177 100644 --- a/include/video/omapdss.h +++ b/include/video/omapdss.h @@ -474,6 +474,7 @@ struct omap_dss_device { enum omap_channel channel; bool first_vsync; + bool sync_lost_error; union { struct { -- cgit v1.1 From a275463e711170def383a249804698fad6365d5e Mon Sep 17 00:00:00 2001 From: Lajos Molnar Date: Wed, 5 Oct 2011 18:28:28 -0500 Subject: OMAP: DSS: Add panel dimensions to the dss device structure Created common omapdss_display_get_dimensions() that can retrieve dimensions from either the driver's get_dimension() hook (if provided), or from the panel dimensions. HDMI updates panel dimensions based on the EDID information. Change-Id: Ic47d1bfb96dfde4003ad30830074c44e2a550f6f Signed-off-by: Lajos Molnar --- include/video/omapdss.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/video') diff --git a/include/video/omapdss.h b/include/video/omapdss.h index a69f177..f3c314a 100644 --- a/include/video/omapdss.h +++ b/include/video/omapdss.h @@ -553,6 +553,9 @@ struct omap_dss_device { enum omap_panel_config config; struct fb_monspecs monspecs; + + u32 width_in_um; + u32 height_in_um; } panel; struct { @@ -690,6 +693,9 @@ void omap_dispc_set_irq_type(int channel, enum omap_dispc_irq_type type); #define to_dss_driver(x) container_of((x), struct omap_dss_driver, driver) #define to_dss_device(x) container_of((x), struct omap_dss_device, dev) +void omapdss_display_get_dimensions(struct omap_dss_device *dssdev, + u32 *width_in_um, u32 *height_in_um); + void omapdss_dsi_vc_enable_hs(struct omap_dss_device *dssdev, int channel, bool enable); int omapdss_dsi_enable_te(struct omap_dss_device *dssdev, bool enable); -- cgit v1.1