Skip to content

Commit c43de1a

Browse files
Akhil P Oommenrobclark
authored andcommitted
drm/msm/a6xx: Add support for 7c3 SKUs
Add support for 7c3 SKU detection using speedbin fuse. Signed-off-by: Akhil P Oommen <quic_akhilpo@quicinc.com> Link: https://lore.kernel.org/r/20220226005021.v2.3.I6e89c014eb17f090f716fba662bdd33073920804@changeid Signed-off-by: Rob Clark <robdclark@chromium.org>
1 parent e2f7619 commit c43de1a

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1736,13 +1736,28 @@ static u32 a618_get_speed_bin(u32 fuse)
17361736
return UINT_MAX;
17371737
}
17381738

1739+
static u32 adreno_7c3_get_speed_bin(u32 fuse)
1740+
{
1741+
if (fuse == 0)
1742+
return 0;
1743+
else if (fuse == 117)
1744+
return 0;
1745+
else if (fuse == 190)
1746+
return 1;
1747+
1748+
return UINT_MAX;
1749+
}
1750+
17391751
static u32 fuse_to_supp_hw(struct device *dev, struct adreno_rev rev, u32 fuse)
17401752
{
17411753
u32 val = UINT_MAX;
17421754

17431755
if (adreno_cmp_rev(ADRENO_REV(6, 1, 8, ANY_ID), rev))
17441756
val = a618_get_speed_bin(fuse);
17451757

1758+
if (adreno_cmp_rev(ADRENO_REV(6, 3, 5, ANY_ID), rev))
1759+
val = adreno_7c3_get_speed_bin(fuse);
1760+
17461761
if (val == UINT_MAX) {
17471762
DRM_DEV_ERROR(dev,
17481763
"missing support for speed-bin: %u. Some OPPs may not be supported by hardware",

0 commit comments

Comments
 (0)