mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-27 01:01:06 +02:00
ar71xx: update mdio_reset code
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18224 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
8b79390edb
commit
5be08769f3
@ -104,11 +104,14 @@ static void ag71xx_mdio_mii_write(struct ag71xx_mdio *am,
|
||||
static int ag71xx_mdio_reset(struct mii_bus *bus)
|
||||
{
|
||||
struct ag71xx_mdio *am = bus->priv;
|
||||
u32 t;
|
||||
|
||||
ag71xx_mdio_wr(am, AG71XX_REG_MII_CFG, MII_CFG_RESET);
|
||||
t = MII_CFG_CLK_DIV_28;
|
||||
|
||||
ag71xx_mdio_wr(am, AG71XX_REG_MII_CFG, t | MII_CFG_RESET);
|
||||
udelay(100);
|
||||
|
||||
ag71xx_mdio_wr(am, AG71XX_REG_MII_CFG, MII_CFG_CLK_DIV_28);
|
||||
ag71xx_mdio_wr(am, AG71XX_REG_MII_CFG, t);
|
||||
udelay(100);
|
||||
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user