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

Commit 84e31c44 authored by Tianyi Gou's avatar Tianyi Gou
Browse files

msm: clock-8084: Correct CE3 as local vote clock



CE3 clocks should be local vote clocks instead of apps controlled clocks.
Correct this by making them as local vote clocks. When we at here,
also delete the not used CE clocks rcg codes.

Change-Id: I0fa80b371e13cdbe9172066d8837f1c411a7d6ab
Signed-off-by: default avatarTianyi Gou <tgou@codeaurora.org>
parent 8c2fe1c1
Loading
Loading
Loading
Loading
+12 −10
Original line number Diff line number Diff line
@@ -2506,36 +2506,38 @@ static struct local_vote_clk gcc_ce2_clk = {
	},
};

static struct branch_clk gcc_ce3_ahb_clk = {
static struct local_vote_clk gcc_ce3_ahb_clk = {
	.cbcr_reg = CE3_AHB_CBCR,
	.has_sibling = 1,
	.vote_reg = APCS_CLOCK_BRANCH_ENA_VOTE,
	.en_mask = BIT(28),
	.base = &virt_bases[GCC_BASE],
	.c = {
		.dbg_name = "gcc_ce3_ahb_clk",
		.ops = &clk_ops_branch,
		.ops = &clk_ops_vote,
		CLK_INIT(gcc_ce3_ahb_clk.c),
	},
};

static struct branch_clk gcc_ce3_axi_clk = {
static struct local_vote_clk gcc_ce3_axi_clk = {
	.cbcr_reg = CE3_AXI_CBCR,
	.has_sibling = 1,
	.vote_reg = APCS_CLOCK_BRANCH_ENA_VOTE,
	.en_mask = BIT(29),
	.base = &virt_bases[GCC_BASE],
	.c = {
		.dbg_name = "gcc_ce3_axi_clk",
		.ops = &clk_ops_branch,
		.ops = &clk_ops_vote,
		CLK_INIT(gcc_ce3_axi_clk.c),
	},
};

static struct branch_clk gcc_ce3_clk = {
static struct local_vote_clk gcc_ce3_clk = {
	.cbcr_reg = CE3_CBCR,
	.has_sibling = 0,
	.vote_reg = APCS_CLOCK_BRANCH_ENA_VOTE,
	.en_mask = BIT(30),
	.base = &virt_bases[GCC_BASE],
	.c = {
		.parent = &ce3_clk_src.c,
		.dbg_name = "gcc_ce3_clk",
		.ops = &clk_ops_branch,
		.ops = &clk_ops_vote,
		CLK_INIT(gcc_ce3_clk.c),
	},
};