disp: msm: dsi: implement ESD trigger for trusted vm

DSI driver stubs out GPIO parsing in trusted vm. Add support
for ESD trigger in trusted vm by explicitly parsing the
reset gpio and setting the value.

Change-Id: I8c04e4b27b234eb236ec51df633c06738f2a5c96
Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org>
This commit is contained in:
Jeykumar Sankaran
2021-04-27 16:44:18 -07:00
parent ba57fd387c
commit 77d648442f
3 changed files with 54 additions and 41 deletions

View File

@@ -209,6 +209,7 @@ struct dsi_panel_ops {
int (*bl_unregister)(struct dsi_panel *panel);
int (*parse_gpios)(struct dsi_panel *panel);
int (*parse_power_cfg)(struct dsi_panel *panel);
int (*trigger_esd_attack)(struct dsi_panel *panel);
};
struct dsi_panel {
@@ -310,8 +311,6 @@ struct dsi_panel *dsi_panel_get(struct device *parent,
int topology_override,
bool trusted_vm_env);
int dsi_panel_trigger_esd_attack(struct dsi_panel *panel, bool trusted_vm_env);
void dsi_panel_put(struct dsi_panel *panel);
int dsi_panel_drv_init(struct dsi_panel *panel, struct mipi_dsi_host *host);