Skip to content

Commit a716527

Browse files
JIaxygarobclark
authored andcommitted
drm/msm/adreno: Add support for SM7150 SoC machine
SM7150 has 5 power levels which correspond to 5 speed-bin values: 0, 128, 146, 167, 172. Speed-bin value is calulated as FMAX/4.8MHz round up to zero decimal places. Also a618 on SM7150 uses a615 zapfw. Add a squashed version (.mbn). Add this as machine = "qcom,sm7150", because speed-bin values are different from atoll (sc7180/sm7125). Signed-off-by: Danila Tikhonov <danila@jiaxyga.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Patchwork: https://patchwork.freedesktop.org/patch/578902/ Signed-off-by: Rob Clark <robdclark@chromium.org>
1 parent 0d7dfc7 commit a716527

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

drivers/gpu/drm/msm/adreno/adreno_device.c

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,27 @@ static const struct adreno_info gpulist[] = {
293293
{ 157, 3 },
294294
{ 127, 4 },
295295
),
296+
}, {
297+
.machine = "qcom,sm7150",
298+
.chip_ids = ADRENO_CHIP_IDS(0x06010800),
299+
.family = ADRENO_6XX_GEN1,
300+
.fw = {
301+
[ADRENO_FW_SQE] = "a630_sqe.fw",
302+
[ADRENO_FW_GMU] = "a630_gmu.bin",
303+
},
304+
.gmem = SZ_512K,
305+
.inactive_period = DRM_MSM_INACTIVE_PERIOD,
306+
.quirks = ADRENO_QUIRK_HAS_CACHED_COHERENT,
307+
.init = a6xx_gpu_init,
308+
.zapfw = "a615_zap.mbn",
309+
.hwcg = a615_hwcg,
310+
.speedbins = ADRENO_SPEEDBINS(
311+
{ 0, 0 },
312+
{ 128, 1 },
313+
{ 146, 2 },
314+
{ 167, 3 },
315+
{ 172, 4 },
316+
),
296317
}, {
297318
.chip_ids = ADRENO_CHIP_IDS(0x06010800),
298319
.family = ADRENO_6XX_GEN1,
@@ -539,6 +560,7 @@ MODULE_FIRMWARE("qcom/a530_zap.b00");
539560
MODULE_FIRMWARE("qcom/a530_zap.b01");
540561
MODULE_FIRMWARE("qcom/a530_zap.b02");
541562
MODULE_FIRMWARE("qcom/a540_gpmu.fw2");
563+
MODULE_FIRMWARE("qcom/a615_zap.mbn");
542564
MODULE_FIRMWARE("qcom/a619_gmu.bin");
543565
MODULE_FIRMWARE("qcom/a630_sqe.fw");
544566
MODULE_FIRMWARE("qcom/a630_gmu.bin");

0 commit comments

Comments
 (0)