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

Commit ee9687db authored by Rohit Vaswani's avatar Rohit Vaswani
Browse files

msm: clock-fsm9900: Set PLL4 rate



Set PLL4 early at 576 MHz and main at 288 MHz

Change-Id: I7c2858ae3869cea08f84bce50a85a3fb7d23ee3b
Acked-by: default avatarKaushik Sikdar <ksikdar@qti.qualcomm.com>
Signed-off-by: default avatarRohit Vaswani <rvaswani@codeaurora.org>
parent 1ff72517
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -474,7 +474,7 @@ static struct pll_vote_clk gpll4_clk_src = {
	.base = &virt_bases[GCC_BASE],
	.c = {
		.parent = &xo_clk_src.c,
		.rate = 800000000,
		.rate = 288000000,
		.dbg_name = "gpll4_clk_src",
		.ops = &clk_ops_pll_vote,
		CLK_INIT(gpll4_clk_src.c),
@@ -1183,7 +1183,6 @@ static struct clk_freq_tbl ftbl_gcc_sdcc1_4_apps_clk[] = {
	F( 50000000,      gpll0,   12, 0, 0),
	F(100000000,      gpll0,    6, 0, 0),
	F(200000000,      gpll0,    3, 0, 0),
	F(400000000,      gpll4,    2, 0, 0),
	F_END
};

@@ -2645,16 +2644,16 @@ static struct pll_config_regs gpll4_regs __initdata = {
	.base = &virt_bases[GCC_BASE],
};

/* PLL4 at 800 MHz, main output enabled. LJ mode. */
/* PLL4 at 288 MHz, main output enabled. LJ mode. */
static struct pll_config gpll4_config __initdata = {
	.l = 0x29,
	.m = 0x2,
	.n = 0x3,
	.l = 0x1e,
	.m = 0x0,
	.n = 0x1,
	.vco_val = 0x1,
	.vco_mask = BM(21, 20),
	.pre_div_val = 0x0,
	.pre_div_mask = BM(14, 12),
	.post_div_val = 0x0,
	.post_div_val = BIT(8),
	.post_div_mask = BM(9, 8),
	.mn_ena_val = BIT(24),
	.mn_ena_mask = BIT(24),