From: Ishu Brar <[email protected]> Add the catalog entry for the Adreno 620 (chip id 0x06020000) found in the Snapdragon 765/765G/768G (SM7250). It is an A650 derivative and uses its SQE and GMU firmware and protect table, together with the A620 zap shader.
The speed-bin fuse values map to the OPP bins as in the downstream "lito" devicetree: fuse 0 is the default bin and fuse 132 and 115 are the two alternate ones. The GMU clock gating mode is 0x00020202, which is what the downstream driver programs on every A6xx except the A612 and A615 family. List the SH0/MC0/ACV bus clock managers like the other A6xx and A7xx parts do, so the bandwidth table is generated from the OPP table once it carries bandwidth votes; until then the table added earlier in this series is used. The bus widths are the ones the other parts use. Signed-off-by: Ishu Brar <[email protected]> --- drivers/gpu/drm/msm/adreno/a6xx_catalog.c | 35 +++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/drivers/gpu/drm/msm/adreno/a6xx_catalog.c b/drivers/gpu/drm/msm/adreno/a6xx_catalog.c index 4ef2bd6e7..bea11ba6c 100644 --- a/drivers/gpu/drm/msm/adreno/a6xx_catalog.c +++ b/drivers/gpu/drm/msm/adreno/a6xx_catalog.c @@ -943,6 +943,41 @@ static const struct adreno_info a6xx_gpus[] = { { 169, 2 }, { 180, 1 }, ), + }, { + .chip_ids = ADRENO_CHIP_IDS(0x06020000), + .family = ADRENO_6XX_GEN3, + .fw = { + [ADRENO_FW_SQE] = "a650_sqe.fw", + [ADRENO_FW_GMU] = "a650_gmu.bin", + }, + .gmem = SZ_512K, + .inactive_period = DRM_MSM_INACTIVE_PERIOD, + .quirks = ADRENO_QUIRK_HAS_CACHED_COHERENT | + ADRENO_QUIRK_HAS_HW_APRIV, + .funcs = &a6xx_gpu_funcs, + .zapfw = "a620_zap.mbn", + .a6xx = &(const struct a6xx_info) { + .hwcg = a620_hwcg, + .protect = &a650_protect, + .gbif_cx = a640_gbif, + .gmu_cgc_mode = 0x00020202, + .prim_fifo_threshold = 0x00010000, + .bcms = (const struct a6xx_bcm[]) { + { .name = "SH0", .buswidth = 16 }, + { .name = "MC0", .buswidth = 4 }, + { + .name = "ACV", + .fixed = true, + .perfmode = BIT(3), + }, + { /* sentinel */ }, + }, + }, + .speedbins = ADRENO_SPEEDBINS( + { 0, 0 }, + { 132, 1 }, + { 115, 3 }, + ), }, { .chip_ids = ADRENO_CHIP_IDS(0x06020100), .family = ADRENO_6XX_GEN3, -- 2.56.0
