Skip to content

Commit 5b5b580

Browse files
quic-varadavireshk
authored andcommitted
cpufreq: qcom-nvmem: Introduce cpufreq for ipq95xx
IPQ95xx SoCs have different OPPs available for the CPU based on the SoC variant. This can be determined from an eFuse register present in the silicon. Added support for ipq95xx on nvmem driver which helps to determine OPPs at runtime based on the eFuse register which has the CPU frequency limits. opp-supported-hw dt binding can be used to indicate the available OPPs for each limit. Reviewed-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Praveenkumar I <[email protected]> Signed-off-by: Kathiravan T <[email protected]> Signed-off-by: Varadarajan Narayanan <[email protected]> [ Viresh: Fixed subject ] Signed-off-by: Viresh Kumar <[email protected]>
1 parent ba5a61a commit 5b5b580

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

drivers/cpufreq/cpufreq-dt-platdev.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ static const struct of_device_id blocklist[] __initconst = {
184184
{ .compatible = "qcom,ipq6018", },
185185
{ .compatible = "qcom,ipq8064", },
186186
{ .compatible = "qcom,ipq8074", },
187+
{ .compatible = "qcom,ipq9574", },
187188
{ .compatible = "qcom,apq8064", },
188189
{ .compatible = "qcom,msm8974", },
189190
{ .compatible = "qcom,msm8960", },

drivers/cpufreq/qcom-cpufreq-nvmem.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,11 @@ static int qcom_cpufreq_kryo_name_version(struct device *cpu_dev,
188188
case QCOM_ID_IPQ5312:
189189
case QCOM_ID_IPQ5302:
190190
case QCOM_ID_IPQ5300:
191+
case QCOM_ID_IPQ9514:
192+
case QCOM_ID_IPQ9550:
193+
case QCOM_ID_IPQ9554:
194+
case QCOM_ID_IPQ9570:
195+
case QCOM_ID_IPQ9574:
191196
drv->versions = 1 << (unsigned int)(*speedbin);
192197
break;
193198
case QCOM_ID_MSM8996SG:
@@ -551,6 +556,7 @@ static const struct of_device_id qcom_cpufreq_match_list[] __initconst = {
551556
{ .compatible = "qcom,ipq8064", .data = &match_data_ipq8064 },
552557
{ .compatible = "qcom,ipq8074", .data = &match_data_ipq8074 },
553558
{ .compatible = "qcom,apq8064", .data = &match_data_krait },
559+
{ .compatible = "qcom,ipq9574", .data = &match_data_kryo },
554560
{ .compatible = "qcom,msm8974", .data = &match_data_krait },
555561
{ .compatible = "qcom,msm8960", .data = &match_data_krait },
556562
{},

0 commit comments

Comments
 (0)