diff options
author | Hauke Mehrtens <hauke@openwrt.org> | 2013-09-14 16:14:02 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@openwrt.org> | 2013-09-14 16:14:02 +0000 |
commit | 1a3dd5a001bd2938c6338011abc5091c68c4190c (patch) | |
tree | 56c6776e676c7e1d0d085a8b4fd9d4df4ee78505 /target/linux/generic/files/drivers/net/phy/b53/b53_common.c | |
parent | f219addf7932b423638a5bed4f0aa02b5d942b3a (diff) | |
download | master-187ad058-1a3dd5a001bd2938c6338011abc5091c68c4190c.tar.gz master-187ad058-1a3dd5a001bd2938c6338011abc5091c68c4190c.tar.bz2 master-187ad058-1a3dd5a001bd2938c6338011abc5091c68c4190c.zip |
kernel: b53: add soft reset for BCM539x switches
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37987 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy/b53/b53_common.c')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/b53/b53_common.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/b53/b53_common.c b/target/linux/generic/files/drivers/net/phy/b53/b53_common.c index 25ab412f80..d1fc930f27 100644 --- a/target/linux/generic/files/drivers/net/phy/b53/b53_common.c +++ b/target/linux/generic/files/drivers/net/phy/b53/b53_common.c @@ -477,6 +477,11 @@ static int b53_switch_reset(struct b53_device *dev) b53_switch_reset_gpio(dev); + if (is539x(dev)) { + b53_write8(dev, B53_CTRL_PAGE, B53_SOFTRESET, 0x83); + b53_write8(dev, B53_CTRL_PAGE, B53_SOFTRESET, 0x00); + } + b53_read8(dev, B53_CTRL_PAGE, B53_SWITCH_MODE, &mgmt); if (!(mgmt & SM_SW_FWD_EN)) { |