aboutsummaryrefslogtreecommitdiffstats
path: root/include/video
diff options
context:
space:
mode:
authorArchit Taneja <archit@ti.com>2011-05-12 07:56:24 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2011-05-12 12:30:26 -0400
commit1ffefe755c2681752a10ae50b2b17e70147bb194 (patch)
treea714387a1c5591169f1247ae2b2393f3e2465e6b /include/video
parent41b21aebe6a9c06e0b906f14bcab7c49b9b72d7a (diff)
OMAP: DSS2: DSI: Add extra omap_dss_device argument in functions exported by dsi
Add pointer to omap_dss_device struct as an argument in the functions which are exported to dsi panel drivers. This argument will tell the DSI driver which DSI interface's data it has to choose. Signed-off-by: Archit Taneja <archit@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'include/video')
-rw-r--r--include/video/omapdss.h35
1 files changed, 22 insertions, 13 deletions
diff --git a/include/video/omapdss.h b/include/video/omapdss.h
index ab7d6564e29b..e8e27caac190 100644
--- a/include/video/omapdss.h
+++ b/include/video/omapdss.h
@@ -214,18 +214,26 @@ int omap_rfbi_setup_te(enum omap_rfbi_te_mode mode,
214 int hs_pol_inv, int vs_pol_inv, int extif_div); 214 int hs_pol_inv, int vs_pol_inv, int extif_div);
215 215
216/* DSI */ 216/* DSI */
217void dsi_bus_lock(void); 217void dsi_bus_lock(struct omap_dss_device *dssdev);
218void dsi_bus_unlock(void); 218void dsi_bus_unlock(struct omap_dss_device *dssdev);
219int dsi_vc_dcs_write(int channel, u8 *data, int len); 219int dsi_vc_dcs_write(struct omap_dss_device *dssdev, int channel, u8 *data,
220int dsi_vc_dcs_write_0(int channel, u8 dcs_cmd); 220 int len);
221int dsi_vc_dcs_write_1(int channel, u8 dcs_cmd, u8 param); 221int dsi_vc_dcs_write_0(struct omap_dss_device *dssdev, int channel,
222int dsi_vc_dcs_write_nosync(int channel, u8 *data, int len); 222 u8 dcs_cmd);
223int dsi_vc_dcs_read(int channel, u8 dcs_cmd, u8 *buf, int buflen); 223int dsi_vc_dcs_write_1(struct omap_dss_device *dssdev, int channel, u8 dcs_cmd,
224int dsi_vc_dcs_read_1(int channel, u8 dcs_cmd, u8 *data); 224 u8 param);
225int dsi_vc_dcs_read_2(int channel, u8 dcs_cmd, u8 *data1, u8 *data2); 225int dsi_vc_dcs_write_nosync(struct omap_dss_device *dssdev, int channel,
226int dsi_vc_set_max_rx_packet_size(int channel, u16 len); 226 u8 *data, int len);
227int dsi_vc_send_null(int channel); 227int dsi_vc_dcs_read(struct omap_dss_device *dssdev, int channel, u8 dcs_cmd,
228int dsi_vc_send_bta_sync(int channel); 228 u8 *buf, int buflen);
229int dsi_vc_dcs_read_1(struct omap_dss_device *dssdev, int channel, u8 dcs_cmd,
230 u8 *data);
231int dsi_vc_dcs_read_2(struct omap_dss_device *dssdev, int channel, u8 dcs_cmd,
232 u8 *data1, u8 *data2);
233int dsi_vc_set_max_rx_packet_size(struct omap_dss_device *dssdev, int channel,
234 u16 len);
235int dsi_vc_send_null(struct omap_dss_device *dssdev, int channel);
236int dsi_vc_send_bta_sync(struct omap_dss_device *dssdev, int channel);
229 237
230/* Board specific data */ 238/* Board specific data */
231struct omap_dss_board_info { 239struct omap_dss_board_info {
@@ -575,7 +583,8 @@ int omap_dispc_wait_for_irq_interruptible_timeout(u32 irqmask,
575#define to_dss_driver(x) container_of((x), struct omap_dss_driver, driver) 583#define to_dss_driver(x) container_of((x), struct omap_dss_driver, driver)
576#define to_dss_device(x) container_of((x), struct omap_dss_device, dev) 584#define to_dss_device(x) container_of((x), struct omap_dss_device, dev)
577 585
578void omapdss_dsi_vc_enable_hs(int channel, bool enable); 586void omapdss_dsi_vc_enable_hs(struct omap_dss_device *dssdev, int channel,
587 bool enable);
579int omapdss_dsi_enable_te(struct omap_dss_device *dssdev, bool enable); 588int omapdss_dsi_enable_te(struct omap_dss_device *dssdev, bool enable);
580 589
581int omap_dsi_prepare_update(struct omap_dss_device *dssdev, 590int omap_dsi_prepare_update(struct omap_dss_device *dssdev,