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

Commit 7d46078d authored by Taniya Das's avatar Taniya Das
Browse files

clk: qcom: Update the hmss_gpll0_clk_src to 300MHz



The GPLL0 source to the CPU subsystem requires 300MHz for OSM to use the
clock source. OSM internally cannot set the RCGR divider, so set the RCG to
300MHz at GCC.

Change-Id: I7a781c69656410eb4ce30126789dbaacf815e8ec
Signed-off-by: default avatarTaniya Das <tdas@codeaurora.org>
parent 7f0d77b3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -772,7 +772,7 @@ static const char * const gcc_parent_names_1[] = {
};

static struct freq_tbl ftbl_osm_clk_src[] = {
	F(200000000, LMH_LITE_CLK_SRC, 3, 0, 0),
	F(200000000, LMH_LITE_CLK_SRC, 1.5, 0, 0),
	{ }
};

+4 −0
Original line number Diff line number Diff line
@@ -732,6 +732,7 @@ static struct clk_rcg2 gp3_clk_src = {
};

static const struct freq_tbl ftbl_hmss_gpll0_clk_src[] = {
	F(300000000, P_GPLL0_OUT_MAIN, 2, 0, 0),
	F(600000000, P_GPLL0_OUT_MAIN, 1, 0, 0),
	{ }
};
@@ -2755,6 +2756,9 @@ static int gcc_660_probe(struct platform_device *pdev)
	/* Keep bimc gfx clock port on all the time */
	clk_prepare_enable(gcc_bimc_gfx_clk.clkr.hw.clk);

	/* Set the HMSS_GPLL0_SRC for 300MHz to CPU subsystem */
	clk_set_rate(hmss_gpll0_clk_src.clkr.hw.clk, 300000000);

	dev_info(&pdev->dev, "Registered GCC clocks\n");

	return ret;