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

Commit b072273c authored by Rama Krishna Phani A's avatar Rama Krishna Phani A
Browse files

clk: qcom: ssc: Add odd postdiv table for aux pll on SA6155



Aux PLL on SA6155 requires the frequency to be 1/3rd of the main PLL,
so add the odd postdiv table to support the same.

Change-Id: I594db5e20fbecd7095489e44a7f2492852d1e4cc
Signed-off-by: default avatarDiptanshu Jamgade <djamgade@codeaurora.org>
Signed-off-by: default avatarRama Krishna Phani A <rphani@codeaurora.org>
parent afb36aec
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -105,9 +105,20 @@ static struct clk_alpha_pll scc_pll_out_aux2 = {
	},
};

static const struct clk_div_table post_div_table[] = {
	{ 0x0, 1 },
	{ 0x3, 3 },
	{ 0x5, 5 },
	{ 0x7, 7 },
	{ }
};

static struct clk_alpha_pll_postdiv scc_pll_out_aux = {
	.offset = 0x0,
	.width = 2,
	.post_div_table = post_div_table,
	.num_post_div = ARRAY_SIZE(post_div_table),
	.postdiv = POSTDIV_ODD,
	.clkr.hw.init = &(struct clk_init_data){
		.name = "scc_pll_out_aux",
		.parent_names = (const char *[]){ "scc_pll_out_aux2" },