diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2010-09-20 09:30:18 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-10-02 12:48:35 +0200 |
commit | ac4c5e36bd9cc8af748becbef994c182a2c5d95a (patch) | |
tree | d9c890632db6c38f86c18d2ea6a554b485340eb3 | |
parent | e21ff5c39472ae339057dc5c87cb184c64540b68 (diff) | |
download | barebox-ac4c5e36bd9cc8af748becbef994c182a2c5d95a.tar.gz barebox-ac4c5e36bd9cc8af748becbef994c182a2c5d95a.tar.xz |
ep93xx net driver: Fix compilation
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-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; |