diff options
author | Jose Abreu <jose.abreu@synopsys.com> | 2019-01-30 15:54:19 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-03-13 14:02:35 -0700 |
commit | 46ba03c591d985e80d547dc3ccba1e1b0e482d55 (patch) | |
tree | ffebb27d06c221c70709ab8bcc1dda7dc9fb5150 /include | |
parent | 8096bc39c63e3d2e374a9ee9fcc0e1a9d4e5de47 (diff) | |
download | linux-stable-46ba03c591d985e80d547dc3ccba1e1b0e482d55.tar.gz linux-stable-46ba03c591d985e80d547dc3ccba1e1b0e482d55.tar.bz2 linux-stable-46ba03c591d985e80d547dc3ccba1e1b0e482d55.zip |
net: stmmac: Fallback to Platform Data clock in Watchdog conversion
[ Upstream commit 4ec5302fa906ec9d86597b236f62315bacdb9622 ]
If we don't have DT then stmmac_clk will not be available. Let's add a
new Platform Data field so that we can specify the refclk by this mean.
This way we can still use the coalesce command in PCI based setups.
Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Cc: Joao Pinto <jpinto@synopsys.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/stmmac.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h index 7ddfc65586b0..4335bd771ce5 100644 --- a/include/linux/stmmac.h +++ b/include/linux/stmmac.h @@ -184,6 +184,7 @@ struct plat_stmmacenet_data { struct clk *pclk; struct clk *clk_ptp_ref; unsigned int clk_ptp_rate; + unsigned int clk_ref_rate; struct reset_control *stmmac_rst; struct stmmac_axi *axi; int has_gmac4; |