diff options
author | Vince Bridgers <vbridger@opensource.altera.com> | 2015-04-15 12:17:40 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-04-16 13:58:42 -0400 |
commit | e7877f52fd4a8d7012f9b0faecc047a50c132a79 (patch) | |
tree | d6d8539ea9959708782e568ad89429258f71656e /drivers/net/ethernet/stmicro | |
parent | 2453beb632e3e8c194c87953a536a4c58b149867 (diff) |
stmmac: Read tx-fifo-depth and rx-fifo-depth from the devicetree
Read the tx-fifo-depth and rx-fifo-depth from the devicetree. The Synopsys
stmmac controller fifos are configurable per product instance, and the fifo
sizes are needed to configure certain features correctly such as flow control.
Signed-off-by: Vince Bridgers <vbridger@opensource.altera.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro')
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c index f9b42f11950f..705bbdf93940 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c | |||
@@ -181,6 +181,10 @@ static int stmmac_probe_config_dt(struct platform_device *pdev, | |||
181 | sizeof(struct stmmac_mdio_bus_data), | 181 | sizeof(struct stmmac_mdio_bus_data), |
182 | GFP_KERNEL); | 182 | GFP_KERNEL); |
183 | 183 | ||
184 | of_property_read_u32(np, "tx-fifo-depth", &plat->tx_fifo_size); | ||
185 | |||
186 | of_property_read_u32(np, "rx-fifo-depth", &plat->rx_fifo_size); | ||
187 | |||
184 | plat->force_sf_dma_mode = | 188 | plat->force_sf_dma_mode = |
185 | of_property_read_bool(np, "snps,force_sf_dma_mode"); | 189 | of_property_read_bool(np, "snps,force_sf_dma_mode"); |
186 | 190 | ||