aboutsummaryrefslogtreecommitdiffstats
path: root/include/video/omapdss.h
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2013-03-06 04:10:29 -0500
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-04-03 08:19:17 -0400
commit777f05cc79892c1a5c25a72cfb3cc24554378a45 (patch)
tree4913a4a29399b315e764d2ab846d7d78040847c4 /include/video/omapdss.h
parent17518189218cdf4c8136ce6f0284519b9a878a09 (diff)
OMAPDSS: DSI: simplify dsi configuration
We have a bunch of dsi functions that are used to do the basic configuration for DSI. To simplify things, and to make sure we have all the necessary information, create a single dsi config function, which does the basic configuration. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'include/video/omapdss.h')
-rw-r--r--include/video/omapdss.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/include/video/omapdss.h b/include/video/omapdss.h
index 41fb434093e9..4dd4cea41bd4 100644
--- a/include/video/omapdss.h
+++ b/include/video/omapdss.h
@@ -282,6 +282,16 @@ struct omap_dss_dsi_videomode_timings {
282 int window_sync; 282 int window_sync;
283}; 283};
284 284
285struct omap_dss_dsi_config {
286 enum omap_dss_dsi_mode mode;
287 enum omap_dss_dsi_pixel_format pixel_format;
288 const struct omap_video_timings *timings;
289 const struct omap_dss_dsi_videomode_timings *vm_timings;
290
291 unsigned long hs_clk;
292 unsigned long lp_clk;
293};
294
285void dsi_bus_lock(struct omap_dss_device *dssdev); 295void dsi_bus_lock(struct omap_dss_device *dssdev);
286void dsi_bus_unlock(struct omap_dss_device *dssdev); 296void dsi_bus_unlock(struct omap_dss_device *dssdev);
287int dsi_vc_dcs_write(struct omap_dss_device *dssdev, int channel, u8 *data, 297int dsi_vc_dcs_write(struct omap_dss_device *dssdev, int channel, u8 *data,
@@ -806,15 +816,8 @@ int dispc_ovl_setup(enum omap_plane plane, const struct omap_overlay_info *oi,
806void omapdss_dsi_vc_enable_hs(struct omap_dss_device *dssdev, int channel, 816void omapdss_dsi_vc_enable_hs(struct omap_dss_device *dssdev, int channel,
807 bool enable); 817 bool enable);
808int omapdss_dsi_enable_te(struct omap_dss_device *dssdev, bool enable); 818int omapdss_dsi_enable_te(struct omap_dss_device *dssdev, bool enable);
809void omapdss_dsi_set_timings(struct omap_dss_device *dssdev, 819int omapdss_dsi_set_config(struct omap_dss_device *dssdev,
810 struct omap_video_timings *timings); 820 const struct omap_dss_dsi_config *config);
811void omapdss_dsi_set_size(struct omap_dss_device *dssdev, u16 w, u16 h);
812void omapdss_dsi_set_pixel_format(struct omap_dss_device *dssdev,
813 enum omap_dss_dsi_pixel_format fmt);
814void omapdss_dsi_set_operation_mode(struct omap_dss_device *dssdev,
815 enum omap_dss_dsi_mode mode);
816void omapdss_dsi_set_videomode_timings(struct omap_dss_device *dssdev,
817 struct omap_dss_dsi_videomode_timings *timings);
818 821
819int omap_dsi_update(struct omap_dss_device *dssdev, int channel, 822int omap_dsi_update(struct omap_dss_device *dssdev, int channel,
820 void (*callback)(int, void *), void *data); 823 void (*callback)(int, void *), void *data);
@@ -823,8 +826,6 @@ int omap_dsi_set_vc_id(struct omap_dss_device *dssdev, int channel, int vc_id);
823void omap_dsi_release_vc(struct omap_dss_device *dssdev, int channel); 826void omap_dsi_release_vc(struct omap_dss_device *dssdev, int channel);
824int omapdss_dsi_configure_pins(struct omap_dss_device *dssdev, 827int omapdss_dsi_configure_pins(struct omap_dss_device *dssdev,
825 const struct omap_dsi_pin_config *pin_cfg); 828 const struct omap_dsi_pin_config *pin_cfg);
826int omapdss_dsi_set_clocks(struct omap_dss_device *dssdev,
827 unsigned long ddr_clk, unsigned long lp_clk);
828 829
829int omapdss_dsi_display_enable(struct omap_dss_device *dssdev); 830int omapdss_dsi_display_enable(struct omap_dss_device *dssdev);
830void omapdss_dsi_display_disable(struct omap_dss_device *dssdev, 831void omapdss_dsi_display_disable(struct omap_dss_device *dssdev,