diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-03-06 04:10:29 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-04-03 08:19:17 -0400 |
commit | 777f05cc79892c1a5c25a72cfb3cc24554378a45 (patch) | |
tree | 4913a4a29399b315e764d2ab846d7d78040847c4 /include/video/omapdss.h | |
parent | 17518189218cdf4c8136ce6f0284519b9a878a09 (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.h | 23 |
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 | ||
285 | struct 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 | |||
285 | void dsi_bus_lock(struct omap_dss_device *dssdev); | 295 | void dsi_bus_lock(struct omap_dss_device *dssdev); |
286 | void dsi_bus_unlock(struct omap_dss_device *dssdev); | 296 | void dsi_bus_unlock(struct omap_dss_device *dssdev); |
287 | int dsi_vc_dcs_write(struct omap_dss_device *dssdev, int channel, u8 *data, | 297 | int 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, | |||
806 | void omapdss_dsi_vc_enable_hs(struct omap_dss_device *dssdev, int channel, | 816 | void omapdss_dsi_vc_enable_hs(struct omap_dss_device *dssdev, int channel, |
807 | bool enable); | 817 | bool enable); |
808 | int omapdss_dsi_enable_te(struct omap_dss_device *dssdev, bool enable); | 818 | int omapdss_dsi_enable_te(struct omap_dss_device *dssdev, bool enable); |
809 | void omapdss_dsi_set_timings(struct omap_dss_device *dssdev, | 819 | int omapdss_dsi_set_config(struct omap_dss_device *dssdev, |
810 | struct omap_video_timings *timings); | 820 | const struct omap_dss_dsi_config *config); |
811 | void omapdss_dsi_set_size(struct omap_dss_device *dssdev, u16 w, u16 h); | ||
812 | void omapdss_dsi_set_pixel_format(struct omap_dss_device *dssdev, | ||
813 | enum omap_dss_dsi_pixel_format fmt); | ||
814 | void omapdss_dsi_set_operation_mode(struct omap_dss_device *dssdev, | ||
815 | enum omap_dss_dsi_mode mode); | ||
816 | void omapdss_dsi_set_videomode_timings(struct omap_dss_device *dssdev, | ||
817 | struct omap_dss_dsi_videomode_timings *timings); | ||
818 | 821 | ||
819 | int omap_dsi_update(struct omap_dss_device *dssdev, int channel, | 822 | int 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); | |||
823 | void omap_dsi_release_vc(struct omap_dss_device *dssdev, int channel); | 826 | void omap_dsi_release_vc(struct omap_dss_device *dssdev, int channel); |
824 | int omapdss_dsi_configure_pins(struct omap_dss_device *dssdev, | 827 | int 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); |
826 | int omapdss_dsi_set_clocks(struct omap_dss_device *dssdev, | ||
827 | unsigned long ddr_clk, unsigned long lp_clk); | ||
828 | 829 | ||
829 | int omapdss_dsi_display_enable(struct omap_dss_device *dssdev); | 830 | int omapdss_dsi_display_enable(struct omap_dss_device *dssdev); |
830 | void omapdss_dsi_display_disable(struct omap_dss_device *dssdev, | 831 | void omapdss_dsi_display_disable(struct omap_dss_device *dssdev, |