Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

soc: qcom: llcc: Add llcc configuration support for the SA8775p platform

Add llcc configuration support for the SA8775p platform.

Signed-off-by: Tengfei Fan <quic_tengfan@quicinc.com>
Link: https://lore.kernel.org/r/20240529101534.3166507-3-quic_tengfan@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Tengfei Fan and committed by
Bjorn Andersson
fed15196 f5dbad39

+35
+35
drivers/soc/qcom/llcc-qcom.c
··· 150 150 LLCC_COMMON_STATUS0, 151 151 }; 152 152 153 + static const struct llcc_slice_config sa8775p_data[] = { 154 + {LLCC_CPUSS, 1, 2048, 1, 0, 0x00FF, 0x0, 0, 0, 0, 1, 1, 0, 0}, 155 + {LLCC_VIDSC0, 2, 512, 3, 1, 0x00FF, 0x0, 0, 0, 0, 1, 0, 0, 0}, 156 + {LLCC_CPUSS1, 3, 1024, 1, 1, 0x00FF, 0x0, 0, 0, 0, 1, 0, 0, 0}, 157 + {LLCC_CPUHWT, 5, 512, 1, 1, 0x00FF, 0x0, 0, 0, 0, 1, 0, 0, 0}, 158 + {LLCC_AUDIO, 6, 1024, 1, 1, 0x00FF, 0x0, 0, 0, 0, 0, 0, 0, 0}, 159 + {LLCC_CMPT, 10, 4096, 1, 1, 0x00FF, 0x0, 0, 0, 0, 1, 0, 0, 0}, 160 + {LLCC_GPUHTW, 11, 1024, 1, 1, 0x00FF, 0x0, 0, 0, 0, 1, 0, 0, 0}, 161 + {LLCC_GPU, 12, 1024, 1, 1, 0x00FF, 0x0, 0, 0, 0, 1, 0, 1, 0}, 162 + {LLCC_MMUHWT, 13, 1024, 1, 1, 0x00FF, 0x0, 0, 0, 0, 0, 1, 0, 0}, 163 + {LLCC_CMPTDMA, 15, 1024, 1, 1, 0x00FF, 0x0, 0, 0, 0, 1, 0, 0, 0}, 164 + {LLCC_DISP, 16, 4096, 2, 1, 0x00FF, 0x0, 0, 0, 0, 1, 0, 0, 0}, 165 + {LLCC_VIDFW, 17, 3072, 1, 0, 0x00FF, 0x0, 0, 0, 0, 1, 0, 0, 0}, 166 + {LLCC_AUDHW, 22, 1024, 1, 1, 0x00FF, 0x0, 0, 0, 0, 0, 0, 0, 0}, 167 + {LLCC_CVP, 28, 256, 3, 1, 0x00FF, 0x0, 0, 0, 0, 1, 0, 0, 0}, 168 + {LLCC_APTCM, 30, 1024, 3, 1, 0x0, 0xF0, 1, 0, 0, 1, 0, 0, 0}, 169 + {LLCC_WRCACHE, 31, 512, 1, 1, 0x00FF, 0x0, 0, 0, 0, 0, 1, 0, 0}, 170 + }; 171 + 153 172 static const struct llcc_slice_config sc7180_data[] = { 154 173 { LLCC_CPUSS, 1, 256, 1, 0, 0xf, 0x0, 0, 0, 0, 1, 1 }, 155 174 { LLCC_MDM, 8, 128, 1, 0, 0xf, 0x0, 0, 0, 0, 1, 0 }, ··· 571 552 }, 572 553 }; 573 554 555 + static const struct qcom_llcc_config sa8775p_cfg[] = { 556 + { 557 + .sct_data = sa8775p_data, 558 + .size = ARRAY_SIZE(sa8775p_data), 559 + .need_llcc_cfg = true, 560 + .reg_offset = llcc_v2_1_reg_offset, 561 + .edac_reg_offset = &llcc_v2_1_edac_reg_offset, 562 + }, 563 + }; 564 + 574 565 static const struct qcom_llcc_config sc7180_cfg[] = { 575 566 { 576 567 .sct_data = sc7180_data, ··· 725 696 static const struct qcom_sct_config qdu1000_cfgs = { 726 697 .llcc_config = qdu1000_cfg, 727 698 .num_config = ARRAY_SIZE(qdu1000_cfg), 699 + }; 700 + 701 + static const struct qcom_sct_config sa8775p_cfgs = { 702 + .llcc_config = sa8775p_cfg, 703 + .num_config = ARRAY_SIZE(sa8775p_cfg), 728 704 }; 729 705 730 706 static const struct qcom_sct_config sc7180_cfgs = { ··· 1366 1332 1367 1333 static const struct of_device_id qcom_llcc_of_match[] = { 1368 1334 { .compatible = "qcom,qdu1000-llcc", .data = &qdu1000_cfgs}, 1335 + { .compatible = "qcom,sa8775p-llcc", .data = &sa8775p_cfgs }, 1369 1336 { .compatible = "qcom,sc7180-llcc", .data = &sc7180_cfgs }, 1370 1337 { .compatible = "qcom,sc7280-llcc", .data = &sc7280_cfgs }, 1371 1338 { .compatible = "qcom,sc8180x-llcc", .data = &sc8180x_cfgs },