Changeset 29011


Ignore:
Timestamp:
2011-11-13T12:26:56+01:00 (6 years ago)
Author:
juhosg
Message:

ar71xx: ag71xx: remove MII interface setup code

Location:
trunk/target/linux/ar71xx/files
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/platform.h

    r27975 r29011  
    2424        int             duplex; 
    2525        u32             reset_bit; 
    26         u32             mii_if; 
    2726        u8              mac_addr[ETH_ALEN]; 
    2827        struct device   *mii_bus_dev; 
  • trunk/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h

    r28213 r29011  
    344344#define RX_STATUS_BE            BIT(3)  /* Bus Error */ 
    345345 
    346 #define MII_CTRL_IF_MASK        3 
    347346#define MII_CTRL_SPEED_SHIFT    4 
    348347#define MII_CTRL_SPEED_MASK     3 
     
    435434 
    436435        return __raw_readl(ag->mii_ctrl); 
    437 } 
    438  
    439 static inline void ag71xx_mii_ctrl_set_if(struct ag71xx *ag, 
    440                                           unsigned int mii_if) 
    441 { 
    442         u32 t; 
    443  
    444         t = ag71xx_mii_ctrl_rr(ag); 
    445         t &= ~(MII_CTRL_IF_MASK); 
    446         t |= (mii_if & MII_CTRL_IF_MASK); 
    447         ag71xx_mii_ctrl_wr(ag, t); 
    448436} 
    449437 
  • trunk/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c

    r27975 r29011  
    445445        ag71xx_wr(ag, AG71XX_REG_MAC_MFL, AG71XX_TX_MTU_LEN); 
    446446 
    447         /* setup MII interface type */ 
    448         ag71xx_mii_ctrl_set_if(ag, pdata->mii_if); 
    449  
    450447        /* setup FIFO configuration registers */ 
    451448        ag71xx_wr(ag, AG71XX_REG_FIFO_CFG0, FIFO_CFG0_INIT); 
Note: See TracChangeset for help on using the changeset viewer.