]> Pileus Git - ~andy/linux/blobdiff - drivers/video/omap2/dss/hdmi.c
OMAPDSS: DISPC: Get correct pixel clock for TV manager
[~andy/linux] / drivers / video / omap2 / dss / hdmi.c
index 7818670026622877ab957a291eb01ec195ea970e..2f554ae6858e90b9264f67b427ce1470dda7b597 100644 (file)
@@ -266,6 +266,12 @@ static void update_hdmi_timings(struct hdmi_config *cfg,
        cfg->timings.hsync_pol = cea_vesa_timings[code].hsync_pol;
 }
 
+unsigned long hdmi_get_pixel_clock(void)
+{
+       /* HDMI Pixel Clock in Mhz */
+       return hdmi.ip_data.cfg.timings.timings.pixel_clock * 10000;
+}
+
 static void hdmi_compute_pll(struct omap_dss_device *dssdev, int phy,
                struct hdmi_pll_info *pi)
 {