Skip to content

Commit f6abcc2

Browse files
Shazad Hussainbebarino
authored andcommitted
clk: qcom: gcc-sc8280xp: add cxo as parent for three ufs ref clks
The three UFS reference clocks, gcc_ufs_ref_clkref_clk for external UFS devices, gcc_ufs_card_clkref_clk and gcc_ufs_1_card_clkref_clk for two PHYs are all sourced from CXO. Added parent_data for all three reference clocks described above to reflect that all three clocks are sourced from CXO to have valid frequency for the ref clock needed by UFS controller driver. Fixes: d65d005 ("clk: qcom: add sc8280xp GCC driver") Link: https://lore.kernel.org/lkml/Y2Tber39cHuOSR%[email protected]/ Signed-off-by: Shazad Hussain <[email protected]> Tested-by: Johan Hovold <[email protected]> Reviewed-by: Johan Hovold <[email protected]> Tested-by: Andrew Halaney <[email protected]> Reviewed-by: Andrew Halaney <[email protected]> Reviewed-by: Brian Masney <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Bjorn Andersson <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent 4e85952 commit f6abcc2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/clk/qcom/gcc-sc8280xp.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5364,6 +5364,8 @@ static struct clk_branch gcc_ufs_1_card_clkref_clk = {
53645364
.enable_mask = BIT(0),
53655365
.hw.init = &(const struct clk_init_data) {
53665366
.name = "gcc_ufs_1_card_clkref_clk",
5367+
.parent_data = &gcc_parent_data_tcxo,
5368+
.num_parents = 1,
53675369
.ops = &clk_branch2_ops,
53685370
},
53695371
},
@@ -5432,6 +5434,8 @@ static struct clk_branch gcc_ufs_card_clkref_clk = {
54325434
.enable_mask = BIT(0),
54335435
.hw.init = &(const struct clk_init_data) {
54345436
.name = "gcc_ufs_card_clkref_clk",
5437+
.parent_data = &gcc_parent_data_tcxo,
5438+
.num_parents = 1,
54355439
.ops = &clk_branch2_ops,
54365440
},
54375441
},
@@ -5848,6 +5852,8 @@ static struct clk_branch gcc_ufs_ref_clkref_clk = {
58485852
.enable_mask = BIT(0),
58495853
.hw.init = &(const struct clk_init_data) {
58505854
.name = "gcc_ufs_ref_clkref_clk",
5855+
.parent_data = &gcc_parent_data_tcxo,
5856+
.num_parents = 1,
58515857
.ops = &clk_branch2_ops,
58525858
},
58535859
},

0 commit comments

Comments
 (0)