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

Commit 30064440 authored by Shefali Jain's avatar Shefali Jain
Browse files

clk: qcom: gcc: Add new frequency table for gcc_emac_ptp_clk_src



The gcc_emac_ptp_clk_src is sharing frequency table with
emac_clk_src and there is requirement to add new frequency
level for emac_clk_src, so add the new frequency table for
gcc_emac_ptp_clk_src.

Change-Id: I7bfa8255d9e325fe65f0d164d01dfd08f2acab8d
Signed-off-by: default avatarShefali Jain <shefjain@codeaurora.org>
parent 03db21d0
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -873,12 +873,19 @@ static struct clk_rcg2 emac_clk_src = {
	},
};

static const struct freq_tbl ftbl_emac_ptp_clk_src[] = {
	F(50000000,  P_GPLL1_OUT_MAIN, 10, 0, 0),
	F(125000000, P_GPLL1_OUT_MAIN, 4, 0, 0),
	F(250000000, P_GPLL1_OUT_MAIN, 2, 0, 0),
	{ }
};

static struct clk_rcg2 emac_ptp_clk_src = {
	.cmd_rcgr = 0x4e014,
	.mnd_width = 0,
	.hid_width = 5,
	.parent_map = gcc_parent_map_4,
	.freq_tbl = ftbl_emac_clk_src,
	.freq_tbl = ftbl_emac_ptp_clk_src,
	.clkr.hw.init = &(struct clk_init_data){
		.name = "emac_ptp_clk_src",
		.parent_names = gcc_parent_names_4,