disp: msm: sde: fix dcwb idx selection for pp_dither and CTL blocks

When cwb is triggered on built-in display secondary display
with (1,1,1) topology, improper dcwb_idx value is passed
to pp_dither and CTL registers. This change populates proper
dcwb_idx during pp block dt parsing and passes the same for
programming.

Change-Id: I543eede6f5fd9c2c80799503e3639ea9e89058ca
Signed-off-by: Mahadevan <quic_mahap@quicinc.com>
This commit is contained in:
Mahadevan
2022-02-16 23:49:28 +05:30
parent 887b222de9
commit 6bb958c88b
5 changed files with 18 additions and 6 deletions

View File

@@ -1,5 +1,6 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2015-2021, The Linux Foundation. All rights reserved.
*/
@@ -163,6 +164,9 @@ struct sde_hw_pingpong {
enum sde_pingpong idx;
const struct sde_pingpong_cfg *caps;
/* associated dcwb idx */
enum sde_dcwb dcwb_idx;
/* associated 3d_merge */
struct sde_hw_merge_3d *merge_3d;