aboutsummaryrefslogtreecommitdiffstats
path: root/include/video
diff options
context:
space:
mode:
authorArchit Taneja <archit@ti.com>2011-08-30 06:37:39 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2011-09-30 09:16:28 -0400
commitb3b89c05cbd9869cfd6d4e352293a2e7e3bffc6e (patch)
tree6d51eca86b56738f446892bfd9f0ce99f7d34224 /include/video
parentb850975cd8857d9f277466e2a3cca5ee28519c6b (diff)
OMAP: DSS2: DSI: Introduce generic read functions
Introduce read functions which use generic Processor-to-Peripheral transaction types. These are needed by some devices which may not support corresponding DCS commands. Add function dsi_vc_generic_send_read_request() which can send a short packet with 0, 1 or 2 bytes of request data and the corresponding generic data type. Rename function dsi_vc_dcs_read_rx_fifo() to dsi_vc_read_rx_fifo() and modify it to take the enum "dss_dsi_content_type" as an argument to use either DCS or GENERIC Peripheral-to-Processor transaction types while parsing data read from the device. 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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/video/omapdss.h b/include/video/omapdss.h
index a8a43de3dd81..abe8b1e51529 100644
--- a/include/video/omapdss.h
+++ b/include/video/omapdss.h
@@ -241,6 +241,12 @@ int dsi_vc_generic_write_nosync(struct omap_dss_device *dssdev, int channel,
241 u8 *data, int len); 241 u8 *data, int len);
242int dsi_vc_dcs_read(struct omap_dss_device *dssdev, int channel, u8 dcs_cmd, 242int dsi_vc_dcs_read(struct omap_dss_device *dssdev, int channel, u8 dcs_cmd,
243 u8 *buf, int buflen); 243 u8 *buf, int buflen);
244int dsi_vc_generic_read_0(struct omap_dss_device *dssdev, int channel, u8 *buf,
245 int buflen);
246int dsi_vc_generic_read_1(struct omap_dss_device *dssdev, int channel, u8 param,
247 u8 *buf, int buflen);
248int dsi_vc_generic_read_2(struct omap_dss_device *dssdev, int channel,
249 u8 param1, u8 param2, u8 *buf, int buflen);
244int dsi_vc_set_max_rx_packet_size(struct omap_dss_device *dssdev, int channel, 250int dsi_vc_set_max_rx_packet_size(struct omap_dss_device *dssdev, int channel,
245 u16 len); 251 u16 len);
246int dsi_vc_send_null(struct omap_dss_device *dssdev, int channel); 252int dsi_vc_send_null(struct omap_dss_device *dssdev, int channel);