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

Commit a65d836f authored by Deepak Katragadda's avatar Deepak Katragadda Committed by Gerrit - the friendly Code Review server
Browse files

clk: qcom: gcc-sdm855: Update the supported frequencies for emac



The GCC clock frequency has been updated to list additional
frequencies for the gcc_emac_rgmii_clk_src RCG. Add the same
to the clock driver.

Change-Id: I79083210a0b91630220ad94220acc215c7c5aac1
Signed-off-by: default avatarDeepak Katragadda <dkatraga@codeaurora.org>
parent 6f545b76
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -448,12 +448,23 @@ static struct clk_rcg2 gcc_emac_ptp_clk_src = {
	},
};

static const struct freq_tbl ftbl_gcc_emac_rgmii_clk_src[] = {
	F(2500000, P_BI_TCXO, 1, 25, 192),
	F(5000000, P_BI_TCXO, 1, 25, 96),
	F(19200000, P_BI_TCXO, 1, 0, 0),
	F(25000000, P_GPLL0_OUT_EVEN, 12, 0, 0),
	F(50000000, P_GPLL0_OUT_EVEN, 6, 0, 0),
	F(125000000, P_GPLL7_OUT_MAIN, 4, 0, 0),
	F(250000000, P_GPLL7_OUT_MAIN, 2, 0, 0),
	{ }
};

static struct clk_rcg2 gcc_emac_rgmii_clk_src = {
	.cmd_rcgr = 0x601c,
	.mnd_width = 8,
	.hid_width = 5,
	.parent_map = gcc_parent_map_6,
	.freq_tbl = ftbl_gcc_emac_ptp_clk_src,
	.freq_tbl = ftbl_gcc_emac_rgmii_clk_src,
	.clkr.hw.init = &(struct clk_init_data){
		.name = "gcc_emac_rgmii_clk_src",
		.parent_names = gcc_parent_names_6,