Changeset 29014


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

ar71xx: ag71xx: remove unused mii_cfg related functions and defines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h

    r29011 r29014  
    344344#define RX_STATUS_BE            BIT(3)  /* Bus Error */ 
    345345 
    346 #define MII_CTRL_SPEED_SHIFT    4 
    347 #define MII_CTRL_SPEED_MASK     3 
    348 #define MII_CTRL_SPEED_10       0 
    349 #define MII_CTRL_SPEED_100      1 
    350 #define MII_CTRL_SPEED_1000     2 
    351  
    352346static inline void ag71xx_check_reg_offset(struct ag71xx *ag, unsigned reg) 
    353347{ 
     
    411405{ 
    412406        ag71xx_cb(ag, AG71XX_REG_INT_ENABLE, ints); 
    413 } 
    414  
    415 static inline void ag71xx_mii_ctrl_wr(struct ag71xx *ag, u32 value) 
    416 { 
    417         struct ag71xx_platform_data *pdata = ag71xx_get_pdata(ag); 
    418  
    419         if (pdata->is_ar724x) 
    420                 return; 
    421  
    422         __raw_writel(value, ag->mii_ctrl); 
    423  
    424         /* flush write */ 
    425         __raw_readl(ag->mii_ctrl); 
    426 } 
    427  
    428 static inline u32 ag71xx_mii_ctrl_rr(struct ag71xx *ag) 
    429 { 
    430         struct ag71xx_platform_data *pdata = ag71xx_get_pdata(ag); 
    431  
    432         if (pdata->is_ar724x) 
    433                 return 0xffffffff; 
    434  
    435         return __raw_readl(ag->mii_ctrl); 
    436 } 
    437  
    438 static inline void ag71xx_mii_ctrl_set_speed(struct ag71xx *ag, 
    439                                              unsigned int speed) 
    440 { 
    441         u32 t; 
    442  
    443         t = ag71xx_mii_ctrl_rr(ag); 
    444         t &= ~(MII_CTRL_SPEED_MASK << MII_CTRL_SPEED_SHIFT); 
    445         t |= (speed & MII_CTRL_SPEED_MASK) << MII_CTRL_SPEED_SHIFT; 
    446         ag71xx_mii_ctrl_wr(ag, t); 
    447407} 
    448408 
Note: See TracChangeset for help on using the changeset viewer.