diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2008-11-14 08:57:31 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2008-11-14 08:57:31 +0000 |
commit | f0a9ec964bf35a6763bf2d7f013a529d9d1f693c (patch) | |
tree | ae6d6e87fb4ee53bd7c59ef05138c9d2eb5dffac /target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c | |
parent | bb702980e586498f41256e2ab27cb524befcb0a7 (diff) | |
download | upstream-f0a9ec964bf35a6763bf2d7f013a529d9d1f693c.tar.gz upstream-f0a9ec964bf35a6763bf2d7f013a529d9d1f693c.tar.bz2 upstream-f0a9ec964bf35a6763bf2d7f013a529d9d1f693c.zip |
define some bits of the ethernet controller's registers
SVN-Revision: 13201
Diffstat (limited to 'target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c')
-rw-r--r-- | target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c index 973946cf5d..53376fa817 100644 --- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c +++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c @@ -268,6 +268,8 @@ static void ag71xx_hw_set_macaddr(struct ag71xx *ag, unsigned char *mac) #define MAC_CFG1_INIT (MAC_CFG1_RXE | MAC_CFG1_TXE | MAC_CFG1_SRX \ | MAC_CFG1_STX) +#define FIFO_CFG0_INIT (FIFO_CFG0_ALL << FIFO_CFG0_ENABLE_SHIFT) + static void ag71xx_hw_init(struct ag71xx *ag) { struct ag71xx_platform_data *pdata = ag71xx_get_pdata(ag); @@ -287,7 +289,7 @@ static void ag71xx_hw_init(struct ag71xx *ag) ag71xx_sb(ag, AG71XX_REG_MAC_CFG2, MAC_CFG2_PAD_CRC_EN | MAC_CFG2_LEN_CHECK); - ag71xx_wr(ag, AG71XX_REG_FIFO_CFG0, 0x00001f00); + ag71xx_wr(ag, AG71XX_REG_FIFO_CFG0, FIFO_CFG0_INIT); ag71xx_mii_ctrl_set_if(ag, pdata->mii_if); |