Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 339633
b: refs/heads/master
c: 6fa4490
h: refs/heads/master
i:
  339631: c0f6d2f
v: v3
  • Loading branch information
Tomi Valkeinen committed Oct 16, 2012
1 parent 5f8b698 commit b4a30d6
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bd81ed0818875e233a3d400cc3c70454a0a53c08
refs/heads/master: 6fa44907eef4aed168413b6883ddc1fa2efff201
14 changes: 12 additions & 2 deletions trunk/drivers/video/omap2/dss/dss_features.c
Original file line number Diff line number Diff line change
Expand Up @@ -825,10 +825,20 @@ static const struct ti_hdmi_ip_ops omap4_hdmi_functions = {

};

void dss_init_hdmi_ip_ops(struct hdmi_ip_data *ip_data)
void dss_init_hdmi_ip_ops(struct hdmi_ip_data *ip_data,
enum omapdss_version version)
{
if (cpu_is_omap44xx())
switch (version) {
case OMAPDSS_VER_OMAP4430_ES1:
case OMAPDSS_VER_OMAP4430_ES2:
case OMAPDSS_VER_OMAP4:
ip_data->ops = &omap4_hdmi_functions;
break;
default:
ip_data->ops = NULL;
}

WARN_ON(ip_data->ops == NULL);
}
#endif

Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/video/omap2/dss/dss_features.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ bool dss_has_feature(enum dss_feat_id id);
void dss_feat_get_reg_field(enum dss_feat_reg_field id, u8 *start, u8 *end);
void dss_features_init(enum omapdss_version version);
#if defined(CONFIG_OMAP4_DSS_HDMI)
void dss_init_hdmi_ip_ops(struct hdmi_ip_data *ip_data);
void dss_init_hdmi_ip_ops(struct hdmi_ip_data *ip_data,
enum omapdss_version version);
#endif
#endif
3 changes: 2 additions & 1 deletion trunk/drivers/video/omap2/dss/hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ static void hdmi_runtime_put(void)

static int __init hdmi_init_display(struct omap_dss_device *dssdev)
{
struct omap_dss_board_info *pdata = hdmi.pdev->dev.platform_data;
int r;

struct gpio gpios[] = {
Expand All @@ -333,7 +334,7 @@ static int __init hdmi_init_display(struct omap_dss_device *dssdev)

DSSDBG("init_display\n");

dss_init_hdmi_ip_ops(&hdmi.ip_data);
dss_init_hdmi_ip_ops(&hdmi.ip_data, pdata->version);

if (hdmi.vdda_hdmi_dac_reg == NULL) {
struct regulator *reg;
Expand Down

0 comments on commit b4a30d6

Please sign in to comment.