Skip to content

Commit 3db0f3b

Browse files
z3ntuandersson
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 849ed9d commit 3db0f3b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/clk/qcom/hfpll.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include "clk-regmap.h"
1515
#include "clk-hfpll.h"
1616

17-
static const struct hfpll_data hdata = {
17+
static const struct hfpll_data qcs404 = {
1818
.mode_reg = 0x00,
1919
.l_reg = 0x04,
2020
.m_reg = 0x08,
@@ -84,10 +84,12 @@ static const struct hfpll_data msm8976_cci = {
8484
};
8585

8686
static const struct of_device_id qcom_hfpll_match_table[] = {
87-
{ .compatible = "qcom,hfpll", .data = &hdata },
8887
{ .compatible = "qcom,msm8976-hfpll-a53", .data = &msm8976_a53 },
8988
{ .compatible = "qcom,msm8976-hfpll-a72", .data = &msm8976_a72 },
9089
{ .compatible = "qcom,msm8976-hfpll-cci", .data = &msm8976_cci },
90+
{ .compatible = "qcom,qcs404-hfpll", .data = &qcs404 },
91+
/* Deprecated in bindings */
92+
{ .compatible = "qcom,hfpll", .data = &qcs404 },
9193
{ }
9294
};
9395
MODULE_DEVICE_TABLE(of, qcom_hfpll_match_table);

0 commit comments

Comments
 (0)