Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1297b85a authored by Ping Li's avatar Ping Li
Browse files

drm/msm/sde: Update cp payload to include pointers to DSPPs



Update sde_hw_cp_cfg to include an array of DSPP pointers associated
with the CRTC. This info will be used to support REG DMA broadcast
feature.

Change-Id: Ie9d7945d9b854c85cc3b81675152a3c4e0b65f42
Signed-off-by: default avatarPing Li <pingli@codeaurora.org>
parent 80861d94
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -643,10 +643,18 @@ static void sde_cp_crtc_setfeature(struct sde_cp_node *prop_node,
	int ret = 0;
	struct sde_ad_hw_cfg ad_cfg;

	memset(&hw_cfg, 0, sizeof(hw_cfg));
	sde_cp_get_hw_payload(prop_node, &hw_cfg, &feature_enabled);
	hw_cfg.num_of_mixers = sde_crtc->num_mixers;
	hw_cfg.last_feature = 0;

	for (i = 0; i < num_mixers; i++) {
		hw_dspp = sde_crtc->mixers[i].hw_dspp;
		if (!hw_dspp || i >= DSPP_MAX)
			continue;
		hw_cfg.dspp[i] = hw_dspp;
	}

	for (i = 0; i < num_mixers && !ret; i++) {
		hw_lm = sde_crtc->mixers[i].hw_lm;
		hw_dspp = sde_crtc->mixers[i].hw_dspp;
+2 −0
Original line number Diff line number Diff line
@@ -518,6 +518,7 @@ struct sde_mdss_color {
 * @mixer_info: mixer info pointer associated with lm.
 * @displayv: height of the display.
 * @displayh: width of the display.
 * @dspp[DSPP_MAX]: array of hw_dspp pointers associated with crtc.
 */
struct sde_hw_cp_cfg {
	void *payload;
@@ -528,6 +529,7 @@ struct sde_hw_cp_cfg {
	void *mixer_info;
	u32 displayv;
	u32 displayh;
	struct sde_hw_dspp *dspp[DSPP_MAX];
};

/**