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

Commit 2bdfabd7 authored by Taniya Das's avatar Taniya Das
Browse files

clk: msm: mdm9607: Add support for 125MHz emac clock



The clock frequency of 125MHz for emac_0_tx_clk_src is required to be
sourced from emac_0_tx_clk. Also support 25MHz clock frequency for
emac_0_125m_clk_src.

CRs-Fixed: 965832
Change-Id: I80e49f9152b585b1b02f4d29c7aa248090bfbb0c
Signed-off-by: default avatarTaniya Das <tdas@codeaurora.org>
parent 82fbed04
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
/*
 * Copyright (c) 2015, The Linux Foundation. All rights reserved.
 * Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * only version 2 as published by the Free Software Foundation.
@@ -206,6 +206,7 @@ static struct rcg_clk apss_ahb_clk_src = {

static struct clk_freq_tbl ftbl_emac_0_125m_clk_src[] = {
	F(      19200000,                   xo,    1,    0,     0),
	F_EXT(  25000000,      emac_0_125m_clk,    5,    0,     0),
	F_EXT( 125000000,      emac_0_125m_clk,    1,    0,     0),
	F_END
};
@@ -246,7 +247,7 @@ static struct rcg_clk emac_0_sys_25m_clk_src = {

static struct clk_freq_tbl ftbl_emac_0_tx_clk_src[] = {
	F(      19200000,                   xo,    1,    0,     0),
	F_EXT( 125000000,      emac_0_125m_clk,    1,    0,     0),
	F_EXT( 125000000,        emac_0_tx_clk,    1,    0,     0),
	F_END
};
static struct rcg_clk emac_0_tx_clk_src = {
+2 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2015, The Linux Foundation. All rights reserved.
 * Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * only version 2 as published by the Free Software Foundation.
@@ -133,6 +133,7 @@
#define gpll0_source_val			1
#define gpll2_source_val			1
#define emac_0_125m_clk_source_val		1
#define emac_0_tx_clk_source_val		2

#define F(f, s, div, m, n) \
	{ \