ANDROID: include: drm: support unicasting mipi cmds to dsi ctrls

Add support into the drm_mipi_dsi framework to support
unicasting DCS commands to specific DSI controls within a panel.
This is required for partial update where region of interest
spans only on one controller in a dual controller configuration.
Also, Some display panel have the requirement of waiting for certain
duration before dsi host can read back the response from panel during
a DCS read command. This change adds the support to store
the delay required in dsi message structure.

Signed-off-by: Shashank Babu Chinta Venkata <sbchin@codeaurora.org>
Bug: 139653858
Change-Id: I3a99437441410a2514f9486d08ae3ba68670769e
This commit is contained in:
Shashank Babu Chinta Venkata
2019-09-09 17:48:16 -07:00
committed by Alistair Delva
parent 89301363b2
commit 265fb0a88a
+6
View File
@@ -18,12 +18,16 @@ struct mipi_dsi_device;
#define MIPI_DSI_MSG_REQ_ACK BIT(0)
/* use Low Power Mode to transmit message */
#define MIPI_DSI_MSG_USE_LPM BIT(1)
/* read mipi_dsi_msg.ctrl and unicast to only that ctrls */
#define MIPI_DSI_MSG_UNICAST BIT(2)
/**
* struct mipi_dsi_msg - read/write DSI buffer
* @channel: virtual channel id
* @type: payload data type
* @flags: flags controlling this message transmission
* @ctrl: ctrl index to transmit on
* @wait_ms: duration in ms to wait after message transmission
* @tx_len: length of @tx_buf
* @tx_buf: data to be written
* @rx_len: length of @rx_buf
@@ -33,6 +37,8 @@ struct mipi_dsi_msg {
u8 channel;
u8 type;
u16 flags;
u32 ctrl;
u32 wait_ms;
size_t tx_len;
const void *tx_buf;