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

Commit c3ec29a2 authored by Jayant Shekhar's avatar Jayant Shekhar
Browse files

clk: qcom: gcc: Add voter clocks for MDSS rotator



MDSS rotator requires separate resource initialization,
add the voter clocks to support the same for MSM8937.

Change-Id: I7f89cdfbe1d3f24ee38410ee477329458d25c3f7
Signed-off-by: default avatarJayant Shekhar <jshekhar@codeaurora.org>
parent bfbfa771
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2673,6 +2673,9 @@ static struct branch_clk gcc_mdss_mdp_clk = {
	},
};

static DEFINE_CLK_VOTER(mdss_mdp_vote_clk, &gcc_mdss_mdp_clk.c, 0);
static DEFINE_CLK_VOTER(mdss_rotator_vote_clk, &gcc_mdss_mdp_clk.c, 0);

static struct branch_clk gcc_mdss_pclk0_clk = {
	.cbcr_reg = MDSS_PCLK0_CBCR,
	.has_sibling = 0,
@@ -4257,6 +4260,8 @@ static struct clk_lookup msm_clocks_gcc_mdss_8937[] = {
	CLK_LIST(ext_byte1_clk_src),
	CLK_LIST(gcc_mdss_pclk1_clk),
	CLK_LIST(gcc_mdss_byte1_clk),
	CLK_LIST(mdss_mdp_vote_clk),
	CLK_LIST(mdss_rotator_vote_clk),
};

static int msm_gcc_mdss_probe(struct platform_device *pdev)
+2 −0
Original line number Diff line number Diff line
@@ -225,6 +225,8 @@
#define clk_gcc_bimc_gfx_clk			0x3edd69ad
#define clk_ipa_clk				0xfa685cda
#define clk_ipa_a_clk				0xeeec2919
#define clk_mdss_mdp_vote_clk			0x588460a4
#define clk_mdss_rotator_vote_clk		0x5b1f675e

#define clk_pixel_clk_src                       0x8b6f83d8
#define clk_byte_clk_src                        0x3a911c53