mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
[ar71xx] define some bits of the ethernet controller's registers
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13201 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user