Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9c47aed2 authored by David Collins's avatar David Collins
Browse files

clk: qcom: npucc-sm8150: specify external parents for NPU_CC branch clocks



Several NPU_CC branch clocks have a parent which is external to
NPU_CC.  Specify these parents in the NPU_CC driver in order to
avoid clock stuck on warnings if one of the parent clocks is
disabled before its child.

Change-Id: I96e6ae11243b895cf05fa4d12e1acaf3d6bbe873
Signed-off-by: default avatarDavid Collins <collinsd@codeaurora.org>
parent f6fbeafa
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -448,6 +448,10 @@ static struct clk_branch npu_cc_npu_core_apb_clk = {
		.enable_mask = BIT(0),
		.hw.init = &(struct clk_init_data){
			.name = "npu_cc_npu_core_apb_clk",
			.parent_names = (const char *[]){
				"qdss_qmp_clk",
			},
			.num_parents = 1,
			.ops = &clk_branch2_ops,
		},
	},
@@ -461,6 +465,10 @@ static struct clk_branch npu_cc_npu_core_atb_clk = {
		.enable_mask = BIT(0),
		.hw.init = &(struct clk_init_data){
			.name = "npu_cc_npu_core_atb_clk",
			.parent_names = (const char *[]){
				"gcc_npu_at_clk",
			},
			.num_parents = 1,
			.ops = &clk_branch2_ops,
		},
	},
@@ -492,6 +500,10 @@ static struct clk_branch npu_cc_npu_core_cti_clk = {
		.enable_mask = BIT(0),
		.hw.init = &(struct clk_init_data){
			.name = "npu_cc_npu_core_cti_clk",
			.parent_names = (const char *[]){
				"gcc_npu_trig_clk",
			},
			.num_parents = 1,
			.ops = &clk_branch2_ops,
		},
	},