diff options
author | Michal Simek <monstr@monstr.eu> | 2011-10-12 23:23:22 (GMT) |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-10-23 21:32:44 (GMT) |
commit | c1044a1ec182be4c9c0b64d42ac9bf8f623d3f68 (patch) | |
tree | 9ea920a92f164ca1dfb3ede5a3fa369edf9daf7f /drivers/net | |
parent | 9b94755af9552ce3cbecfdd2f9f1fa2b322d825a (diff) | |
download | u-boot-c1044a1ec182be4c9c0b64d42ac9bf8f623d3f68.tar.xz |
net: emaclite: Move RX/TX ping pong initialization to
Init RX/TX ping pong directly from board not in the driver.
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/xilinx_emaclite.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/net/xilinx_emaclite.c b/drivers/net/xilinx_emaclite.c index ac3dae1..9791b9a 100644 --- a/drivers/net/xilinx_emaclite.c +++ b/drivers/net/xilinx_emaclite.c @@ -342,7 +342,8 @@ static int emaclite_recv(struct eth_device *dev) } -int xilinx_emaclite_initialize(bd_t *bis, unsigned long base_addr) +int xilinx_emaclite_initialize(bd_t *bis, unsigned long base_addr, + int txpp, int rxpp) { struct eth_device *dev; struct xemaclite *emaclite; @@ -359,12 +360,8 @@ int xilinx_emaclite_initialize(bd_t *bis, unsigned long base_addr) dev->priv = emaclite; -#ifdef CONFIG_XILINX_EMACLITE_TX_PING_PONG - emaclite->txpp = 1; -#endif -#ifdef CONFIG_XILINX_EMACLITE_RX_PING_PONG - emaclite->rxpp = 1; -#endif + emaclite->txpp = txpp; + emaclite->rxpp = rxpp; sprintf(dev->name, "Xelite.%lx", base_addr); |