diff options
author | Konrad Dybcio <konrad.dybcio@linaro.org> | 2024-06-05 23:10:15 +0300 |
---|---|---|
committer | Bjorn Andersson <andersson@kernel.org> | 2024-06-21 08:15:34 +0300 |
commit | 81bbb2b891174da9301fc0d4fe9622bd4cb6a995 (patch) | |
tree | 22e4bc3769c14ed6dde1fcc171a54ec683257cec /include/linux/soc/qcom/smem.h | |
parent | 9267997fa7aa0b597e8b32cb3fdfe91be1d35a83 (diff) | |
download | linux-81bbb2b891174da9301fc0d4fe9622bd4cb6a995.tar.xz |
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>
Diffstat (limited to 'include/linux/soc/qcom/smem.h')
-rw-r--r-- | include/linux/soc/qcom/smem.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/soc/qcom/smem.h b/include/linux/soc/qcom/smem.h index a36a3b9d4929..0943bf419e11 100644 --- a/include/linux/soc/qcom/smem.h +++ b/include/linux/soc/qcom/smem.h @@ -13,5 +13,6 @@ int qcom_smem_get_free_space(unsigned host); phys_addr_t qcom_smem_virt_to_phys(void *p); int qcom_smem_get_soc_id(u32 *id); +int qcom_smem_get_feature_code(u32 *code); #endif |