Skip to content

Commit 9f85ed1

Browse files
Song Xueandersson
authored andcommitted
soc: qcom: llcc: Add configuration data for QCS615
Add LLCC configuration support for the QCS615 platform. Signed-off-by: Song Xue <quic_songxue@quicinc.com> Link: https://lore.kernel.org/r/20241010-add_llcc_support_for_qcs615-v2-2-044432450a75@quicinc.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent 08e2d7c commit 9f85ed1

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

drivers/soc/qcom/llcc-qcom.c

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2628,6 +2628,45 @@ static const struct llcc_slice_config sm8650_data[] = {
26282628
},
26292629
};
26302630

2631+
static const struct llcc_slice_config qcs615_data[] = {
2632+
{
2633+
.usecase_id = LLCC_CPUSS,
2634+
.slice_id = 1,
2635+
.max_cap = 128,
2636+
.priority = 1,
2637+
.bonus_ways = 0xf,
2638+
.cache_mode = 0,
2639+
.activate_on_init = true,
2640+
.write_scid_en = true,
2641+
}, {
2642+
.usecase_id = LLCC_MDM,
2643+
.slice_id = 8,
2644+
.max_cap = 256,
2645+
.priority = 0,
2646+
.fixed_size = true,
2647+
.bonus_ways = 0xf,
2648+
.cache_mode = 0,
2649+
.activate_on_init = true,
2650+
}, {
2651+
.usecase_id = LLCC_GPUHTW,
2652+
.slice_id = 11,
2653+
.max_cap = 128,
2654+
.priority = 1,
2655+
.fixed_size = true,
2656+
.bonus_ways = 0xf,
2657+
.cache_mode = 0,
2658+
.activate_on_init = true,
2659+
}, {
2660+
.usecase_id = LLCC_GPU,
2661+
.slice_id = 12,
2662+
.max_cap = 128,
2663+
.priority = 1,
2664+
.bonus_ways = 0xf,
2665+
.cache_mode = 0,
2666+
.activate_on_init = true,
2667+
},
2668+
};
2669+
26312670
static const struct llcc_slice_config qdu1000_data_2ch[] = {
26322671
{
26332672
.usecase_id = LLCC_MDMHPGRW,
@@ -3049,6 +3088,16 @@ static const u32 llcc_v2_1_reg_offset[] = {
30493088
[LLCC_COMMON_STATUS0] = 0x0003400c,
30503089
};
30513090

3091+
static const struct qcom_llcc_config qcs615_cfg[] = {
3092+
{
3093+
.sct_data = qcs615_data,
3094+
.size = ARRAY_SIZE(qcs615_data),
3095+
.need_llcc_cfg = true,
3096+
.reg_offset = llcc_v1_reg_offset,
3097+
.edac_reg_offset = &llcc_v1_edac_reg_offset,
3098+
},
3099+
};
3100+
30523101
static const struct qcom_llcc_config qdu1000_cfg[] = {
30533102
{
30543103
.sct_data = qdu1000_data_8ch,
@@ -3255,6 +3304,11 @@ static const struct qcom_llcc_config x1e80100_cfg[] = {
32553304
},
32563305
};
32573306

3307+
static const struct qcom_sct_config qcs615_cfgs = {
3308+
.llcc_config = qcs615_cfg,
3309+
.num_config = ARRAY_SIZE(qcs615_cfg),
3310+
};
3311+
32583312
static const struct qcom_sct_config qdu1000_cfgs = {
32593313
.llcc_config = qdu1000_cfg,
32603314
.num_config = ARRAY_SIZE(qdu1000_cfg),
@@ -3927,6 +3981,7 @@ static int qcom_llcc_probe(struct platform_device *pdev)
39273981
}
39283982

39293983
static const struct of_device_id qcom_llcc_of_match[] = {
3984+
{ .compatible = "qcom,qcs615-llcc", .data = &qcs615_cfgs},
39303985
{ .compatible = "qcom,qdu1000-llcc", .data = &qdu1000_cfgs},
39313986
{ .compatible = "qcom,sa8775p-llcc", .data = &sa8775p_cfgs },
39323987
{ .compatible = "qcom,sar1130p-llcc", .data = &sar1130p_cfgs },

0 commit comments

Comments
 (0)