disp: msm: snapshot of msm and sde driver
This snapshot ports changes from 4.14 to 4.19 into the msm and sde layer. Snapshot was taken as of commit 0f8fb25421ff ("cnss2: Add device version to SOC info structure"). Change-Id: I59b799a78319c2db6930a2a10bc38976f8c09898 Signed-off-by: Samantha Tran <samtran@codeaurora.org>
This commit is contained in:
@@ -70,6 +70,22 @@ struct sde_encoder_kickoff_params {
|
||||
enum frame_trigger_mode_type frame_trigger_mode;
|
||||
};
|
||||
|
||||
/**
|
||||
* struct sde_encoder_ops - callback functions for generic sde encoder
|
||||
* Individual callbacks documented below.
|
||||
*/
|
||||
struct sde_encoder_ops {
|
||||
/**
|
||||
* phys_init - phys initialization function
|
||||
* @type: controller type
|
||||
* @controller_id: controller id
|
||||
* @phys_init_params: Pointer of structure sde_enc_phys_init_params
|
||||
* Returns: Pointer of sde_encoder_phys, NULL if failed
|
||||
*/
|
||||
void *(*phys_init)(enum sde_intf_type type,
|
||||
u32 controller_id, void *phys_init_params);
|
||||
};
|
||||
|
||||
/**
|
||||
* sde_encoder_get_hw_resources - Populate table of required hardware resources
|
||||
* @encoder: encoder pointer
|
||||
@@ -220,6 +236,18 @@ struct drm_encoder *sde_encoder_init(
|
||||
struct drm_device *dev,
|
||||
struct msm_display_info *disp_info);
|
||||
|
||||
/**
|
||||
* sde_encoder_init_with_ops - initialize virtual encoder object with init ops
|
||||
* @dev: Pointer to drm device structure
|
||||
* @disp_info: Pointer to display information structure
|
||||
* @ops: Pointer to encoder ops structure
|
||||
* Returns: Pointer to newly created drm encoder
|
||||
*/
|
||||
struct drm_encoder *sde_encoder_init_with_ops(
|
||||
struct drm_device *dev,
|
||||
struct msm_display_info *disp_info,
|
||||
const struct sde_encoder_ops *ops);
|
||||
|
||||
/**
|
||||
* sde_encoder_destroy - destroy previously initialized virtual encoder
|
||||
* @drm_enc: Pointer to previously created drm encoder structure
|
||||
@@ -311,4 +339,11 @@ int sde_encoder_in_cont_splash(struct drm_encoder *enc);
|
||||
*/
|
||||
void sde_encoder_uidle_enable(struct drm_encoder *drm_enc, bool enable);
|
||||
|
||||
/*
|
||||
* sde_encoder_get_ctlstart_timeout_state - checks if ctl start timeout happened
|
||||
* @drm_enc: Pointer to drm encoder structure
|
||||
* @Return: non zero value if ctl start timeout occurred
|
||||
*/
|
||||
int sde_encoder_get_ctlstart_timeout_state(struct drm_encoder *enc);
|
||||
|
||||
#endif /* __SDE_ENCODER_H__ */
|
||||
|
Reference in New Issue
Block a user