Commit c43de1aa authored by Akhil P Oommen's avatar Akhil P Oommen Committed by Rob Clark

drm/msm/a6xx: Add support for 7c3 SKUs

Add support for 7c3 SKU detection using speedbin fuse.
Signed-off-by: default avatarAkhil P Oommen <quic_akhilpo@quicinc.com>
Link: https://lore.kernel.org/r/20220226005021.v2.3.I6e89c014eb17f090f716fba662bdd33073920804@changeidSigned-off-by: default avatarRob Clark <robdclark@chromium.org>
parent e2f76193
...@@ -1736,6 +1736,18 @@ static u32 a618_get_speed_bin(u32 fuse) ...@@ -1736,6 +1736,18 @@ static u32 a618_get_speed_bin(u32 fuse)
return UINT_MAX; return UINT_MAX;
} }
static u32 adreno_7c3_get_speed_bin(u32 fuse)
{
if (fuse == 0)
return 0;
else if (fuse == 117)
return 0;
else if (fuse == 190)
return 1;
return UINT_MAX;
}
static u32 fuse_to_supp_hw(struct device *dev, struct adreno_rev rev, u32 fuse) static u32 fuse_to_supp_hw(struct device *dev, struct adreno_rev rev, u32 fuse)
{ {
u32 val = UINT_MAX; u32 val = UINT_MAX;
...@@ -1743,6 +1755,9 @@ static u32 fuse_to_supp_hw(struct device *dev, struct adreno_rev rev, u32 fuse) ...@@ -1743,6 +1755,9 @@ static u32 fuse_to_supp_hw(struct device *dev, struct adreno_rev rev, u32 fuse)
if (adreno_cmp_rev(ADRENO_REV(6, 1, 8, ANY_ID), rev)) if (adreno_cmp_rev(ADRENO_REV(6, 1, 8, ANY_ID), rev))
val = a618_get_speed_bin(fuse); val = a618_get_speed_bin(fuse);
if (adreno_cmp_rev(ADRENO_REV(6, 3, 5, ANY_ID), rev))
val = adreno_7c3_get_speed_bin(fuse);
if (val == UINT_MAX) { if (val == UINT_MAX) {
DRM_DEV_ERROR(dev, DRM_DEV_ERROR(dev,
"missing support for speed-bin: %u. Some OPPs may not be supported by hardware", "missing support for speed-bin: %u. Some OPPs may not be supported by hardware",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment