diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2010-09-20 09:30:18 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-09-20 09:30:18 +0200 |
commit | a645fe3a4fdc771a219f2fcde89d4e28c3bcad01 (patch) | |
tree | 7597dd95503192664721ceb68839c59f93f79904 /drivers | |
parent | 2db4aa5c32831454afcc807b9505bd196f688293 (diff) | |
download | barebox-a645fe3a4fdc771a219f2fcde89d4e28c3bcad01.tar.gz barebox-a645fe3a4fdc771a219f2fcde89d4e28c3bcad01.tar.xz |
ep93xx net driver: Fix compilation
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ep93xx.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/net/ep93xx.c b/drivers/net/ep93xx.c index 851f6af552..7821cd24c9 100644 --- a/drivers/net/ep93xx.c +++ b/drivers/net/ep93xx.c @@ -40,6 +40,8 @@ #include <mach/ep93xx-regs.h> #include "ep93xx.h" +#define EP93XX_MAX_PKT_SIZE 1536 + static int ep93xx_phy_read(struct mii_device *mdev, int phy_addr, int phy_reg); static int ep93xx_phy_write(struct mii_device *mdev, int phy_addr, int phy_reg, int value); @@ -231,7 +233,7 @@ static int ep93xx_eth_open(struct eth_device *edev) writel(0x00040000, ®s->txdthrshld); writel(0x00040000, ®s->txststhrshld); - writel((TXSTARTMAX << 0) | (PKTSIZE_ALIGN << 16), ®s->maxfrmlen); + writel((TXSTARTMAX << 0) | (EP93XX_MAX_PKT_SIZE << 16), ®s->maxfrmlen); writel(BMCTL_TXEN, ®s->bmctl); /* @@ -267,7 +269,7 @@ static int ep93xx_eth_open(struct eth_device *edev) (priv->rx_dq.base + i)->word1 = (uint32_t)NetRxPackets[i]; /* set buffer length, clear buffer index and NSOF */ - (priv->rx_dq.base + i)->word2 = PKTSIZE_ALIGN; + (priv->rx_dq.base + i)->word2 = EP93XX_MAX_PKT_SIZE; } memset(priv->tx_dq.base, 0, @@ -615,8 +617,8 @@ static int ep93xx_phy_read(struct mii_device *mdev, int phy_addr, int phy_reg) /** * Write a 16-bit value to an MII register. */ -static int ep93xx_phy_write(struct mii_device *mdev, uint8_t phy_addr, - uint8_t phy_reg, uint16_t value) +static int ep93xx_phy_write(struct mii_device *mdev, int phy_addr, + int phy_reg, int value) { struct mac_regs *regs = ep93xx_get_regs(mdev->edev); uint32_t self_ctl; |