mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 04:21:09 -04:00
drm/msm/dpu: get rid of DPU_INTF_STATUS_SUPPORTED
Continue migration to the MDSS-revision based checks and replace DPU_INTF_STATUS_SUPPORTED feature bit with the core_major_ver >= 5 check. Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Patchwork: https://patchwork.freedesktop.org/patch/655384/ Link: https://lore.kernel.org/r/20250522-dpu-drop-features-v5-14-3b2085a07884@oss.qualcomm.com
This commit is contained in:
committed by
Dmitry Baryshkov
parent
19bcbadf92
commit
e432d2e154
@@ -105,8 +105,7 @@
|
||||
(BIT(DPU_PINGPONG_DITHER) | BIT(DPU_PINGPONG_DSC))
|
||||
|
||||
#define INTF_SC7180_MASK \
|
||||
(BIT(DPU_INTF_INPUT_CTRL) | \
|
||||
BIT(DPU_INTF_STATUS_SUPPORTED))
|
||||
(BIT(DPU_INTF_INPUT_CTRL))
|
||||
|
||||
#define WB_SDM845_MASK (BIT(DPU_WB_LINE_MODE) | \
|
||||
BIT(DPU_WB_UBWC) | \
|
||||
|
||||
@@ -143,12 +143,10 @@ enum {
|
||||
* INTF sub-blocks
|
||||
* @DPU_INTF_INPUT_CTRL Supports the setting of pp block from which
|
||||
* pixel data arrives to this INTF
|
||||
* @DPU_INTF_STATUS_SUPPORTED INTF block has INTF_STATUS register
|
||||
* @DPU_INTF_MAX
|
||||
*/
|
||||
enum {
|
||||
DPU_INTF_INPUT_CTRL = 0x1,
|
||||
DPU_INTF_STATUS_SUPPORTED,
|
||||
DPU_INTF_MAX
|
||||
};
|
||||
|
||||
|
||||
@@ -308,9 +308,8 @@ static void dpu_hw_intf_get_status(
|
||||
struct dpu_hw_intf_status *s)
|
||||
{
|
||||
struct dpu_hw_blk_reg_map *c = &intf->hw;
|
||||
unsigned long cap = intf->cap->features;
|
||||
|
||||
if (cap & BIT(DPU_INTF_STATUS_SUPPORTED))
|
||||
if (intf->mdss_ver->core_major_ver >= 5)
|
||||
s->is_en = DPU_REG_READ(c, INTF_STATUS) & BIT(0);
|
||||
else
|
||||
s->is_en = DPU_REG_READ(c, INTF_TIMING_ENGINE_EN);
|
||||
|
||||
Reference in New Issue
Block a user