diff options
author | Archit Taneja <archit@ti.com> | 2011-08-25 09:05:58 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-09-30 09:16:26 -0400 |
commit | 6ff8aa3182db248db4d91e574254316025c0243c (patch) | |
tree | 03ad061561dd89a1e8ee59ee422667f73dd798fd /include | |
parent | 7e951ee9955f3df0c41e523a199cc3b9372cdb9f (diff) |
OMAP: DSS2: DSI: Introduce generic write functions
Intoduce enum "dss_dsi_content_type" to differentiate between DCS and generic
content types.
Introduce short and long packet write functions which use generic
Processor-to-Peripheral transaction types. These are needed by some devices
which may not support corresponding DCS commands. Create common write functions
which allow code reuse between DCS and generic write functions.
Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/video/omapdss.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/include/video/omapdss.h b/include/video/omapdss.h index aeadbc880e38..49ffdd201c2d 100644 --- a/include/video/omapdss.h +++ b/include/video/omapdss.h | |||
@@ -225,12 +225,20 @@ void dsi_bus_lock(struct omap_dss_device *dssdev); | |||
225 | void dsi_bus_unlock(struct omap_dss_device *dssdev); | 225 | void dsi_bus_unlock(struct omap_dss_device *dssdev); |
226 | int dsi_vc_dcs_write(struct omap_dss_device *dssdev, int channel, u8 *data, | 226 | int dsi_vc_dcs_write(struct omap_dss_device *dssdev, int channel, u8 *data, |
227 | int len); | 227 | int len); |
228 | int dsi_vc_dcs_write_0(struct omap_dss_device *dssdev, int channel, | 228 | int dsi_vc_generic_write(struct omap_dss_device *dssdev, int channel, u8 *data, |
229 | u8 dcs_cmd); | 229 | int len); |
230 | int dsi_vc_dcs_write_0(struct omap_dss_device *dssdev, int channel, u8 dcs_cmd); | ||
231 | int dsi_vc_generic_write_0(struct omap_dss_device *dssdev, int channel); | ||
230 | int dsi_vc_dcs_write_1(struct omap_dss_device *dssdev, int channel, u8 dcs_cmd, | 232 | int dsi_vc_dcs_write_1(struct omap_dss_device *dssdev, int channel, u8 dcs_cmd, |
231 | u8 param); | 233 | u8 param); |
234 | int dsi_vc_generic_write_1(struct omap_dss_device *dssdev, int channel, | ||
235 | u8 param); | ||
236 | int dsi_vc_generic_write_2(struct omap_dss_device *dssdev, int channel, | ||
237 | u8 param1, u8 param2); | ||
232 | int dsi_vc_dcs_write_nosync(struct omap_dss_device *dssdev, int channel, | 238 | int dsi_vc_dcs_write_nosync(struct omap_dss_device *dssdev, int channel, |
233 | u8 *data, int len); | 239 | u8 *data, int len); |
240 | int dsi_vc_generic_write_nosync(struct omap_dss_device *dssdev, int channel, | ||
241 | u8 *data, int len); | ||
234 | int dsi_vc_dcs_read(struct omap_dss_device *dssdev, int channel, u8 dcs_cmd, | 242 | int dsi_vc_dcs_read(struct omap_dss_device *dssdev, int channel, u8 dcs_cmd, |
235 | u8 *buf, int buflen); | 243 | u8 *buf, int buflen); |
236 | int dsi_vc_dcs_read_1(struct omap_dss_device *dssdev, int channel, u8 dcs_cmd, | 244 | int dsi_vc_dcs_read_1(struct omap_dss_device *dssdev, int channel, u8 dcs_cmd, |