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

Commit 983aa8ae authored by Veera Vegivada's avatar Veera Vegivada
Browse files

clk: qcom: camcc: Update post_div table according to freq plan



Update the post_div table for pll outputs even, odd and out_main
as per the freq plan.

Change-Id: I443746eed328752e3a9ee22d8b8b7fbfc2e1fc80
Signed-off-by: default avatarVeera Vegivada <vvegivad@codeaurora.org>
parent c419b20c
Loading
Loading
Loading
Loading
+6 −10
Original line number Diff line number Diff line
@@ -203,17 +203,19 @@ static struct clk_alpha_pll cam_cc_pll0 = {

static const struct clk_div_table post_div_table_trion_even[] = {
	{ 0x0, 1 },
	{ }
};

static const struct clk_div_table post_div_table_cam_cc_pll0_out_even[] = {
	{ 0x1, 2 },
	{ 0x3, 4 },
	{ 0x7, 8 },
	{ }
};

static struct clk_alpha_pll_postdiv cam_cc_pll0_out_even = {
	.offset = 0x0,
	.post_div_shift = 8,
	.post_div_table = post_div_table_trion_even,
	.num_post_div = ARRAY_SIZE(post_div_table_trion_even),
	.post_div_table = post_div_table_cam_cc_pll0_out_even,
	.num_post_div = ARRAY_SIZE(post_div_table_cam_cc_pll0_out_even),
	.width = 4,
	.clkr.hw.init = &(struct clk_init_data){
		.name = "cam_cc_pll0_out_even",
@@ -225,10 +227,7 @@ static struct clk_alpha_pll_postdiv cam_cc_pll0_out_even = {
};

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

@@ -333,10 +332,7 @@ static struct clk_alpha_pll cam_cc_pll2 = {
};

static const struct clk_div_table post_div_table_regera_main[] = {
	{ 0x0, 1 },
	{ 0x1, 2 },
	{ 0x3, 4 },
	{ 0x2, 8 },
	{ }
};