Commit 5ce22484 authored by Dmitry Baryshkov's avatar Dmitry Baryshkov

drm/msm/dpu: expand sm6115 catalog

Duplicate qcm2290 catalog entries to sm6115 to remove dependencies
between DPU instances.
Signed-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: default avatarAbhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/530862/
Link: https://lore.kernel.org/r/20230404130622.509628-28-dmitry.baryshkov@linaro.orgSigned-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
parent 02538790
...@@ -33,6 +33,15 @@ static const struct dpu_mdp_cfg sm6115_mdp[] = { ...@@ -33,6 +33,15 @@ static const struct dpu_mdp_cfg sm6115_mdp[] = {
}, },
}; };
static const struct dpu_ctl_cfg sm6115_ctl[] = {
{
.name = "ctl_0", .id = CTL_0,
.base = 0x1000, .len = 0x1dc,
.features = BIT(DPU_CTL_ACTIVE_CFG),
.intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 9),
},
};
static const struct dpu_sspp_cfg sm6115_sspp[] = { static const struct dpu_sspp_cfg sm6115_sspp[] = {
SSPP_BLK("sspp_0", SSPP_VIG0, 0x4000, 0x1f8, VIG_SC7180_MASK, SSPP_BLK("sspp_0", SSPP_VIG0, 0x4000, 0x1f8, VIG_SC7180_MASK,
sm6115_vig_sblk_0, 0, SSPP_TYPE_VIG, DPU_CLK_CTRL_VIG0), sm6115_vig_sblk_0, 0, SSPP_TYPE_VIG, DPU_CLK_CTRL_VIG0),
...@@ -40,6 +49,27 @@ static const struct dpu_sspp_cfg sm6115_sspp[] = { ...@@ -40,6 +49,27 @@ static const struct dpu_sspp_cfg sm6115_sspp[] = {
sdm845_dma_sblk_0, 1, SSPP_TYPE_DMA, DPU_CLK_CTRL_DMA0), sdm845_dma_sblk_0, 1, SSPP_TYPE_DMA, DPU_CLK_CTRL_DMA0),
}; };
static const struct dpu_lm_cfg sm6115_lm[] = {
LM_BLK("lm_0", LM_0, 0x44000, MIXER_QCM2290_MASK,
&qcm2290_lm_sblk, PINGPONG_0, 0, DSPP_0),
};
static const struct dpu_dspp_cfg sm6115_dspp[] = {
DSPP_BLK("dspp_0", DSPP_0, 0x54000, DSPP_SC7180_MASK,
&sm8150_dspp_sblk),
};
static const struct dpu_pingpong_cfg sm6115_pp[] = {
PP_BLK("pingpong_0", PINGPONG_0, 0x70000, 0, sdm845_pp_sblk,
DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 8),
DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 12)),
};
static const struct dpu_intf_cfg sm6115_intf[] = {
INTF_BLK("intf_0", INTF_0, 0x00000, 0x280, INTF_NONE, 0, 0, 0, 0, 0, 0),
INTF_BLK("intf_1", INTF_1, 0x6a800, 0x2c0, INTF_DSI, 0, 24, INTF_SC7180_MASK, MDP_SSPP_TOP0_INTR, 26, 27),
};
static const struct dpu_perf_cfg sm6115_perf_data = { static const struct dpu_perf_cfg sm6115_perf_data = {
.max_bw_low = 3100000, .max_bw_low = 3100000,
.max_bw_high = 4000000, .max_bw_high = 4000000,
...@@ -74,18 +104,18 @@ static const struct dpu_mdss_cfg sm6115_dpu_cfg = { ...@@ -74,18 +104,18 @@ static const struct dpu_mdss_cfg sm6115_dpu_cfg = {
.ubwc = &sm6115_ubwc_cfg, .ubwc = &sm6115_ubwc_cfg,
.mdp_count = ARRAY_SIZE(sm6115_mdp), .mdp_count = ARRAY_SIZE(sm6115_mdp),
.mdp = sm6115_mdp, .mdp = sm6115_mdp,
.ctl_count = ARRAY_SIZE(qcm2290_ctl), .ctl_count = ARRAY_SIZE(sm6115_ctl),
.ctl = qcm2290_ctl, .ctl = sm6115_ctl,
.sspp_count = ARRAY_SIZE(sm6115_sspp), .sspp_count = ARRAY_SIZE(sm6115_sspp),
.sspp = sm6115_sspp, .sspp = sm6115_sspp,
.mixer_count = ARRAY_SIZE(qcm2290_lm), .mixer_count = ARRAY_SIZE(sm6115_lm),
.mixer = qcm2290_lm, .mixer = sm6115_lm,
.dspp_count = ARRAY_SIZE(qcm2290_dspp), .dspp_count = ARRAY_SIZE(sm6115_dspp),
.dspp = qcm2290_dspp, .dspp = sm6115_dspp,
.pingpong_count = ARRAY_SIZE(qcm2290_pp), .pingpong_count = ARRAY_SIZE(sm6115_pp),
.pingpong = qcm2290_pp, .pingpong = sm6115_pp,
.intf_count = ARRAY_SIZE(qcm2290_intf), .intf_count = ARRAY_SIZE(sm6115_intf),
.intf = qcm2290_intf, .intf = sm6115_intf,
.vbif_count = ARRAY_SIZE(sdm845_vbif), .vbif_count = ARRAY_SIZE(sdm845_vbif),
.vbif = sdm845_vbif, .vbif = sdm845_vbif,
.perf = &sm6115_perf_data, .perf = &sm6115_perf_data,
......
...@@ -884,8 +884,8 @@ static const struct dpu_qos_lut_entry sc7180_qos_nrt[] = { ...@@ -884,8 +884,8 @@ static const struct dpu_qos_lut_entry sc7180_qos_nrt[] = {
#include "catalog/dpu_6_0_sm8250.h" #include "catalog/dpu_6_0_sm8250.h"
#include "catalog/dpu_6_2_sc7180.h" #include "catalog/dpu_6_2_sc7180.h"
#include "catalog/dpu_6_5_qcm2290.h"
#include "catalog/dpu_6_3_sm6115.h" #include "catalog/dpu_6_3_sm6115.h"
#include "catalog/dpu_6_5_qcm2290.h"
#include "catalog/dpu_7_0_sm8350.h" #include "catalog/dpu_7_0_sm8350.h"
#include "catalog/dpu_7_2_sc7280.h" #include "catalog/dpu_7_2_sc7280.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment