drm/msm/dpu: Add more of the INTF interrupt regions
authorBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 23 Nov 2021 15:40:49 +0000 (07:40 -0800)
committerRob Clark <robdclark@chromium.org>
Tue, 30 Nov 2021 00:19:58 +0000 (16:19 -0800)
In addition to the other 7xxx INTF interrupt regions, SM8350 has
additional INTF regions at 0x0ae37000, 0x0ae38000 and 0x0ae39000, define
these. The 7xxx naming scheme of the bits are kept for consistency.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Link: https://lore.kernel.org/r/20211123154050.40984-1-bjorn.andersson@linaro.org
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.h

index d2b6dca487e30f67c14c496049e56e75128c7c68..a77a5eaa78ad203b518b9b1634df272456116e7f 100644 (file)
@@ -30,6 +30,9 @@
 #define MDP_AD4_INTR_STATUS_OFF                0x420
 #define MDP_INTF_0_OFF_REV_7xxx             0x34000
 #define MDP_INTF_1_OFF_REV_7xxx             0x35000
+#define MDP_INTF_2_OFF_REV_7xxx             0x36000
+#define MDP_INTF_3_OFF_REV_7xxx             0x37000
+#define MDP_INTF_4_OFF_REV_7xxx             0x38000
 #define MDP_INTF_5_OFF_REV_7xxx             0x39000
 
 /**
@@ -110,6 +113,21 @@ static const struct dpu_intr_reg dpu_intr_set[] = {
                MDP_INTF_1_OFF_REV_7xxx+INTF_INTR_EN,
                MDP_INTF_1_OFF_REV_7xxx+INTF_INTR_STATUS
        },
+       {
+               MDP_INTF_2_OFF_REV_7xxx+INTF_INTR_CLEAR,
+               MDP_INTF_2_OFF_REV_7xxx+INTF_INTR_EN,
+               MDP_INTF_2_OFF_REV_7xxx+INTF_INTR_STATUS
+       },
+       {
+               MDP_INTF_3_OFF_REV_7xxx+INTF_INTR_CLEAR,
+               MDP_INTF_3_OFF_REV_7xxx+INTF_INTR_EN,
+               MDP_INTF_3_OFF_REV_7xxx+INTF_INTR_STATUS
+       },
+       {
+               MDP_INTF_4_OFF_REV_7xxx+INTF_INTR_CLEAR,
+               MDP_INTF_4_OFF_REV_7xxx+INTF_INTR_EN,
+               MDP_INTF_4_OFF_REV_7xxx+INTF_INTR_STATUS
+       },
        {
                MDP_INTF_5_OFF_REV_7xxx+INTF_INTR_CLEAR,
                MDP_INTF_5_OFF_REV_7xxx+INTF_INTR_EN,
index d50e78c9f1482fa600ee017463b3281a81fcf1cb..1ab75cccd1456b0fc85bef6fce5a3ae6af1fb6bb 100644 (file)
@@ -26,6 +26,9 @@ enum dpu_hw_intr_reg {
        MDP_AD4_1_INTR,
        MDP_INTF0_7xxx_INTR,
        MDP_INTF1_7xxx_INTR,
+       MDP_INTF2_7xxx_INTR,
+       MDP_INTF3_7xxx_INTR,
+       MDP_INTF4_7xxx_INTR,
        MDP_INTF5_7xxx_INTR,
        MDP_INTR_MAX,
 };