diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-03-13 17:29:33 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-03-13 17:29:33 +0000 |
commit | 1c5ac02a29a1166700af119b3e7033c919397fd3 (patch) | |
tree | 26aaee743ce787a9cc27fca0280120e435f4a9c4 /target/linux/ar71xx/files | |
parent | 17d3131d3c298d1f0061e371418014d5e92f5a31 (diff) | |
download | mtk-20170518-1c5ac02a29a1166700af119b3e7033c919397fd3.zip mtk-20170518-1c5ac02a29a1166700af119b3e7033c919397fd3.tar.gz mtk-20170518-1c5ac02a29a1166700af119b3e7033c919397fd3.tar.bz2 |
ar71xx: reset the switch on AR934x before ethernet device registration
SVN-Revision: 30922
Diffstat (limited to 'target/linux/ar71xx/files')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c b/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c index cae5af1..2a55d33 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c @@ -797,6 +797,10 @@ void __init ath79_register_eth(unsigned int id) pdata->set_speed = ath79_set_speed_dummy; pdata->switch_data = &ath79_switch_data; + + /* reset the built-in switch */ + ath79_device_reset_set(AR934X_RESET_ETH_SWITCH); + ath79_device_reset_clear(AR934X_RESET_ETH_SWITCH); } pdata->ddr_flush = ath79_ddr_no_flush; |