summaryrefslogtreecommitdiff
path: root/drivers/net/xilinx_emaclite.c
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2011-10-12 23:23:22 +0000
committerWolfgang Denk <wd@denx.de>2011-10-23 23:32:44 +0200
commitc1044a1ec182be4c9c0b64d42ac9bf8f623d3f68 (patch)
tree9ea920a92f164ca1dfb3ede5a3fa369edf9daf7f /drivers/net/xilinx_emaclite.c
parent9b94755af9552ce3cbecfdd2f9f1fa2b322d825a (diff)
downloadu-boot-imx-c1044a1ec182be4c9c0b64d42ac9bf8f623d3f68.zip
u-boot-imx-c1044a1ec182be4c9c0b64d42ac9bf8f623d3f68.tar.gz
u-boot-imx-c1044a1ec182be4c9c0b64d42ac9bf8f623d3f68.tar.bz2
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/xilinx_emaclite.c')
-rw-r--r--drivers/net/xilinx_emaclite.c11
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);