summaryrefslogtreecommitdiff
path: root/drivers/clk/qcom/hfpll.c
diff options
context:
space:
mode:
authorLuca Weiss <luca@z3ntu.xyz>2024-02-18 23:57:26 +0300
committerBjorn Andersson <andersson@kernel.org>2024-04-23 22:14:47 +0300
commit3db0f3b9ff5adb6a5e8564a32fadb2af1216810d (patch)
tree2d4fa51128a9865d60c5e2a09a6a7c214d02afda /drivers/clk/qcom/hfpll.c
parent849ed9d414d04e369bccc2278d75becde9e40e0f (diff)
downloadlinux-3db0f3b9ff5adb6a5e8564a32fadb2af1216810d.tar.xz
clk: qcom: hfpll: Add QCS404-specific compatible
It doesn't appear that the configuration is for the HFPLL is generic, so add a qcs404-specific compatible and rename the existing struct to qcs404. Keep qcom,hfpll in the driver for compatibility with old dtbs. Signed-off-by: Luca Weiss <luca@z3ntu.xyz> Link: https://lore.kernel.org/r/20240218-hfpll-yaml-v2-2-31543e0d6261@z3ntu.xyz Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Diffstat (limited to 'drivers/clk/qcom/hfpll.c')
-rw-r--r--drivers/clk/qcom/hfpll.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/clk/qcom/hfpll.c b/drivers/clk/qcom/hfpll.c
index dac27e31ef60..b0b0cb074b4a 100644
--- a/drivers/clk/qcom/hfpll.c
+++ b/drivers/clk/qcom/hfpll.c
@@ -14,7 +14,7 @@
#include "clk-regmap.h"
#include "clk-hfpll.h"
-static const struct hfpll_data hdata = {
+static const struct hfpll_data qcs404 = {
.mode_reg = 0x00,
.l_reg = 0x04,
.m_reg = 0x08,
@@ -84,10 +84,12 @@ static const struct hfpll_data msm8976_cci = {
};
static const struct of_device_id qcom_hfpll_match_table[] = {
- { .compatible = "qcom,hfpll", .data = &hdata },
{ .compatible = "qcom,msm8976-hfpll-a53", .data = &msm8976_a53 },
{ .compatible = "qcom,msm8976-hfpll-a72", .data = &msm8976_a72 },
{ .compatible = "qcom,msm8976-hfpll-cci", .data = &msm8976_cci },
+ { .compatible = "qcom,qcs404-hfpll", .data = &qcs404 },
+ /* Deprecated in bindings */
+ { .compatible = "qcom,hfpll", .data = &qcs404 },
{ }
};
MODULE_DEVICE_TABLE(of, qcom_hfpll_match_table);