Skip to content

Commit 49b59f4

Browse files
Mani-Sadhasivamvireshk
authored andcommitted
cpufreq: qcom-hw: Add cpufreq support for SM8250 SoC
SM8250 SoC uses EPSS block for carrying out the cpufreq duties. Hence, add support for it in the driver with relevant dev data. Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Reviewed-by: Amit Kucheria <amitk@kernel.org> Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
1 parent dcd1fd7 commit 49b59f4

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

drivers/cpufreq/qcom-cpufreq-hw.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,17 @@ static const struct qcom_cpufreq_soc_data qcom_soc_data = {
256256
.lut_row_size = 32,
257257
};
258258

259+
static const struct qcom_cpufreq_soc_data epss_soc_data = {
260+
.reg_enable = 0x0,
261+
.reg_freq_lut = 0x100,
262+
.reg_volt_lut = 0x200,
263+
.reg_perf_state = 0x320,
264+
.lut_row_size = 4,
265+
};
266+
259267
static const struct of_device_id qcom_cpufreq_hw_match[] = {
260268
{ .compatible = "qcom,cpufreq-hw", .data = &qcom_soc_data },
269+
{ .compatible = "qcom,cpufreq-epss", .data = &epss_soc_data },
261270
{}
262271
};
263272
MODULE_DEVICE_TABLE(of, qcom_cpufreq_hw_match);

0 commit comments

Comments
 (0)