aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-11-13 11:26:56 +0000
committerGabor Juhos <juhosg@openwrt.org>2011-11-13 11:26:56 +0000
commit9579bb426798fca0442bd5a3f03dfb89c928ee27 (patch)
tree1fee6ea8206b5c155ee472da4c1fb702fa0d70fa /target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
parentda64ce860342dd0c920cbf5a91bb4ecc7f70c236 (diff)
downloadupstream-9579bb426798fca0442bd5a3f03dfb89c928ee27.tar.gz
upstream-9579bb426798fca0442bd5a3f03dfb89c928ee27.tar.bz2
upstream-9579bb426798fca0442bd5a3f03dfb89c928ee27.zip
ar71xx: ag71xx: remove MII interface setup code
SVN-Revision: 29011
Diffstat (limited to 'target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h')
-rw-r--r--target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
index 1076d3c04e..5757e60ac1 100644
--- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
+++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
@@ -343,7 +343,6 @@ static inline int ag71xx_desc_pktlen(struct ag71xx_desc *desc)
#define RX_STATUS_OF BIT(2) /* Rx Overflow */
#define RX_STATUS_BE BIT(3) /* Bus Error */
-#define MII_CTRL_IF_MASK 3
#define MII_CTRL_SPEED_SHIFT 4
#define MII_CTRL_SPEED_MASK 3
#define MII_CTRL_SPEED_10 0
@@ -436,17 +435,6 @@ static inline u32 ag71xx_mii_ctrl_rr(struct ag71xx *ag)
return __raw_readl(ag->mii_ctrl);
}
-static inline void ag71xx_mii_ctrl_set_if(struct ag71xx *ag,
- unsigned int mii_if)
-{
- u32 t;
-
- t = ag71xx_mii_ctrl_rr(ag);
- t &= ~(MII_CTRL_IF_MASK);
- t |= (mii_if & MII_CTRL_IF_MASK);
- ag71xx_mii_ctrl_wr(ag, t);
-}
-
static inline void ag71xx_mii_ctrl_set_speed(struct ag71xx *ag,
unsigned int speed)
{