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 | 011e04374600c1fd923baa7b96380142f64d59fe (patch) | |
tree | ed23e225b2efca5a6da5b140f995b028ef063ac8 /target | |
parent | 14f91a5fd544b399a93803c2bf7b9a86d37f7bc5 (diff) | |
download | master-187ad058-011e04374600c1fd923baa7b96380142f64d59fe.tar.gz master-187ad058-011e04374600c1fd923baa7b96380142f64d59fe.tar.bz2 master-187ad058-011e04374600c1fd923baa7b96380142f64d59fe.zip |
ar71xx: reset the switch on AR934x before ethernet device registration
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30922 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-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 cae5af1d94..2a55d33d82 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; |