aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2014-08-04 06:56:50 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2014-11-12 06:40:20 -0500
commitd845600e2f693b3020fa779d2dc1a0767718eebc (patch)
treea8ce3c9023965acb98d7ab6476cf3be84f441bce /drivers/video
parent544bfb6832640d9d05dafc7d56f245bfa7ed6102 (diff)
OMAPDSS: DSI: remove unused hsdiv wait funcs
With the previous patch "OMAPDSS: DSI: wait for hsdiv clocks when enabling PLL", dsi_wait_pll_hsdiv_dispc_active and dsi_wait_pll_hsdiv_dsi_active are no longer needed, so they and the callers can be removed. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fbdev/omap2/dss/dsi.c15
-rw-r--r--drivers/video/fbdev/omap2/dss/dss.c15
-rw-r--r--drivers/video/fbdev/omap2/dss/dss.h8
3 files changed, 0 insertions, 38 deletions
diff --git a/drivers/video/fbdev/omap2/dss/dsi.c b/drivers/video/fbdev/omap2/dss/dsi.c
index fe8196b17a5e..b7acdcd76f73 100644
--- a/drivers/video/fbdev/omap2/dss/dsi.c
+++ b/drivers/video/fbdev/omap2/dss/dsi.c
@@ -5255,21 +5255,6 @@ static void dsi_release_vc(struct omap_dss_device *dssdev, int channel)
5255 } 5255 }
5256} 5256}
5257 5257
5258void dsi_wait_pll_hsdiv_dispc_active(struct platform_device *dsidev)
5259{
5260 if (wait_for_bit_change(dsidev, DSI_PLL_STATUS, 7, 1) != 1)
5261 DSSERR("%s (%s) not active\n",
5262 dss_get_generic_clk_source_name(OMAP_DSS_CLK_SRC_DSI_PLL_HSDIV_DISPC),
5263 dss_feat_get_clk_source_name(OMAP_DSS_CLK_SRC_DSI_PLL_HSDIV_DISPC));
5264}
5265
5266void dsi_wait_pll_hsdiv_dsi_active(struct platform_device *dsidev)
5267{
5268 if (wait_for_bit_change(dsidev, DSI_PLL_STATUS, 8, 1) != 1)
5269 DSSERR("%s (%s) not active\n",
5270 dss_get_generic_clk_source_name(OMAP_DSS_CLK_SRC_DSI_PLL_HSDIV_DSI),
5271 dss_feat_get_clk_source_name(OMAP_DSS_CLK_SRC_DSI_PLL_HSDIV_DSI));
5272}
5273 5258
5274static void dsi_calc_clock_param_ranges(struct platform_device *dsidev) 5259static void dsi_calc_clock_param_ranges(struct platform_device *dsidev)
5275{ 5260{
diff --git a/drivers/video/fbdev/omap2/dss/dss.c b/drivers/video/fbdev/omap2/dss/dss.c
index 5f6942c5df1c..702c495083ed 100644
--- a/drivers/video/fbdev/omap2/dss/dss.c
+++ b/drivers/video/fbdev/omap2/dss/dss.c
@@ -296,7 +296,6 @@ static void dss_dump_regs(struct seq_file *s)
296 296
297static void dss_select_dispc_clk_source(enum omap_dss_clk_source clk_src) 297static void dss_select_dispc_clk_source(enum omap_dss_clk_source clk_src)
298{ 298{
299 struct platform_device *dsidev;
300 int b; 299 int b;
301 u8 start, end; 300 u8 start, end;
302 301
@@ -306,13 +305,9 @@ static void dss_select_dispc_clk_source(enum omap_dss_clk_source clk_src)
306 break; 305 break;
307 case OMAP_DSS_CLK_SRC_DSI_PLL_HSDIV_DISPC: 306 case OMAP_DSS_CLK_SRC_DSI_PLL_HSDIV_DISPC:
308 b = 1; 307 b = 1;
309 dsidev = dsi_get_dsidev_from_id(0);
310 dsi_wait_pll_hsdiv_dispc_active(dsidev);
311 break; 308 break;
312 case OMAP_DSS_CLK_SRC_DSI2_PLL_HSDIV_DISPC: 309 case OMAP_DSS_CLK_SRC_DSI2_PLL_HSDIV_DISPC:
313 b = 2; 310 b = 2;
314 dsidev = dsi_get_dsidev_from_id(1);
315 dsi_wait_pll_hsdiv_dispc_active(dsidev);
316 break; 311 break;
317 default: 312 default:
318 BUG(); 313 BUG();
@@ -329,7 +324,6 @@ static void dss_select_dispc_clk_source(enum omap_dss_clk_source clk_src)
329void dss_select_dsi_clk_source(int dsi_module, 324void dss_select_dsi_clk_source(int dsi_module,
330 enum omap_dss_clk_source clk_src) 325 enum omap_dss_clk_source clk_src)
331{ 326{
332 struct platform_device *dsidev;
333 int b, pos; 327 int b, pos;
334 328
335 switch (clk_src) { 329 switch (clk_src) {
@@ -339,14 +333,10 @@ void dss_select_dsi_clk_source(int dsi_module,
339 case OMAP_DSS_CLK_SRC_DSI_PLL_HSDIV_DSI: 333 case OMAP_DSS_CLK_SRC_DSI_PLL_HSDIV_DSI:
340 BUG_ON(dsi_module != 0); 334 BUG_ON(dsi_module != 0);
341 b = 1; 335 b = 1;
342 dsidev = dsi_get_dsidev_from_id(0);
343 dsi_wait_pll_hsdiv_dsi_active(dsidev);
344 break; 336 break;
345 case OMAP_DSS_CLK_SRC_DSI2_PLL_HSDIV_DSI: 337 case OMAP_DSS_CLK_SRC_DSI2_PLL_HSDIV_DSI:
346 BUG_ON(dsi_module != 1); 338 BUG_ON(dsi_module != 1);
347 b = 1; 339 b = 1;
348 dsidev = dsi_get_dsidev_from_id(1);
349 dsi_wait_pll_hsdiv_dsi_active(dsidev);
350 break; 340 break;
351 default: 341 default:
352 BUG(); 342 BUG();
@@ -362,7 +352,6 @@ void dss_select_dsi_clk_source(int dsi_module,
362void dss_select_lcd_clk_source(enum omap_channel channel, 352void dss_select_lcd_clk_source(enum omap_channel channel,
363 enum omap_dss_clk_source clk_src) 353 enum omap_dss_clk_source clk_src)
364{ 354{
365 struct platform_device *dsidev;
366 int b, ix, pos; 355 int b, ix, pos;
367 356
368 if (!dss_has_feature(FEAT_LCD_CLK_SRC)) { 357 if (!dss_has_feature(FEAT_LCD_CLK_SRC)) {
@@ -377,15 +366,11 @@ void dss_select_lcd_clk_source(enum omap_channel channel,
377 case OMAP_DSS_CLK_SRC_DSI_PLL_HSDIV_DISPC: 366 case OMAP_DSS_CLK_SRC_DSI_PLL_HSDIV_DISPC:
378 BUG_ON(channel != OMAP_DSS_CHANNEL_LCD); 367 BUG_ON(channel != OMAP_DSS_CHANNEL_LCD);
379 b = 1; 368 b = 1;
380 dsidev = dsi_get_dsidev_from_id(0);
381 dsi_wait_pll_hsdiv_dispc_active(dsidev);
382 break; 369 break;
383 case OMAP_DSS_CLK_SRC_DSI2_PLL_HSDIV_DISPC: 370 case OMAP_DSS_CLK_SRC_DSI2_PLL_HSDIV_DISPC:
384 BUG_ON(channel != OMAP_DSS_CHANNEL_LCD2 && 371 BUG_ON(channel != OMAP_DSS_CHANNEL_LCD2 &&
385 channel != OMAP_DSS_CHANNEL_LCD3); 372 channel != OMAP_DSS_CHANNEL_LCD3);
386 b = 1; 373 b = 1;
387 dsidev = dsi_get_dsidev_from_id(1);
388 dsi_wait_pll_hsdiv_dispc_active(dsidev);
389 break; 374 break;
390 default: 375 default:
391 BUG(); 376 BUG();
diff --git a/drivers/video/fbdev/omap2/dss/dss.h b/drivers/video/fbdev/omap2/dss/dss.h
index b70d7dfbfcfb..4617b4d9f78d 100644
--- a/drivers/video/fbdev/omap2/dss/dss.h
+++ b/drivers/video/fbdev/omap2/dss/dss.h
@@ -299,8 +299,6 @@ int dsi_pll_set_clock_div(struct platform_device *dsidev,
299int dsi_pll_init(struct platform_device *dsidev, bool enable_hsclk, 299int dsi_pll_init(struct platform_device *dsidev, bool enable_hsclk,
300 bool enable_hsdiv); 300 bool enable_hsdiv);
301void dsi_pll_uninit(struct platform_device *dsidev, bool disconnect_lanes); 301void dsi_pll_uninit(struct platform_device *dsidev, bool disconnect_lanes);
302void dsi_wait_pll_hsdiv_dispc_active(struct platform_device *dsidev);
303void dsi_wait_pll_hsdiv_dsi_active(struct platform_device *dsidev);
304struct platform_device *dsi_get_dsidev_from_id(int module); 302struct platform_device *dsi_get_dsidev_from_id(int module);
305#else 303#else
306static inline int dsi_runtime_get(struct platform_device *dsidev) 304static inline int dsi_runtime_get(struct platform_device *dsidev)
@@ -336,12 +334,6 @@ static inline void dsi_pll_uninit(struct platform_device *dsidev,
336 bool disconnect_lanes) 334 bool disconnect_lanes)
337{ 335{
338} 336}
339static inline void dsi_wait_pll_hsdiv_dispc_active(struct platform_device *dsidev)
340{
341}
342static inline void dsi_wait_pll_hsdiv_dsi_active(struct platform_device *dsidev)
343{
344}
345static inline struct platform_device *dsi_get_dsidev_from_id(int module) 337static inline struct platform_device *dsi_get_dsidev_from_id(int module)
346{ 338{
347 return NULL; 339 return NULL;