disp: msm: dsi: reuse continuous splash path for trusted vm
Display in trusted VM works in a handover mode i.e, all display components need to be initialized by the primary VM before switching to trusted VM on the usecase boundary. That makes it a hard requirement for the trusted VM not to re-program any of the display configuration registers before it could hand the HW back to the primary VM. Also, most of the linux framework drivers including pintrl, clocks are not enabled in the trusted VM. In order to address the above two limitations and to control the probe/commit sequences, this change adapts the same path as that of continuous splash to bypass some of the critical functions which are identified to be HW intrusive. Based on the DT property read from SDE handle, dsi drivers will choose to bypass enable/disable HW state updates when executing in the vm environment. Change-Id: Ica71c924d189ab65fe3be5b0ac870633e3b749e1 Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org> Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
This commit is contained in:
@@ -188,6 +188,8 @@ struct dsi_display_ext_bridge {
|
||||
* @dma_cmd_workq: Pointer to the workqueue of DMA command transfer done
|
||||
* wait sequence.
|
||||
* @is_active: status of the display
|
||||
* @trusted_vm_env: Set to true, it the executing VM is Trusted VM.
|
||||
* Set to false, otherwise.
|
||||
*/
|
||||
struct dsi_display {
|
||||
struct platform_device *pdev;
|
||||
@@ -281,6 +283,8 @@ struct dsi_display {
|
||||
/* panel id of the display */
|
||||
u64 panel_id;
|
||||
bool is_active;
|
||||
|
||||
bool trusted_vm_env;
|
||||
};
|
||||
|
||||
int dsi_display_dev_probe(struct platform_device *pdev);
|
||||
|
Reference in New Issue
Block a user