2023-06-07 11:12:26 +00:00
|
|
|
From 2b8634d1468ff498cc91b6adf993c27ae6fa079d Mon Sep 17 00:00:00 2001
|
2023-05-22 21:13:08 +00:00
|
|
|
From: Robert Marko <robimarko@gmail.com>
|
2023-06-07 11:12:26 +00:00
|
|
|
Date: Fri, 26 May 2023 22:48:01 +0200
|
2023-05-22 21:13:08 +00:00
|
|
|
Subject: [PATCH] cpufreq: qcom-nvmem: use SoC ID-s from bindings
|
|
|
|
|
|
|
|
SMEM SoC ID-s are now stored in DT bindings so lets use those instead of
|
|
|
|
defining them in the driver again.
|
|
|
|
|
|
|
|
Signed-off-by: Robert Marko <robimarko@gmail.com>
|
2023-06-07 11:12:26 +00:00
|
|
|
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
|
|
|
|
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
|
|
|
|
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
|
|
|
|
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
|
|
|
|
Link: https://lore.kernel.org/r/20230526204802.3081168-4-robimarko@gmail.com
|
2023-05-22 21:13:08 +00:00
|
|
|
---
|
|
|
|
drivers/cpufreq/qcom-cpufreq-nvmem.c | 15 +++++----------
|
|
|
|
1 file changed, 5 insertions(+), 10 deletions(-)
|
|
|
|
|
|
|
|
--- a/drivers/cpufreq/qcom-cpufreq-nvmem.c
|
|
|
|
+++ b/drivers/cpufreq/qcom-cpufreq-nvmem.c
|
2024-03-29 22:15:26 +00:00
|
|
|
@@ -30,12 +30,7 @@
|
2023-06-07 11:12:26 +00:00
|
|
|
|
|
|
|
#define MSM_ID_SMEM 137
|
2023-05-22 21:13:08 +00:00
|
|
|
|
|
|
|
-enum _msm_id {
|
|
|
|
- MSM8996V3 = 0xF6ul,
|
|
|
|
- APQ8096V3 = 0x123ul,
|
|
|
|
- MSM8996SG = 0x131ul,
|
|
|
|
- APQ8096SG = 0x138ul,
|
|
|
|
-};
|
|
|
|
+#include <dt-bindings/arm/qcom,ids.h>
|
|
|
|
|
|
|
|
enum _msm8996_version {
|
|
|
|
MSM8996_V3,
|
2024-03-29 22:15:26 +00:00
|
|
|
@@ -153,12 +148,12 @@ static enum _msm8996_version qcom_cpufre
|
2023-06-07 11:12:26 +00:00
|
|
|
msm_id++;
|
2023-05-22 21:13:08 +00:00
|
|
|
|
2023-06-07 11:12:26 +00:00
|
|
|
switch ((enum _msm_id)*msm_id) {
|
2023-05-22 21:13:08 +00:00
|
|
|
- case MSM8996V3:
|
|
|
|
- case APQ8096V3:
|
|
|
|
+ case QCOM_ID_MSM8996:
|
|
|
|
+ case QCOM_ID_APQ8096:
|
|
|
|
version = MSM8996_V3;
|
|
|
|
break;
|
|
|
|
- case MSM8996SG:
|
|
|
|
- case APQ8096SG:
|
|
|
|
+ case QCOM_ID_MSM8996SG:
|
|
|
|
+ case QCOM_ID_APQ8096SG:
|
|
|
|
version = MSM8996_SG;
|
|
|
|
break;
|
|
|
|
default:
|