]> www.infradead.org Git - users/jedix/linux-maple.git/commit
soc: qcom: smem: Add a feature code getter
authorKonrad Dybcio <konrad.dybcio@linaro.org>
Wed, 5 Jun 2024 20:10:15 +0000 (22:10 +0200)
committerBjorn Andersson <andersson@kernel.org>
Fri, 21 Jun 2024 05:15:34 +0000 (00:15 -0500)
commit81bbb2b891174da9301fc0d4fe9622bd4cb6a995
tree22e4bc3769c14ed6dde1fcc171a54ec683257cec
parent9267997fa7aa0b597e8b32cb3fdfe91be1d35a83
soc: qcom: smem: Add a feature code getter

Recent (SM8550+ ish) Qualcomm SoCs have a new mechanism for precisely
identifying the specific SKU and the precise speed bin (in the general
meaning of this word, anyway): a pair of values called Product Code
and Feature Code.

Based on this information, we can deduce the available frequencies for
things such as Adreno. In the case of Adreno specifically, Pcode is
useless for non-prototype SoCs.

Introduce a getter for the feature code and export it.

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20240605-topic-smem_speedbin-v2-2-8989d7e3d176@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/soc/qcom/smem.c
include/linux/soc/qcom/smem.h
include/linux/soc/qcom/socinfo.h