OMAP4: DSS2: HDMI: Select between HDMI VENC clock source.

Adding function to select between HDMI or VENC clock source.

Signed-off-by: Mythri P K <mythripk@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
Mythri P K 2011-03-09 16:31:38 +05:30 committed by Tomi Valkeinen
parent b119601d4e
commit 7ed024aa28
2 changed files with 11 additions and 0 deletions

View File

@ -605,6 +605,11 @@ void dss_set_dac_pwrdn_bgz(bool enable)
REG_FLD_MOD(DSS_CONTROL, enable, 5, 5); /* DAC Power-Down Control */ REG_FLD_MOD(DSS_CONTROL, enable, 5, 5); /* DAC Power-Down Control */
} }
void dss_select_hdmi_venc_clk_source(enum dss_hdmi_venc_clk_source_select hdmi)
{
REG_FLD_MOD(DSS_CONTROL, hdmi, 15, 15); /* VENC_HDMI_SWITCH */
}
static int dss_init(void) static int dss_init(void)
{ {
int r; int r;

View File

@ -126,6 +126,11 @@ enum dss_clk_source {
* OMAP4: DSS_FCLK */ * OMAP4: DSS_FCLK */
}; };
enum dss_hdmi_venc_clk_source_select {
DSS_VENC_TV_CLK = 0,
DSS_HDMI_M_PCLK = 1,
};
struct dss_clock_info { struct dss_clock_info {
/* rates that we get with dividers below */ /* rates that we get with dividers below */
unsigned long fck; unsigned long fck;
@ -214,6 +219,7 @@ void dss_recheck_connections(struct omap_dss_device *dssdev, bool force);
int dss_init_platform_driver(void); int dss_init_platform_driver(void);
void dss_uninit_platform_driver(void); void dss_uninit_platform_driver(void);
void dss_select_hdmi_venc_clk_source(enum dss_hdmi_venc_clk_source_select);
void dss_save_context(void); void dss_save_context(void);
void dss_restore_context(void); void dss_restore_context(void);
void dss_clk_enable(enum dss_clock clks); void dss_clk_enable(enum dss_clock clks);