summaryrefslogtreecommitdiff
path: root/include/drm
diff options
context:
space:
mode:
authorAndrzej Hajda <a.hajda@samsung.com>2014-03-28 12:52:36 +0100
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:47:41 +0900
commit6277d34bfcb842df6195a2a74bd345c24a41b013 (patch)
tree676bf14c794e91bdb3c3424b364f818322c24b04 /include/drm
parentfc68e2d79509f88175042d0ad6e7badac8f2a09c (diff)
downloadlinux-3.10-6277d34bfcb842df6195a2a74bd345c24a41b013.tar.gz
linux-3.10-6277d34bfcb842df6195a2a74bd345c24a41b013.tar.bz2
linux-3.10-6277d34bfcb842df6195a2a74bd345c24a41b013.zip
drm/mipi_dsi: add flags to DSI messages
This patch adds flags field to mipi_dsi_msg structure and two flags: - MIPI_DSI_MSG_REQ_ACK - request ACK from peripheral for given message, - MIPI_DSI_MSG_USE_LPM - use Low Power Mode to transmit message. The first flag is usually helpful during DSI diagnostic, the second flag is required by some peripherals during configuration phase. Signed-off-by: Andrzej Hajda <a.hajda@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_mipi_dsi.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/drm/drm_mipi_dsi.h b/include/drm/drm_mipi_dsi.h
index d32628acdd9..7209df15a3c 100644
--- a/include/drm/drm_mipi_dsi.h
+++ b/include/drm/drm_mipi_dsi.h
@@ -17,6 +17,11 @@
struct mipi_dsi_host;
struct mipi_dsi_device;
+/* request ACK from peripheral */
+#define MIPI_DSI_MSG_REQ_ACK BIT(0)
+/* use Low Power Mode to transmit message */
+#define MIPI_DSI_MSG_USE_LPM BIT(1)
+
/**
* struct mipi_dsi_msg - read/write DSI buffer
* @channel: virtual channel id
@@ -29,6 +34,7 @@ struct mipi_dsi_device;
struct mipi_dsi_msg {
u8 channel;
u8 type;
+ u16 flags;
size_t tx_len;
const void *tx_buf;