OMAP: DSS2: DSI: Introduce generic read functions
authorArchit Taneja <archit@ti.com>
Tue, 30 Aug 2011 10:37:39 +0000 (16:07 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 30 Sep 2011 13:16:28 +0000 (16:16 +0300)
commitb3b89c05cbd9869cfd6d4e352293a2e7e3bffc6e
tree6d51eca86b56738f446892bfd9f0ce99f7d34224
parentb850975cd8857d9f277466e2a3cca5ee28519c6b
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>
drivers/video/omap2/dss/dsi.c
include/video/omapdss.h