diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2009-11-30 13:53:39 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2009-11-30 13:53:39 +0000 |
commit | 35dbf66787d0b33738b475e8af504bcd8e2dea3e (patch) | |
tree | bf304f139388d014daa78a990f2d519530ca23cd /target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c | |
parent | cbae183c9e9ab18059d72fddc4331005861671fa (diff) | |
download | upstream-35dbf66787d0b33738b475e8af504bcd8e2dea3e.tar.gz upstream-35dbf66787d0b33738b475e8af504bcd8e2dea3e.tar.bz2 upstream-35dbf66787d0b33738b475e8af504bcd8e2dea3e.zip |
ar71xx: override fifo_cfg[123] values on AR7240
SVN-Revision: 18614
Diffstat (limited to 'target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c')
-rw-r--r-- | target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c index 6fe4d407e2..176eddaaff 100644 --- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c +++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c @@ -72,8 +72,12 @@ static void ag71xx_phy_link_update(struct ag71xx *ag) return; } - ag71xx_wr(ag, AG71XX_REG_FIFO_CFG3, - pdata->is_ar91xx ? 0x780fff : 0x008001ff); + if (pdata->is_ar91xx) + ag71xx_wr(ag, AG71XX_REG_FIFO_CFG3, 0x00780fff); + else if (pdata->is_ar724x) + ag71xx_wr(ag, AG71XX_REG_FIFO_CFG3, pdata->fifo_cfg3); + else + ag71xx_wr(ag, AG71XX_REG_FIFO_CFG3, 0x008001ff); if (pdata->set_pll) pdata->set_pll(ag->speed); |