aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-07-07 18:06:02 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-07-07 18:06:02 +0000
commita6e3c605bc0e7d96b28758ee642388f10df8f1f4 (patch)
tree97c3558ed1c7e3c2ee00b7f4e3bd9166de5ad547 /target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
parentf04fcfd801bfcf696629f6aaacadb9fff6a02bbf (diff)
downloadupstream-a6e3c605bc0e7d96b28758ee642388f10df8f1f4.tar.gz
upstream-a6e3c605bc0e7d96b28758ee642388f10df8f1f4.tar.bz2
upstream-a6e3c605bc0e7d96b28758ee642388f10df8f1f4.zip
add AR7240 specific fixes for the ag71xx driver
SVN-Revision: 16737
Diffstat (limited to 'target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h')
-rw-r--r--target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
index 9037b13d74..d012b73937 100644
--- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
+++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
@@ -399,12 +399,22 @@ static inline void ag71xx_int_disable(struct ag71xx *ag, u32 ints)
static inline void ag71xx_mii_ctrl_wr(struct ag71xx *ag, u32 value)
{
+ struct ag71xx_platform_data *pdata = ag71xx_get_pdata(ag);
+
+ if (pdata->is_ar724x)
+ return;
+
__raw_writel(value, ag->mii_ctrl);
__raw_readl(ag->mii_ctrl);
}
static inline u32 ag71xx_mii_ctrl_rr(struct ag71xx *ag)
{
+ struct ag71xx_platform_data *pdata = ag71xx_get_pdata(ag);
+
+ if (pdata->is_ar724x)
+ return 0xffffffff;
+
return __raw_readl(ag->mii_ctrl);
}