aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/dss/hdmi.c
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2013-02-13 04:23:54 -0500
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-04-03 08:19:01 -0400
commit2eea5ae6c102a5088e39733115ff7762a4674887 (patch)
tree8005a039e38f11e9a8d0e609585752e8264cf679 /drivers/video/omap2/dss/hdmi.c
parent7286a08fb5607dbcf1a47639609d53d76b60e957 (diff)
OMAPDSS: add output->dispc_channel
The DISPC channel used for each output is currently passed in panel platform data from the board files. To simplify this, and to make the panel drivers less dependent on OMAP, this patch changes omapdss to resolve the channel independently. The channel is resolved based on the OMAP version and, in case of DSI, the DSI module id. This resolved channel is stored into a new field in output, dispc_channel. The few places where dssdev->channel was used are changed to use output->recommended_channel. After this patch, dssdev->channel is obsolete. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Reviewed-by: Archit Taneja <archit@ti.com>
Diffstat (limited to 'drivers/video/omap2/dss/hdmi.c')
-rw-r--r--drivers/video/omap2/dss/hdmi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/omap2/dss/hdmi.c b/drivers/video/omap2/dss/hdmi.c
index 9cbca03eff43..a6f953898d94 100644
--- a/drivers/video/omap2/dss/hdmi.c
+++ b/drivers/video/omap2/dss/hdmi.c
@@ -1012,8 +1012,6 @@ static void __init hdmi_probe_pdata(struct platform_device *pdev)
1012 hdmi.ls_oe_gpio = priv->ls_oe_gpio; 1012 hdmi.ls_oe_gpio = priv->ls_oe_gpio;
1013 hdmi.hpd_gpio = priv->hpd_gpio; 1013 hdmi.hpd_gpio = priv->hpd_gpio;
1014 1014
1015 dssdev->channel = OMAP_DSS_CHANNEL_DIGIT;
1016
1017 r = hdmi_init_display(dssdev); 1015 r = hdmi_init_display(dssdev);
1018 if (r) { 1016 if (r) {
1019 DSSERR("device %s init failed: %d\n", dssdev->name, r); 1017 DSSERR("device %s init failed: %d\n", dssdev->name, r);
@@ -1047,6 +1045,7 @@ static void __init hdmi_init_output(struct platform_device *pdev)
1047 out->id = OMAP_DSS_OUTPUT_HDMI; 1045 out->id = OMAP_DSS_OUTPUT_HDMI;
1048 out->type = OMAP_DISPLAY_TYPE_HDMI; 1046 out->type = OMAP_DISPLAY_TYPE_HDMI;
1049 out->name = "hdmi.0"; 1047 out->name = "hdmi.0";
1048 out->dispc_channel = OMAP_DSS_CHANNEL_DIGIT;
1050 1049
1051 dss_register_output(out); 1050 dss_register_output(out);
1052} 1051}