aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@nokia.com>2010-01-20 05:11:25 -0500
committerTomi Valkeinen <tomi.valkeinen@nokia.com>2010-02-24 07:31:28 -0500
commit69b2048f44ead2d278e25d12adf0494b469ffb1c (patch)
tree3f2b462aa04ecd131d2fb4936e61c59a75a5a50c /arch
parent3651131268d7eae63efdffe6fa4a361abd44d747 (diff)
OMAP: DSS2: move timing functions
Move check/set/get_timings() from omap_dss_device to omap_dss_driver. This is part of a larger patch-set, which moves the control from omapdss driver to the display driver. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/plat-omap/include/plat/display.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/arch/arm/plat-omap/include/plat/display.h b/arch/arm/plat-omap/include/plat/display.h
index 3f7b20990086..23bc94fc51fa 100644
--- a/arch/arm/plat-omap/include/plat/display.h
+++ b/arch/arm/plat-omap/include/plat/display.h
@@ -462,13 +462,6 @@ struct omap_dss_device {
462 462
463 enum omap_dss_display_state state; 463 enum omap_dss_display_state state;
464 464
465 int (*check_timings)(struct omap_dss_device *dssdev,
466 struct omap_video_timings *timings);
467 void (*set_timings)(struct omap_dss_device *dssdev,
468 struct omap_video_timings *timings);
469 void (*get_timings)(struct omap_dss_device *dssdev,
470 struct omap_video_timings *timings);
471
472 /* platform specific */ 465 /* platform specific */
473 int (*platform_enable)(struct omap_dss_device *dssdev); 466 int (*platform_enable)(struct omap_dss_device *dssdev);
474 void (*platform_disable)(struct omap_dss_device *dssdev); 467 void (*platform_disable)(struct omap_dss_device *dssdev);
@@ -514,6 +507,13 @@ struct omap_dss_driver {
514 u16 *xres, u16 *yres); 507 u16 *xres, u16 *yres);
515 int (*get_recommended_bpp)(struct omap_dss_device *dssdev); 508 int (*get_recommended_bpp)(struct omap_dss_device *dssdev);
516 509
510 int (*check_timings)(struct omap_dss_device *dssdev,
511 struct omap_video_timings *timings);
512 void (*set_timings)(struct omap_dss_device *dssdev,
513 struct omap_video_timings *timings);
514 void (*get_timings)(struct omap_dss_device *dssdev,
515 struct omap_video_timings *timings);
516
517 int (*set_wss)(struct omap_dss_device *dssdev, u32 wss); 517 int (*set_wss)(struct omap_dss_device *dssdev, u32 wss);
518 u32 (*get_wss)(struct omap_dss_device *dssdev); 518 u32 (*get_wss)(struct omap_dss_device *dssdev);
519}; 519};
@@ -570,6 +570,10 @@ void omapdss_dsi_display_disable(struct omap_dss_device *dssdev);
570 570
571int omapdss_dpi_display_enable(struct omap_dss_device *dssdev); 571int omapdss_dpi_display_enable(struct omap_dss_device *dssdev);
572void omapdss_dpi_display_disable(struct omap_dss_device *dssdev); 572void omapdss_dpi_display_disable(struct omap_dss_device *dssdev);
573void dpi_set_timings(struct omap_dss_device *dssdev,
574 struct omap_video_timings *timings);
575int dpi_check_timings(struct omap_dss_device *dssdev,
576 struct omap_video_timings *timings);
573 577
574int omapdss_sdi_display_enable(struct omap_dss_device *dssdev); 578int omapdss_sdi_display_enable(struct omap_dss_device *dssdev);
575void omapdss_sdi_display_disable(struct omap_dss_device *dssdev); 579void omapdss_sdi_display_disable(struct omap_dss_device *dssdev);