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>
此提交包含在:
@@ -181,7 +181,8 @@ int dsi_phy_set_power_state(struct msm_dsi_phy *dsi_phy, bool enable);
|
||||
* @config: DSI host configuration.
|
||||
* @pll_source: Source PLL for PHY clock.
|
||||
* @skip_validation: Validation will not be performed on parameters.
|
||||
* @is_cont_splash_enabled: check whether continuous splash enabled.
|
||||
* @skip_op: Skip re-enabling dsi phy hw during usecases like
|
||||
* cont-splash/trusted-vm if set to true.
|
||||
*
|
||||
* Validates and enables DSI PHY.
|
||||
*
|
||||
@@ -191,15 +192,17 @@ int dsi_phy_enable(struct msm_dsi_phy *dsi_phy,
|
||||
struct dsi_host_config *config,
|
||||
enum dsi_phy_pll_source pll_source,
|
||||
bool skip_validation,
|
||||
bool is_cont_splash_enabled);
|
||||
bool skip_op);
|
||||
|
||||
/**
|
||||
* dsi_phy_disable() - disable DSI PHY hardware.
|
||||
* @phy: DSI PHY handle.
|
||||
* @phy: DSI PHY handle.
|
||||
* @skip_op: Skip disabling dsi phy hw during usecases like
|
||||
* trusted-vm if set to true.
|
||||
*
|
||||
* Return: error code.
|
||||
*/
|
||||
int dsi_phy_disable(struct msm_dsi_phy *phy);
|
||||
int dsi_phy_disable(struct msm_dsi_phy *phy, bool skip_op);
|
||||
|
||||
/**
|
||||
* dsi_phy_set_ulps() - set ulps state for DSI pHY
|
||||
|
新增問題並參考
封鎖使用者