disp: msm: dsi: batching multiple DSI commands using debugfs node

The change batches DSI commands sent using the debugfs node, in a
separate buffer from the TX command buffer to ensure that they are not
triggered before the last command bit is set. Once the last command
bit is set the buffer is then copied to the DSI TX buffer and triggered.

Change-Id: I9ba624e4e19341696a974994817603315c6c8a45
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
This commit is contained in:
Satya Rama Aditya Pinapala
2020-10-14 06:52:24 -07:00
parent 3668566409
commit bbe18a1689
5 changed files with 103 additions and 20 deletions

View File

@@ -192,6 +192,8 @@ struct dsi_display_ext_bridge {
* @is_active: status of the display
* @trusted_vm_env: Set to true, it the executing VM is Trusted VM.
* Set to false, otherwise.
* @tx_cmd_buf_ndx: Index to the DSI debugfs TX CMD buffer.
* @cmd_set: Debugfs TX cmd set.
*/
struct dsi_display {
struct platform_device *pdev;
@@ -287,6 +289,9 @@ struct dsi_display {
bool is_active;
bool trusted_vm_env;
int tx_cmd_buf_ndx;
struct dsi_panel_cmd_set cmd_set;
};
int dsi_display_dev_probe(struct platform_device *pdev);