summaryrefslogtreecommitdiff
path: root/include/linux/soc
diff options
context:
space:
mode:
authorRobert Marko <robimarko@gmail.com>2023-05-26 23:48:00 +0300
committerBjorn Andersson <andersson@kernel.org>2023-05-27 04:18:57 +0300
commit17051d2c3cd696439adb900e9af547ba162fb982 (patch)
tree66bfd6f37164016278cb05255b4c0bf6448e18d1 /include/linux/soc
parent10615007483b6938da9df290fe5bf460f6a07c60 (diff)
downloadlinux-17051d2c3cd696439adb900e9af547ba162fb982.tar.xz
soc: qcom: smem: introduce qcom_smem_get_soc_id()
Introduce a helper to return the SoC SMEM ID, which is used to identify the exact SoC model as there may be differences in the same SoC family. Currently, cpufreq-nvmem does this completely in the driver and there has been more interest expresed for other drivers to use this information so lets expose a common helper to prevent redoing it in individual drivers since this field is present on every SMEM table version. Signed-off-by: Robert Marko <robimarko@gmail.com> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20230526204802.3081168-3-robimarko@gmail.com
Diffstat (limited to 'include/linux/soc')
-rw-r--r--include/linux/soc/qcom/smem.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/soc/qcom/smem.h b/include/linux/soc/qcom/smem.h
index 86e1b358688a..223db6a9c733 100644
--- a/include/linux/soc/qcom/smem.h
+++ b/include/linux/soc/qcom/smem.h
@@ -11,4 +11,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);
+
#endif