disp: msm: sde: update cwb block offset for kalama target

Update the cwb block offset and stride values for kalama
target in sde hw catalog. As part of the change, allow the
ctl wb-flush bit for cwb to be set based on the wb idx used.

Change-Id: Ibf7ccda88cbb47bddacf53b5af9841d381a4766c
Signed-off-by: Veera Sundaram Sankaran <quic_veeras@quicinc.com>
このコミットが含まれているのは:
Veera Sundaram Sankaran
2021-12-21 15:12:39 -08:00
コミット 0fa8704818
3個のファイルの変更16行の追加3行の削除

ファイルの表示

@@ -1,5 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2015-2021, The Linux Foundation. All rights reserved.
*/
@@ -1136,7 +1137,11 @@ static int sde_hw_ctl_update_intf_cfg(struct sde_hw_ctl *ctx,
enable);
}
wb_active = enable ? BIT(2) : 0;
for (i = 0; i < cfg->wb_count; i++) {
if (cfg->wb[i] && enable)
wb_active |= BIT(cfg->wb[i] - WB_0);
}
SDE_REG_WRITE(c, CTL_CWB_ACTIVE, cwb_active);
SDE_REG_WRITE(c, CTL_WB_ACTIVE, wb_active);
}