Skip to contentSkip to conversation

clk: qcom: gcc-sdm845: Define parent of PCIe PIPE clocks

PATCH Applied Bjorn Andersson 2 participants 2 messages Feb 26, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/clk/qcom/gcc-sdm845.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/clk/qcom/gcc-sdm845.c +5 -0
index 58fa5c247af1..7131dcf9b060 100644
@@ -1703,6 +1703,9 @@ static struct clk_branch gcc_pcie_0_pipe_clk = {
 		.enable_mask = BIT(4),
 		.hw.init = &(struct clk_init_data){
 			.name = "gcc_pcie_0_pipe_clk",
+			.parent_names = (const char *[]){ "pcie_0_pipe_clk" },
+			.num_parents = 1,
+			.flags = CLK_SET_RATE_PARENT,
 			.ops = &clk_branch2_ops,
 		},
 	},
@@ -1802,6 +1805,8 @@ static struct clk_branch gcc_pcie_1_pipe_clk = {
 		.enable_mask = BIT(30),
 		.hw.init = &(struct clk_init_data){
 			.name = "gcc_pcie_1_pipe_clk",
+			.parent_names = (const char *[]){ "pcie_1_pipe_clk" },
+			.num_parents = 1,
 			.ops = &clk_branch2_ops,
 		},
 	},
Signature · 1 line
2.18.0
maintainer Applied
#1 lore raw

Quoting Bjorn Andersson (2019-02-25 23:02:21)

Quoted 5 lines

The PCIe PIPE clock in the GCC is fed by the PIPE clock coming from the PHY, describe this relationship.

---

Applied to clk-next