Skip to content

Commit 4b5a59a

Browse files
anderssonbebarino
authored andcommitted
clk: qcom: gcc-sdm845: Define parent of PCIe PIPE clocks
The PCIe PIPE clock in the GCC is fed by the PIPE clock coming from the PHY, describe this relationship. Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent bfeffd1 commit 4b5a59a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/clk/qcom/gcc-sdm845.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1697,6 +1697,9 @@ static struct clk_branch gcc_pcie_0_pipe_clk = {
16971697
.enable_mask = BIT(4),
16981698
.hw.init = &(struct clk_init_data){
16991699
.name = "gcc_pcie_0_pipe_clk",
1700+
.parent_names = (const char *[]){ "pcie_0_pipe_clk" },
1701+
.num_parents = 1,
1702+
.flags = CLK_SET_RATE_PARENT,
17001703
.ops = &clk_branch2_ops,
17011704
},
17021705
},
@@ -1796,6 +1799,8 @@ static struct clk_branch gcc_pcie_1_pipe_clk = {
17961799
.enable_mask = BIT(30),
17971800
.hw.init = &(struct clk_init_data){
17981801
.name = "gcc_pcie_1_pipe_clk",
1802+
.parent_names = (const char *[]){ "pcie_1_pipe_clk" },
1803+
.num_parents = 1,
17991804
.ops = &clk_branch2_ops,
18001805
},
18011806
},

0 commit comments

Comments
 (0)