Skip to content

Commit 6fc61c3

Browse files
Konrad Dybcioandersson
Konrad Dybcio
authored andcommitted
soc: qcom: llcc: Add configuration data for SM8350
Add LLCC configuration data for SM8350 SoC. Signed-off-by: Konrad Dybcio <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 708dbf4 commit 6fc61c3

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

drivers/soc/qcom/llcc-qcom.c

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,28 @@ static const struct llcc_slice_config sm8250_data[] = {
195195
{ LLCC_WRCACHE, 31, 256, 1, 1, 0xfff, 0x0, 0, 0, 0, 0, 1, 0 },
196196
};
197197

198+
static const struct llcc_slice_config sm8350_data[] = {
199+
{ LLCC_CPUSS, 1, 3072, 1, 1, 0xfff, 0x0, 0, 0, 0, 0, 1, 1 },
200+
{ LLCC_VIDSC0, 2, 512, 3, 1, 0xfff, 0x0, 0, 0, 0, 0, 1, 0 },
201+
{ LLCC_AUDIO, 6, 1024, 1, 1, 0xfff, 0x0, 0, 0, 0, 0, 0, 0 },
202+
{ LLCC_MDMHPGRW, 7, 1024, 3, 0, 0xfff, 0x0, 0, 0, 0, 0, 1, 0 },
203+
{ LLCC_MODHW, 9, 1024, 1, 1, 0xfff, 0x0, 0, 0, 0, 0, 1, 0 },
204+
{ LLCC_CMPT, 10, 3072, 1, 1, 0xfff, 0x0, 0, 0, 0, 0, 1, 0 },
205+
{ LLCC_GPUHTW, 11, 1024, 1, 1, 0xfff, 0x0, 0, 0, 0, 0, 1, 0 },
206+
{ LLCC_GPU, 12, 1024, 1, 0, 0xfff, 0x0, 0, 0, 0, 1, 1, 0 },
207+
{ LLCC_MMUHWT, 13, 1024, 1, 1, 0xfff, 0x0, 0, 0, 0, 0, 0, 1 },
208+
{ LLCC_DISP, 16, 3072, 2, 1, 0xfff, 0x0, 0, 0, 0, 0, 1, 0 },
209+
{ LLCC_MDMPNG, 21, 1024, 0, 1, 0xf, 0x0, 0, 0, 0, 0, 1, 0 },
210+
{ LLCC_AUDHW, 22, 1024, 1, 1, 0xfff, 0x0, 0, 0, 0, 0, 1, 0 },
211+
{ LLCC_CVP, 28, 512, 3, 1, 0xfff, 0x0, 0, 0, 0, 0, 1, 0 },
212+
{ LLCC_MODPE, 29, 256, 1, 1, 0xf, 0x0, 0, 0, 0, 0, 1, 0 },
213+
{ LLCC_APTCM, 30, 1024, 3, 1, 0x0, 0x1, 1, 0, 0, 0, 1, 0 },
214+
{ LLCC_WRCACHE, 31, 512, 1, 1, 0xfff, 0x0, 0, 0, 0, 0, 0, 1 },
215+
{ LLCC_CVPFW, 17, 512, 1, 0, 0xfff, 0x0, 0, 0, 0, 0, 1, 0 },
216+
{ LLCC_CPUSS1, 3, 1024, 1, 1, 0xfff, 0x0, 0, 0, 0, 0, 1, 0 },
217+
{ LLCC_CPUHWT, 5, 512, 1, 1, 0xfff, 0x0, 0, 0, 0, 0, 0, 1 },
218+
};
219+
198220
static const struct qcom_llcc_config sc7180_cfg = {
199221
.sct_data = sc7180_data,
200222
.size = ARRAY_SIZE(sc7180_data),
@@ -228,6 +250,11 @@ static const struct qcom_llcc_config sm8250_cfg = {
228250
.size = ARRAY_SIZE(sm8250_data),
229251
};
230252

253+
static const struct qcom_llcc_config sm8350_cfg = {
254+
.sct_data = sm8350_data,
255+
.size = ARRAY_SIZE(sm8350_data),
256+
};
257+
231258
static struct llcc_drv_data *drv_data = (void *) -EPROBE_DEFER;
232259

233260
/**
@@ -644,6 +671,7 @@ static const struct of_device_id qcom_llcc_of_match[] = {
644671
{ .compatible = "qcom,sm6350-llcc", .data = &sm6350_cfg },
645672
{ .compatible = "qcom,sm8150-llcc", .data = &sm8150_cfg },
646673
{ .compatible = "qcom,sm8250-llcc", .data = &sm8250_cfg },
674+
{ .compatible = "qcom,sm8350-llcc", .data = &sm8350_cfg },
647675
{ }
648676
};
649677

include/linux/soc/qcom/llcc-qcom.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
#define LLCC_MODPE 29
3434
#define LLCC_APTCM 30
3535
#define LLCC_WRCACHE 31
36+
#define LLCC_CVPFW 32
37+
#define LLCC_CPUSS1 33
38+
#define LLCC_CPUHWT 36
3639

3740
/**
3841
* struct llcc_slice_desc - Cache slice descriptor

0 commit comments

Comments
 (0)