mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-07 01:45:18 +02:00
net: stmmac: dwmac-loongson: Init ref and PTP clocks rate
[ Upstream commitc70f316368
] Reference and PTP clocks rate of the Loongson GMAC devices is 125MHz. (So is in the GNET devices which support is about to be added.) Set the respective plat_stmmacenet_data field up in accordance with that so to have the coalesce command and timestamping work correctly. Fixes:30bba69d7d
("stmmac: pci: Add dwmac support for Loongson") Signed-off-by: Feiyang Chen <chenfeiyang@loongson.cn> Signed-off-by: Yinggang Gu <guyinggang@loongson.cn> Reviewed-by: Serge Semin <fancer.lancer@gmail.com> Acked-by: Huacai Chen <chenhuacai@loongson.cn> Signed-off-by: Yanteng Si <siyanteng@loongson.cn> Tested-by: Serge Semin <fancer.lancer@gmail.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
0a9445aa8e
commit
f0525a641a
|
@ -35,6 +35,9 @@ static int loongson_default_data(struct plat_stmmacenet_data *plat)
|
||||||
/* Disable RX queues routing by default */
|
/* Disable RX queues routing by default */
|
||||||
plat->rx_queues_cfg[0].pkt_route = 0x0;
|
plat->rx_queues_cfg[0].pkt_route = 0x0;
|
||||||
|
|
||||||
|
plat->clk_ref_rate = 125000000;
|
||||||
|
plat->clk_ptp_rate = 125000000;
|
||||||
|
|
||||||
/* Default to phy auto-detection */
|
/* Default to phy auto-detection */
|
||||||
plat->phy_addr = -1;
|
plat->phy_addr = -1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user