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

Commit 1b2e4730 authored by Govinda Rajulu Chenna's avatar Govinda Rajulu Chenna Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm/sde: populate PP TE ops based on feature flag



MDSS version 4.0.0 has tear-effect configuration logic as part
of ping-pong module whereas it is moved to interface module in
5.0.0. Tear-effect configuration operations are needed to populate
based on the MDSS version. SDE_PINGPONG_TE feature flag is updated
based on the MDSS version to inform the presence of tear-effect
configuration logic in ping-pong module.

This change depends on SDE_PINGPONG_TE feature flag to populate
tear-effect configuration ops in ping-pong module.

Change-Id: Ie5d37cc98e6c32452370db4b55ff0244dec87570
Signed-off-by: default avatarGovinda Rajulu Chenna <gchenna@codeaurora.org>
parent 32cd614d
Loading
Loading
Loading
Loading
+10 −8
Original line number Diff line number Diff line
@@ -427,18 +427,20 @@ static void _setup_pingpong_ops(struct sde_hw_pingpong_ops *ops,
{
	u32 version = 0;

	if (hw_cap->features & BIT(SDE_PINGPONG_TE)) {
		ops->setup_tearcheck = sde_hw_pp_setup_te_config;
		ops->enable_tearcheck = sde_hw_pp_enable_te;
		ops->connect_external_te = sde_hw_pp_connect_external_te;
		ops->get_vsync_info = sde_hw_pp_get_vsync_info;
		ops->setup_autorefresh = sde_hw_pp_setup_autorefresh_config;
		ops->get_autorefresh = sde_hw_pp_get_autorefresh_config;
		ops->poll_timeout_wr_ptr = sde_hw_pp_poll_timeout_wr_ptr;
		ops->get_line_count = sde_hw_pp_get_line_count;
	}
	ops->setup_dsc = sde_hw_pp_setup_dsc;
	ops->enable_dsc = sde_hw_pp_dsc_enable;
	ops->disable_dsc = sde_hw_pp_dsc_disable;
	ops->get_dsc_status = sde_hw_pp_get_dsc_status;
	ops->get_autorefresh = sde_hw_pp_get_autorefresh_config;
	ops->poll_timeout_wr_ptr = sde_hw_pp_poll_timeout_wr_ptr;
	ops->get_line_count = sde_hw_pp_get_line_count;

	version = SDE_COLOR_PROCESS_MAJOR(hw_cap->sblk->dither.version);
	switch (version) {