disp: msm: sde: add programmable lineptr support for writeback
From MDSS 9.0, writeback supports a programmable lineptr support, which generates an interrupt when the configured writeback output height is reached. Add software support to configure the prog_line and to process the interrupt. Change-Id: I3293ad2984c51417e4691c5b11e9c9a010067e1c Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org>
这个提交包含在:
@@ -1348,6 +1348,10 @@ static int _add_to_irq_offset_list(struct sde_mdss_cfg *sde_cfg,
|
||||
if (instance >= LTM_MAX)
|
||||
err = true;
|
||||
break;
|
||||
case SDE_INTR_HWBLK_WB:
|
||||
if (instance >= WB_MAX)
|
||||
err = true;
|
||||
break;
|
||||
default:
|
||||
SDE_ERROR("invalid hwblk_type: %d", blk_type);
|
||||
return -EINVAL;
|
||||
@@ -2555,6 +2559,11 @@ static int sde_wb_parse_dt(struct device_node *np, struct sde_mdss_cfg *sde_cfg)
|
||||
if (IS_SDE_CTL_REV_100(sde_cfg->ctl_rev))
|
||||
set_bit(SDE_WB_INPUT_CTRL, &wb->features);
|
||||
|
||||
if (SDE_HW_MAJOR(sde_cfg->hw_rev) >= SDE_HW_MAJOR(SDE_HW_VER_900))
|
||||
set_bit(SDE_WB_PROG_LINE, &wb->features);
|
||||
|
||||
rc = _add_to_irq_offset_list(sde_cfg, SDE_INTR_HWBLK_WB, wb->id, wb->base);
|
||||
|
||||
if (test_bit(SDE_FEATURE_DEDICATED_CWB, sde_cfg->features)) {
|
||||
set_bit(SDE_WB_HAS_DCWB, &wb->features);
|
||||
if (IS_SDE_CTL_REV_100(sde_cfg->ctl_rev))
|
||||
|
在新工单中引用
屏蔽一个用户