From: Dmitry Baryshkov <lu...@kernel.org>

Continue migration to the MDSS-revision based checks and replace
DPU_INTF_INPUT_CTRL feature bit with the core_major_ver >= 5 check.

Signed-off-by: Dmitry Baryshkov <dmitry.barysh...@linaro.org>
---
 drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_10_0_sm8650.h  |  4 ----
 drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h   |  4 ----
 drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h  |  6 ------
 drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_2_sm7150.h   |  4 ----
 drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_3_sm6150.h   |  3 ---
 drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_4_sm6125.h   |  2 --
 drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h   |  4 ----
 drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h   |  2 --
 drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h   |  1 -
 drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_4_sm6350.h   |  2 --
 drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h  |  1 -
 drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_9_sm6375.h   |  1 -
 drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h   |  4 ----
 drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h   |  3 ---
 drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h |  9 ---------
 drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h   |  4 ----
 drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_4_sa8775p.h  |  8 --------
 drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h   |  4 ----
 drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_2_x1e80100.h |  9 ---------
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c           |  3 ---
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h           | 11 -----------
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c              |  2 +-
 22 files changed, 1 insertion(+), 90 deletions(-)

diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_10_0_sm8650.h 
b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_10_0_sm8650.h
index 
4ab361b7c977c2c97927543154d5dcd00091879c..70c519b923f57f2ccae094eedf03c4f313062de8
 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_10_0_sm8650.h
+++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_10_0_sm8650.h
@@ -367,7 +367,6 @@ static const struct dpu_intf_cfg sm8650_intf[] = {
        {
                .name = "intf_0", .id = INTF_0,
                .base = 0x34000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = MSM_DP_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 24,
@@ -376,7 +375,6 @@ static const struct dpu_intf_cfg sm8650_intf[] = {
        }, {
                .name = "intf_1", .id = INTF_1,
                .base = 0x35000, .len = 0x300,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DSI,
                .controller_id = MSM_DSI_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 24,
@@ -386,7 +384,6 @@ static const struct dpu_intf_cfg sm8650_intf[] = {
        }, {
                .name = "intf_2", .id = INTF_2,
                .base = 0x36000, .len = 0x300,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DSI,
                .controller_id = MSM_DSI_CONTROLLER_1,
                .prog_fetch_lines_worst_case = 24,
@@ -396,7 +393,6 @@ static const struct dpu_intf_cfg sm8650_intf[] = {
        }, {
                .name = "intf_3", .id = INTF_3,
                .base = 0x37000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = MSM_DP_CONTROLLER_1,
                .prog_fetch_lines_worst_case = 24,
diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h 
b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h
index 
3bb0749f931d7417f8e90bfe3736ce77dafccb57..6438a5a14e4b89462873b5c817713b4ff67d7ccc
 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h
+++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h
@@ -304,7 +304,6 @@ static const struct dpu_intf_cfg sm8150_intf[] = {
        {
                .name = "intf_0", .id = INTF_0,
                .base = 0x6a000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = MSM_DP_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 24,
@@ -313,7 +312,6 @@ static const struct dpu_intf_cfg sm8150_intf[] = {
        }, {
                .name = "intf_1", .id = INTF_1,
                .base = 0x6a800, .len = 0x2bc,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DSI,
                .controller_id = MSM_DSI_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 24,
@@ -323,7 +321,6 @@ static const struct dpu_intf_cfg sm8150_intf[] = {
        }, {
                .name = "intf_2", .id = INTF_2,
                .base = 0x6b000, .len = 0x2bc,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DSI,
                .controller_id = MSM_DSI_CONTROLLER_1,
                .prog_fetch_lines_worst_case = 24,
@@ -333,7 +330,6 @@ static const struct dpu_intf_cfg sm8150_intf[] = {
        }, {
                .name = "intf_3", .id = INTF_3,
                .base = 0x6b800, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = MSM_DP_CONTROLLER_1,
                .prog_fetch_lines_worst_case = 24,
diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h 
b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h
index 
84114df5f072af16aeedd3aada8a106ca4369ddb..d08799471b85a882ecb151cb9b5be2a098bfc003
 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h
+++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h
@@ -311,7 +311,6 @@ static const struct dpu_intf_cfg sc8180x_intf[] = {
        {
                .name = "intf_0", .id = INTF_0,
                .base = 0x6a000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = MSM_DP_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 24,
@@ -320,7 +319,6 @@ static const struct dpu_intf_cfg sc8180x_intf[] = {
        }, {
                .name = "intf_1", .id = INTF_1,
                .base = 0x6a800, .len = 0x2bc,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DSI,
                .controller_id = MSM_DSI_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 24,
@@ -330,7 +328,6 @@ static const struct dpu_intf_cfg sc8180x_intf[] = {
        }, {
                .name = "intf_2", .id = INTF_2,
                .base = 0x6b000, .len = 0x2bc,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DSI,
                .controller_id = MSM_DSI_CONTROLLER_1,
                .prog_fetch_lines_worst_case = 24,
@@ -342,7 +339,6 @@ static const struct dpu_intf_cfg sc8180x_intf[] = {
        {
                .name = "intf_3", .id = INTF_3,
                .base = 0x6b800, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = 999,
                .prog_fetch_lines_worst_case = 24,
@@ -351,7 +347,6 @@ static const struct dpu_intf_cfg sc8180x_intf[] = {
        }, {
                .name = "intf_4", .id = INTF_4,
                .base = 0x6c000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = MSM_DP_CONTROLLER_1,
                .prog_fetch_lines_worst_case = 24,
@@ -360,7 +355,6 @@ static const struct dpu_intf_cfg sc8180x_intf[] = {
        }, {
                .name = "intf_5", .id = INTF_5,
                .base = 0x6c800, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = MSM_DP_CONTROLLER_2,
                .prog_fetch_lines_worst_case = 24,
diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_2_sm7150.h 
b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_2_sm7150.h
index 
7a04eacb108bea33573cf75fb5537b80e8273039..acaa0b85ed1edd970dd17ae4d8d06a3dee6e8083
 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_2_sm7150.h
+++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_2_sm7150.h
@@ -212,7 +212,6 @@ static const struct dpu_intf_cfg sm7150_intf[] = {
        {
                .name = "intf_0", .id = INTF_0,
                .base = 0x6a000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = MSM_DP_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 24,
@@ -221,7 +220,6 @@ static const struct dpu_intf_cfg sm7150_intf[] = {
        }, {
                .name = "intf_1", .id = INTF_1,
                .base = 0x6a800, .len = 0x2bc,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DSI,
                .controller_id = MSM_DSI_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 24,
@@ -231,7 +229,6 @@ static const struct dpu_intf_cfg sm7150_intf[] = {
        }, {
                .name = "intf_2", .id = INTF_2,
                .base = 0x6b000, .len = 0x2bc,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DSI,
                .controller_id = MSM_DSI_CONTROLLER_1,
                .prog_fetch_lines_worst_case = 24,
@@ -241,7 +238,6 @@ static const struct dpu_intf_cfg sm7150_intf[] = {
        }, {
                .name = "intf_3", .id = INTF_3,
                .base = 0x6b800, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = MSM_DP_CONTROLLER_1,
                .prog_fetch_lines_worst_case = 24,
diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_3_sm6150.h 
b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_3_sm6150.h
index 
d44db988a6e2f443803a422846f817779d382b2a..a99c99ca37703cc3a7d4403d3f026f234b693319
 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_3_sm6150.h
+++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_3_sm6150.h
@@ -175,7 +175,6 @@ static const struct dpu_intf_cfg sm6150_intf[] = {
        {
                .name = "intf_0", .id = INTF_0,
                .base = 0x6a000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = MSM_DP_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 24,
@@ -184,7 +183,6 @@ static const struct dpu_intf_cfg sm6150_intf[] = {
        }, {
                .name = "intf_1", .id = INTF_1,
                .base = 0x6a800, .len = 0x2c0,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DSI,
                .controller_id = MSM_DSI_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 24,
@@ -194,7 +192,6 @@ static const struct dpu_intf_cfg sm6150_intf[] = {
        }, {
                .name = "intf_3", .id = INTF_3,
                .base = 0x6b800, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = MSM_DP_CONTROLLER_1,
                .prog_fetch_lines_worst_case = 24,
diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_4_sm6125.h 
b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_4_sm6125.h
index 
ba631cdbbff0cec7453685bc1028791eadbbb2d4..0dce5292fdfe7988504d51d701d3908adf9b596a
 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_4_sm6125.h
+++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_4_sm6125.h
@@ -152,7 +152,6 @@ static const struct dpu_intf_cfg sm6125_intf[] = {
        {
                .name = "intf_0", .id = INTF_0,
                .base = 0x6a000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = MSM_DP_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 24,
@@ -161,7 +160,6 @@ static const struct dpu_intf_cfg sm6125_intf[] = {
        }, {
                .name = "intf_1", .id = INTF_1,
                .base = 0x6a800, .len = 0x2c0,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DSI,
                .controller_id = 0,
                .prog_fetch_lines_worst_case = 24,
diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h 
b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h
index 
5f7bee25a7a4f80d1f2fb86f126863b721c41281..6fce6d382c959b7ae47591f52dd06bcf241ff4e2
 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h
+++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h
@@ -287,7 +287,6 @@ static const struct dpu_intf_cfg sm8250_intf[] = {
        {
                .name = "intf_0", .id = INTF_0,
                .base = 0x6a000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = MSM_DP_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 24,
@@ -296,7 +295,6 @@ static const struct dpu_intf_cfg sm8250_intf[] = {
        }, {
                .name = "intf_1", .id = INTF_1,
                .base = 0x6a800, .len = 0x2c0,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DSI,
                .controller_id = MSM_DSI_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 24,
@@ -306,7 +304,6 @@ static const struct dpu_intf_cfg sm8250_intf[] = {
        }, {
                .name = "intf_2", .id = INTF_2,
                .base = 0x6b000, .len = 0x2c0,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DSI,
                .controller_id = MSM_DSI_CONTROLLER_1,
                .prog_fetch_lines_worst_case = 24,
@@ -316,7 +313,6 @@ static const struct dpu_intf_cfg sm8250_intf[] = {
        }, {
                .name = "intf_3", .id = INTF_3,
                .base = 0x6b800, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = MSM_DP_CONTROLLER_1,
                .prog_fetch_lines_worst_case = 24,
diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h 
b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h
index 
0ede8223a3a85414f271de11b601b648ca865fbe..52b674fed71e57f82b778c13f6712a52a2a425a7
 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h
+++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h
@@ -129,7 +129,6 @@ static const struct dpu_intf_cfg sc7180_intf[] = {
        {
                .name = "intf_0", .id = INTF_0,
                .base = 0x6a000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = MSM_DP_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 24,
@@ -138,7 +137,6 @@ static const struct dpu_intf_cfg sc7180_intf[] = {
        }, {
                .name = "intf_1", .id = INTF_1,
                .base = 0x6a800, .len = 0x2c0,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DSI,
                .controller_id = MSM_DSI_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 24,
diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h 
b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h
index 
01e398add3c45a8bc504da5ca268df0487462113..0178ce52e84f355919241435f58c390234c16162
 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h
+++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h
@@ -87,7 +87,6 @@ static const struct dpu_intf_cfg sm6115_intf[] = {
        {
                .name = "intf_1", .id = INTF_1,
                .base = 0x6a800, .len = 0x2c0,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DSI,
                .controller_id = MSM_DSI_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 24,
diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_4_sm6350.h 
b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_4_sm6350.h
index 
da04822327975aa70cab679f5e53d53f65fb749c..89db83a73bbeb15b99ac4324b7685baf0d724039
 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_4_sm6350.h
+++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_4_sm6350.h
@@ -160,7 +160,6 @@ static const struct dpu_intf_cfg sm6350_intf[] = {
        {
                .name = "intf_0", .id = INTF_0,
                .base = 0x6a000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = MSM_DP_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 35,
@@ -169,7 +168,6 @@ static const struct dpu_intf_cfg sm6350_intf[] = {
        }, {
                .name = "intf_1", .id = INTF_1,
                .base = 0x6a800, .len = 0x2c0,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DSI,
                .controller_id = MSM_DSI_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 35,
diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h 
b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h
index 
94dc8726199a3a48a64c7dff58bc62e6fd097c99..0b1740de2bff94f1818ab41c6bc713f16796c4a4
 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h
+++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h
@@ -87,7 +87,6 @@ static const struct dpu_intf_cfg qcm2290_intf[] = {
        {
                .name = "intf_1", .id = INTF_1,
                .base = 0x6a800, .len = 0x2c0,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DSI,
                .controller_id = MSM_DSI_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 24,
diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_9_sm6375.h 
b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_9_sm6375.h
index 
2b2b9417e23950425a72f6dd44baf824b5a00061..19800f207bff3077c7ac57ad736eea533674ae20
 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_9_sm6375.h
+++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_9_sm6375.h
@@ -97,7 +97,6 @@ static const struct dpu_intf_cfg sm6375_intf[] = {
        {
                .name = "intf_1", .id = INTF_1,
                .base = 0x6a800, .len = 0x2c0,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DSI,
                .controller_id = MSM_DSI_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 24,
diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h 
b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h
index 
490ddf9880103fc853b5187256c4b960739820bc..94a9f33f008a13db09764882cb042f71337b89d5
 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h
+++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h
@@ -311,7 +311,6 @@ static const struct dpu_intf_cfg sm8350_intf[] = {
        {
                .name = "intf_0", .id = INTF_0,
                .base = 0x34000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = MSM_DP_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 24,
@@ -320,7 +319,6 @@ static const struct dpu_intf_cfg sm8350_intf[] = {
        }, {
                .name = "intf_1", .id = INTF_1,
                .base = 0x35000, .len = 0x2c4,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DSI,
                .controller_id = MSM_DSI_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 24,
@@ -330,7 +328,6 @@ static const struct dpu_intf_cfg sm8350_intf[] = {
        }, {
                .name = "intf_2", .id = INTF_2,
                .base = 0x36000, .len = 0x2c4,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DSI,
                .controller_id = MSM_DSI_CONTROLLER_1,
                .prog_fetch_lines_worst_case = 24,
@@ -340,7 +337,6 @@ static const struct dpu_intf_cfg sm8350_intf[] = {
        }, {
                .name = "intf_3", .id = INTF_3,
                .base = 0x37000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = MSM_DP_CONTROLLER_1,
                .prog_fetch_lines_worst_case = 24,
diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h 
b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h
index 
2ee29c56224596b3786104090290b88cecf7b223..d1dd895acbf666ceab39f9c38ae11bda100b5953
 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h
+++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h
@@ -178,7 +178,6 @@ static const struct dpu_intf_cfg sc7280_intf[] = {
        {
                .name = "intf_0", .id = INTF_0,
                .base = 0x34000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = MSM_DP_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 24,
@@ -187,7 +186,6 @@ static const struct dpu_intf_cfg sc7280_intf[] = {
        }, {
                .name = "intf_1", .id = INTF_1,
                .base = 0x35000, .len = 0x2c4,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DSI,
                .controller_id = MSM_DSI_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 24,
@@ -197,7 +195,6 @@ static const struct dpu_intf_cfg sc7280_intf[] = {
        }, {
                .name = "intf_5", .id = INTF_5,
                .base = 0x39000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = MSM_DP_CONTROLLER_1,
                .prog_fetch_lines_worst_case = 24,
diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h 
b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h
index 
dac38e0ade971876c2ed73b6d46cd4055cb77d2d..5b765620d6eff14327f8eff811ee3b7b8fd404a5
 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h
+++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h
@@ -307,7 +307,6 @@ static const struct dpu_intf_cfg sc8280xp_intf[] = {
        {
                .name = "intf_0", .id = INTF_0,
                .base = 0x34000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = MSM_DP_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 24,
@@ -316,7 +315,6 @@ static const struct dpu_intf_cfg sc8280xp_intf[] = {
        }, {
                .name = "intf_1", .id = INTF_1,
                .base = 0x35000, .len = 0x300,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DSI,
                .controller_id = MSM_DSI_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 24,
@@ -326,7 +324,6 @@ static const struct dpu_intf_cfg sc8280xp_intf[] = {
        }, {
                .name = "intf_2", .id = INTF_2,
                .base = 0x36000, .len = 0x300,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DSI,
                .controller_id = MSM_DSI_CONTROLLER_1,
                .prog_fetch_lines_worst_case = 24,
@@ -336,7 +333,6 @@ static const struct dpu_intf_cfg sc8280xp_intf[] = {
        }, {
                .name = "intf_3", .id = INTF_3,
                .base = 0x37000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_NONE,
                .controller_id = MSM_DP_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 24,
@@ -345,7 +341,6 @@ static const struct dpu_intf_cfg sc8280xp_intf[] = {
        }, {
                .name = "intf_4", .id = INTF_4,
                .base = 0x38000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = MSM_DP_CONTROLLER_1,
                .prog_fetch_lines_worst_case = 24,
@@ -354,7 +349,6 @@ static const struct dpu_intf_cfg sc8280xp_intf[] = {
        }, {
                .name = "intf_5", .id = INTF_5,
                .base = 0x39000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = MSM_DP_CONTROLLER_3,
                .prog_fetch_lines_worst_case = 24,
@@ -363,7 +357,6 @@ static const struct dpu_intf_cfg sc8280xp_intf[] = {
        }, {
                .name = "intf_6", .id = INTF_6,
                .base = 0x3a000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = MSM_DP_CONTROLLER_2,
                .prog_fetch_lines_worst_case = 24,
@@ -372,7 +365,6 @@ static const struct dpu_intf_cfg sc8280xp_intf[] = {
        }, {
                .name = "intf_7", .id = INTF_7,
                .base = 0x3b000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_NONE,
                .controller_id = MSM_DP_CONTROLLER_2,
                .prog_fetch_lines_worst_case = 24,
@@ -381,7 +373,6 @@ static const struct dpu_intf_cfg sc8280xp_intf[] = {
        }, {
                .name = "intf_8", .id = INTF_8,
                .base = 0x3c000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_NONE,
                .controller_id = MSM_DP_CONTROLLER_1,
                .prog_fetch_lines_worst_case = 24,
diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h 
b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h
index 
db332286a0a92cfda434571a2a582c45460e5300..770c2236afebe8b6bb38f2eab4d201fbf4256342
 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h
+++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h
@@ -327,7 +327,6 @@ static const struct dpu_intf_cfg sm8450_intf[] = {
        {
                .name = "intf_0", .id = INTF_0,
                .base = 0x34000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = MSM_DP_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 24,
@@ -336,7 +335,6 @@ static const struct dpu_intf_cfg sm8450_intf[] = {
        }, {
                .name = "intf_1", .id = INTF_1,
                .base = 0x35000, .len = 0x300,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DSI,
                .controller_id = MSM_DSI_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 24,
@@ -346,7 +344,6 @@ static const struct dpu_intf_cfg sm8450_intf[] = {
        }, {
                .name = "intf_2", .id = INTF_2,
                .base = 0x36000, .len = 0x300,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DSI,
                .controller_id = MSM_DSI_CONTROLLER_1,
                .prog_fetch_lines_worst_case = 24,
@@ -356,7 +353,6 @@ static const struct dpu_intf_cfg sm8450_intf[] = {
        }, {
                .name = "intf_3", .id = INTF_3,
                .base = 0x37000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = MSM_DP_CONTROLLER_1,
                .prog_fetch_lines_worst_case = 24,
diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_4_sa8775p.h 
b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_4_sa8775p.h
index 
826cd366495139e0e4cf1862e923ef0ece0d7184..6f376b716690a8e144d2ad9c424232c7a535c45e
 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_4_sa8775p.h
+++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_4_sa8775p.h
@@ -337,7 +337,6 @@ static const struct dpu_intf_cfg sa8775p_intf[] = {
        {
                .name = "intf_0", .id = INTF_0,
                .base = 0x34000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = MSM_DP_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 24,
@@ -346,7 +345,6 @@ static const struct dpu_intf_cfg sa8775p_intf[] = {
        }, {
                .name = "intf_1", .id = INTF_1,
                .base = 0x35000, .len = 0x300,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DSI,
                .controller_id = MSM_DSI_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 24,
@@ -356,7 +354,6 @@ static const struct dpu_intf_cfg sa8775p_intf[] = {
        }, {
                .name = "intf_2", .id = INTF_2,
                .base = 0x36000, .len = 0x300,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DSI,
                .controller_id = MSM_DSI_CONTROLLER_1,
                .prog_fetch_lines_worst_case = 24,
@@ -366,7 +363,6 @@ static const struct dpu_intf_cfg sa8775p_intf[] = {
        }, {
                .name = "intf_3", .id = INTF_3,
                .base = 0x37000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_NONE,
                .controller_id = MSM_DP_CONTROLLER_0,   /* pair with intf_0 for 
DP MST */
                .prog_fetch_lines_worst_case = 24,
@@ -375,7 +371,6 @@ static const struct dpu_intf_cfg sa8775p_intf[] = {
        }, {
                .name = "intf_4", .id = INTF_4,
                .base = 0x38000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = MSM_DP_CONTROLLER_1,
                .prog_fetch_lines_worst_case = 24,
@@ -384,7 +379,6 @@ static const struct dpu_intf_cfg sa8775p_intf[] = {
        }, {
                .name = "intf_6", .id = INTF_6,
                .base = 0x3A000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_NONE,
                .controller_id = MSM_DP_CONTROLLER_0,   /* pair with intf_0 for 
DP MST */
                .prog_fetch_lines_worst_case = 24,
@@ -393,7 +387,6 @@ static const struct dpu_intf_cfg sa8775p_intf[] = {
        }, {
                .name = "intf_7", .id = INTF_7,
                .base = 0x3b000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_NONE,
                .controller_id = MSM_DP_CONTROLLER_0,   /* pair with intf_0 for 
DP MST */
                .prog_fetch_lines_worst_case = 24,
@@ -402,7 +395,6 @@ static const struct dpu_intf_cfg sa8775p_intf[] = {
        }, {
                .name = "intf_8", .id = INTF_8,
                .base = 0x3c000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_NONE,
                .controller_id = MSM_DP_CONTROLLER_1,   /* pair with intf_4 for 
DP MST */
                .prog_fetch_lines_worst_case = 24,
diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h 
b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h
index 
f5f018381b4f0f59c2751b18528994ff79555d58..b03077865cd545219e814311bec4d8da4fd9974c
 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h
+++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h
@@ -322,7 +322,6 @@ static const struct dpu_intf_cfg sm8550_intf[] = {
        {
                .name = "intf_0", .id = INTF_0,
                .base = 0x34000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = MSM_DP_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 24,
@@ -331,7 +330,6 @@ static const struct dpu_intf_cfg sm8550_intf[] = {
        }, {
                .name = "intf_1", .id = INTF_1,
                .base = 0x35000, .len = 0x300,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DSI,
                .controller_id = MSM_DSI_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 24,
@@ -341,7 +339,6 @@ static const struct dpu_intf_cfg sm8550_intf[] = {
        }, {
                .name = "intf_2", .id = INTF_2,
                .base = 0x36000, .len = 0x300,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DSI,
                .controller_id = MSM_DSI_CONTROLLER_1,
                .prog_fetch_lines_worst_case = 24,
@@ -351,7 +348,6 @@ static const struct dpu_intf_cfg sm8550_intf[] = {
        }, {
                .name = "intf_3", .id = INTF_3,
                .base = 0x37000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = MSM_DP_CONTROLLER_1,
                .prog_fetch_lines_worst_case = 24,
diff --git a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_2_x1e80100.h 
b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_2_x1e80100.h
index 
ecda48282f52e0fc33b68117650b9f2b76c90276..a587c6bba11c30d9090aa6c48d11c7b65819a58e
 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_2_x1e80100.h
+++ b/drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_2_x1e80100.h
@@ -323,7 +323,6 @@ static const struct dpu_intf_cfg x1e80100_intf[] = {
        {
                .name = "intf_0", .id = INTF_0,
                .base = 0x34000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = MSM_DP_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 24,
@@ -332,7 +331,6 @@ static const struct dpu_intf_cfg x1e80100_intf[] = {
        }, {
                .name = "intf_1", .id = INTF_1,
                .base = 0x35000, .len = 0x300,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DSI,
                .controller_id = MSM_DSI_CONTROLLER_0,
                .prog_fetch_lines_worst_case = 24,
@@ -342,7 +340,6 @@ static const struct dpu_intf_cfg x1e80100_intf[] = {
        }, {
                .name = "intf_2", .id = INTF_2,
                .base = 0x36000, .len = 0x300,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DSI,
                .controller_id = MSM_DSI_CONTROLLER_1,
                .prog_fetch_lines_worst_case = 24,
@@ -352,7 +349,6 @@ static const struct dpu_intf_cfg x1e80100_intf[] = {
        }, {
                .name = "intf_3", .id = INTF_3,
                .base = 0x37000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_NONE,
                .controller_id = MSM_DP_CONTROLLER_0,   /* pair with intf_0 for 
DP MST */
                .prog_fetch_lines_worst_case = 24,
@@ -361,7 +357,6 @@ static const struct dpu_intf_cfg x1e80100_intf[] = {
        }, {
                .name = "intf_4", .id = INTF_4,
                .base = 0x38000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = MSM_DP_CONTROLLER_1,
                .prog_fetch_lines_worst_case = 24,
@@ -370,7 +365,6 @@ static const struct dpu_intf_cfg x1e80100_intf[] = {
        }, {
                .name = "intf_5", .id = INTF_5,
                .base = 0x39000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = MSM_DP_CONTROLLER_3,
                .prog_fetch_lines_worst_case = 24,
@@ -379,7 +373,6 @@ static const struct dpu_intf_cfg x1e80100_intf[] = {
        }, {
                .name = "intf_6", .id = INTF_6,
                .base = 0x3A000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_DP,
                .controller_id = MSM_DP_CONTROLLER_2,
                .prog_fetch_lines_worst_case = 24,
@@ -388,7 +381,6 @@ static const struct dpu_intf_cfg x1e80100_intf[] = {
        }, {
                .name = "intf_7", .id = INTF_7,
                .base = 0x3b000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_NONE,
                .controller_id = MSM_DP_CONTROLLER_2,   /* pair with intf_6 for 
DP MST */
                .prog_fetch_lines_worst_case = 24,
@@ -397,7 +389,6 @@ static const struct dpu_intf_cfg x1e80100_intf[] = {
        }, {
                .name = "intf_8", .id = INTF_8,
                .base = 0x3c000, .len = 0x280,
-               .features = INTF_SC7180_MASK,
                .type = INTF_NONE,
                .controller_id = MSM_DP_CONTROLLER_1,   /* pair with intf_4 for 
DP MST */
                .prog_fetch_lines_worst_case = 24,
diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c 
b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c
index 
8808be27593b303a2a199a740827c92ea5339b0d..5e0123557a44fda1d250130e09e4968535927088
 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c
+++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c
@@ -110,9 +110,6 @@
 #define PINGPONG_SM8150_MASK \
        (BIT(DPU_PINGPONG_DITHER) | BIT(DPU_PINGPONG_DSC))
 
-#define INTF_SC7180_MASK \
-       (BIT(DPU_INTF_INPUT_CTRL))
-
 #define WB_SDM845_MASK (BIT(DPU_WB_LINE_MODE) | \
                         BIT(DPU_WB_UBWC) | \
                         BIT(DPU_WB_YUV_CONFIG) | \
diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h 
b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h
index 
858fd73e0ac3a92fe402001d4796eb86945f61b0..33506e3bba9fc51f9e99446cb7df6aa51d81a3b1
 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h
+++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h
@@ -141,17 +141,6 @@ enum {
        DPU_CTL_MAX
 };
 
-/**
- * INTF sub-blocks
- * @DPU_INTF_INPUT_CTRL             Supports the setting of pp block from which
- *                                  pixel data arrives to this INTF
- * @DPU_INTF_MAX
- */
-enum {
-       DPU_INTF_INPUT_CTRL = 0x1,
-       DPU_INTF_MAX
-};
-
 /**
   * WB sub-blocks and features
   * @DPU_WB_LINE_MODE        Writeback module supports line/linear mode
diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c 
b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c
index 
54c2e984ef0ce604e3eda49595d2816ea41bd7fd..a80ac82a96255da1d52e1f2fa7fc39388fc3782b
 100644
--- a/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c
+++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c
@@ -588,7 +588,7 @@ struct dpu_hw_intf *dpu_hw_intf_init(struct drm_device *dev,
        c->ops.setup_misr = dpu_hw_intf_setup_misr;
        c->ops.collect_misr = dpu_hw_intf_collect_misr;
 
-       if (cfg->features & BIT(DPU_INTF_INPUT_CTRL))
+       if (mdss_rev->core_major_ver >= 5)
                c->ops.bind_pingpong_blk = dpu_hw_intf_bind_pingpong_blk;
 
        /* INTF TE is only for DSI interfaces */

-- 
2.39.5


Reply via email to