public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] OMAPDSS: add set_min_bus_tput pointer to omapdss's platform data
@ 2012-03-08 11:13 Tomi Valkeinen
  2012-03-08 11:13 ` [PATCH 2/2] OMAPDSS: Ensure OPP100 when DSS is operational Tomi Valkeinen
  0 siblings, 1 reply; 11+ messages in thread
From: Tomi Valkeinen @ 2012-03-08 11:13 UTC (permalink / raw)
  To: linux-omap; +Cc: archit, Tomi Valkeinen, Paul Walmsley, Kevin Hilman

omapdss driver needs to use the omap_pm_set_min_bus_tput(), so add a new
entry for that in omapdss's platform data, and set it.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: Paul Walmsley <paul@pwsan.com>
Cc: Kevin Hilman <khilman@ti.com>
---
 arch/arm/mach-omap2/display.c |    6 ++++++
 include/video/omapdss.h       |    1 +
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-omap2/display.c b/arch/arm/mach-omap2/display.c
index 3677b1f..a675cab 100644
--- a/arch/arm/mach-omap2/display.c
+++ b/arch/arm/mach-omap2/display.c
@@ -179,6 +179,11 @@ static void omap_dsi_disable_pads(int dsi_id, unsigned lane_mask)
 		omap4_dsi_mux_pads(dsi_id, 0);
 }
 
+static int omap_dss_set_min_bus_tput(struct device *dev, unsigned long tput)
+{
+	return omap_pm_set_min_bus_tput(dev, OCP_INITIATOR_AGENT, tput);
+}
+
 int __init omap_display_init(struct omap_dss_board_info *board_data)
 {
 	int r = 0;
@@ -209,6 +214,7 @@ int __init omap_display_init(struct omap_dss_board_info *board_data)
 	pdata.board_data = board_data;
 	pdata.board_data->get_context_loss_count =
 		omap_pm_get_dev_context_loss_count;
+	pdata.board_data->set_min_bus_tput = omap_dss_set_min_bus_tput;
 
 	for (i = 0; i < oh_count; i++) {
 		oh = omap_hwmod_lookup(curr_dss_hwmod[i].oh_name);
diff --git a/include/video/omapdss.h b/include/video/omapdss.h
index 483f67c..7aecadb 100644
--- a/include/video/omapdss.h
+++ b/include/video/omapdss.h
@@ -309,6 +309,7 @@ struct omap_dss_board_info {
 	struct omap_dss_device *default_device;
 	int (*dsi_enable_pads)(int dsi_id, unsigned lane_mask);
 	void (*dsi_disable_pads)(int dsi_id, unsigned lane_mask);
+	int (*set_min_bus_tput)(struct device *dev, unsigned long r);
 };
 
 /* Init with the board info */
-- 
1.7.4.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-04-19 20:04 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-08 11:13 [PATCH 1/2] OMAPDSS: add set_min_bus_tput pointer to omapdss's platform data Tomi Valkeinen
2012-03-08 11:13 ` [PATCH 2/2] OMAPDSS: Ensure OPP100 when DSS is operational Tomi Valkeinen
2012-03-13 13:45   ` Tomi Valkeinen
     [not found]     ` <87zkbkmjo1.fsf@ti.com>
2012-03-14  6:38       ` Tomi Valkeinen
2012-04-18 13:13         ` Tomi Valkeinen
2012-04-18 17:03         ` Kevin Hilman
2012-04-18 17:26           ` Turquette, Mike
2012-04-19  5:06             ` Tomi Valkeinen
2012-04-19 19:56               ` Turquette, Mike
2012-04-19  5:03           ` Tomi Valkeinen
2012-04-19 14:00             ` Kevin Hilman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox