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

Commit 0c939233 authored by Odelu Kukatla's avatar Odelu Kukatla
Browse files

clk: qcom: Mark gpu_cc_ahb_clk as critical for SM6150



Add the CLK_IS_CRITICAL flag for gpu_cc_ahb_clk to keep it
enabled at all times.  This is needed to avoid unclocked
register accesses by SMMU since SMMU vote registers do not
enable gpu_cc_ahb_clk.

Also skip an enable check for this clock since it will not
be physically enabled until gpu_cx_gdsc is enabled.

Change-Id: I83c81a20f306752a87ee0bb70ee7b1efbce5e001
Signed-off-by: default avatarOdelu Kukatla <okukatla@codeaurora.org>
parent 315ed7f6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -396,12 +396,13 @@ static struct clk_branch gpu_cc_sleep_clk = {

static struct clk_branch gpu_cc_ahb_clk = {
	.halt_reg = 0x1078,
	.halt_check = BRANCH_HALT,
	.halt_check = BRANCH_HALT_DELAY,
	.clkr = {
		.enable_reg = 0x1078,
		.enable_mask = BIT(0),
		.hw.init = &(struct clk_init_data){
			.name = "gpu_cc_ahb_clk",
			.flags = CLK_IS_CRITICAL,
			.ops = &clk_branch2_ops,
		},
	},