aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorArchit Taneja <archit@ti.com>2014-04-23 08:30:18 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2014-11-12 06:40:15 -0500
commit064c2a475d67b4872df738a90710888c364f9767 (patch)
tree6b0648339085280fa0ac410dbdfcc9aa24df998c /drivers/video
parentf7e38fe9e23c6311a96510d00c75c73fcf5d1e42 (diff)
OMAPDSS: DSS: add a param to dpi_select_source which specifies it's port number
Add a 'port' parameter in dpi_select_source. The param tells the port number of the DPI instance that we want to configure. We use this number to select the overlay manager for that DPI instance. Signed-off-by: Archit Taneja <archit@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fbdev/omap2/dss/dpi.c2
-rw-r--r--drivers/video/fbdev/omap2/dss/dss.c12
-rw-r--r--drivers/video/fbdev/omap2/dss/dss.h2
3 files changed, 8 insertions, 8 deletions
diff --git a/drivers/video/fbdev/omap2/dss/dpi.c b/drivers/video/fbdev/omap2/dss/dpi.c
index 03376354b360..ebc294f8dfdb 100644
--- a/drivers/video/fbdev/omap2/dss/dpi.c
+++ b/drivers/video/fbdev/omap2/dss/dpi.c
@@ -396,7 +396,7 @@ static int dpi_display_enable(struct omap_dss_device *dssdev)
396 if (r) 396 if (r)
397 goto err_get_dispc; 397 goto err_get_dispc;
398 398
399 r = dss_dpi_select_source(out->manager->id); 399 r = dss_dpi_select_source(out->port_num, out->manager->id);
400 if (r) 400 if (r)
401 goto err_src_sel; 401 goto err_src_sel;
402 402
diff --git a/drivers/video/fbdev/omap2/dss/dss.c b/drivers/video/fbdev/omap2/dss/dss.c
index 7e86b8a78315..5f6942c5df1c 100644
--- a/drivers/video/fbdev/omap2/dss/dss.c
+++ b/drivers/video/fbdev/omap2/dss/dss.c
@@ -72,7 +72,7 @@ struct dss_features {
72 const char *parent_clk_name; 72 const char *parent_clk_name;
73 enum omap_display_type *ports; 73 enum omap_display_type *ports;
74 int num_ports; 74 int num_ports;
75 int (*dpi_select_source)(enum omap_channel channel); 75 int (*dpi_select_source)(int port, enum omap_channel channel);
76}; 76};
77 77
78static struct { 78static struct {
@@ -566,7 +566,7 @@ enum dss_hdmi_venc_clk_source_select dss_get_hdmi_venc_clk_source(void)
566 return REG_GET(DSS_CONTROL, 15, 15); 566 return REG_GET(DSS_CONTROL, 15, 15);
567} 567}
568 568
569static int dss_dpi_select_source_omap2_omap3(enum omap_channel channel) 569static int dss_dpi_select_source_omap2_omap3(int port, enum omap_channel channel)
570{ 570{
571 if (channel != OMAP_DSS_CHANNEL_LCD) 571 if (channel != OMAP_DSS_CHANNEL_LCD)
572 return -EINVAL; 572 return -EINVAL;
@@ -574,7 +574,7 @@ static int dss_dpi_select_source_omap2_omap3(enum omap_channel channel)
574 return 0; 574 return 0;
575} 575}
576 576
577static int dss_dpi_select_source_omap4(enum omap_channel channel) 577static int dss_dpi_select_source_omap4(int port, enum omap_channel channel)
578{ 578{
579 int val; 579 int val;
580 580
@@ -594,7 +594,7 @@ static int dss_dpi_select_source_omap4(enum omap_channel channel)
594 return 0; 594 return 0;
595} 595}
596 596
597static int dss_dpi_select_source_omap5(enum omap_channel channel) 597static int dss_dpi_select_source_omap5(int port, enum omap_channel channel)
598{ 598{
599 int val; 599 int val;
600 600
@@ -620,9 +620,9 @@ static int dss_dpi_select_source_omap5(enum omap_channel channel)
620 return 0; 620 return 0;
621} 621}
622 622
623int dss_dpi_select_source(enum omap_channel channel) 623int dss_dpi_select_source(int port, enum omap_channel channel)
624{ 624{
625 return dss.feat->dpi_select_source(channel); 625 return dss.feat->dpi_select_source(port, channel);
626} 626}
627 627
628static int dss_get_clocks(void) 628static int dss_get_clocks(void)
diff --git a/drivers/video/fbdev/omap2/dss/dss.h b/drivers/video/fbdev/omap2/dss/dss.h
index 6f346bf518b5..b70d7dfbfcfb 100644
--- a/drivers/video/fbdev/omap2/dss/dss.h
+++ b/drivers/video/fbdev/omap2/dss/dss.h
@@ -209,7 +209,7 @@ int dss_init_platform_driver(void) __init;
209void dss_uninit_platform_driver(void); 209void dss_uninit_platform_driver(void);
210 210
211unsigned long dss_get_dispc_clk_rate(void); 211unsigned long dss_get_dispc_clk_rate(void);
212int dss_dpi_select_source(enum omap_channel channel); 212int dss_dpi_select_source(int port, enum omap_channel channel);
213void dss_select_hdmi_venc_clk_source(enum dss_hdmi_venc_clk_source_select); 213void dss_select_hdmi_venc_clk_source(enum dss_hdmi_venc_clk_source_select);
214enum dss_hdmi_venc_clk_source_select dss_get_hdmi_venc_clk_source(void); 214enum dss_hdmi_venc_clk_source_select dss_get_hdmi_venc_clk_source(void);
215const char *dss_get_generic_clk_source_name(enum omap_dss_clk_source clk_src); 215const char *dss_get_generic_clk_source_name(enum omap_dss_clk_source clk_src);