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:
@@ -218,6 +218,7 @@ struct sde_crtc_misr_info {
|
||||
* @output_fence : output release fence context
|
||||
* @stage_cfg : H/w mixer stage configuration
|
||||
* @debugfs_root : Parent of debugfs node
|
||||
* @priv_handle : Pointer to external private handle, if present
|
||||
* @vblank_cb_count : count of vblank callback since last reset
|
||||
* @play_count : frame count between crtc enable and disable
|
||||
* @vblank_cb_time : ktime at vblank count reset
|
||||
@@ -285,6 +286,7 @@ struct sde_crtc {
|
||||
|
||||
struct sde_hw_stage_cfg stage_cfg;
|
||||
struct dentry *debugfs_root;
|
||||
void *priv_handle;
|
||||
|
||||
u32 vblank_cb_count;
|
||||
u64 play_count;
|
||||
@@ -477,6 +479,17 @@ static inline int sde_crtc_get_mixer_height(struct sde_crtc *sde_crtc,
|
||||
cstate->ds_cfg[0].lm_height : mode->vdisplay);
|
||||
}
|
||||
|
||||
/**
|
||||
* sde_crtc_get_num_datapath - get the number of datapath active
|
||||
* @crtc: Pointer to drm crtc object
|
||||
*/
|
||||
static inline int sde_crtc_get_num_datapath(struct drm_crtc *crtc)
|
||||
{
|
||||
struct sde_crtc *sde_crtc = to_sde_crtc(crtc);
|
||||
|
||||
return sde_crtc ? sde_crtc->num_mixers : 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* sde_crtc_frame_pending - retun the number of pending frames
|
||||
* @crtc: Pointer to drm crtc object
|
||||
|
Reference in New Issue
Block a user