aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-12-06 22:40:58 +0000
committerFlorian Fainelli <florian@openwrt.org>2012-12-06 22:40:58 +0000
commit78b235cfc378022d03b676c1ce7d18f4930f2643 (patch)
treeb12844414fa44366a678f9c12e21b903adb27117
parentb3f36553ccacec0d0d16612284d54f86f9b498bc (diff)
downloadupstream-78b235cfc378022d03b676c1ce7d18f4930f2643.tar.gz
upstream-78b235cfc378022d03b676c1ce7d18f4930f2643.tar.bz2
upstream-78b235cfc378022d03b676c1ce7d18f4930f2643.zip
do not reset WAN and LAN blocks
This is taken care of by the tulip driver accordingly. Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 34563
-rw-r--r--target/linux/adm8668/files/arch/mips/adm8668/setup.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/target/linux/adm8668/files/arch/mips/adm8668/setup.c b/target/linux/adm8668/files/arch/mips/adm8668/setup.c
index 5a177f2a50..b33c483d24 100644
--- a/target/linux/adm8668/files/arch/mips/adm8668/setup.c
+++ b/target/linux/adm8668/files/arch/mips/adm8668/setup.c
@@ -8,20 +8,6 @@ static void adm8668_restart(char *cmd)
{
int i;
- /* stop eth0 and eth1 */
- ADM8668_LAN_REG(NETCSR6) = (1 << 13) | (1 << 1);
- ADM8668_LAN_REG(NETCSR7) = 0;
- ADM8668_WAN_REG(NETCSR6) = (1 << 13) | (1 << 1);
- ADM8668_WAN_REG(NETCSR7) = 0;
-
- /* reset PHY */
- ADM8668_WAN_REG(NETCSR37) = 0x20;
- for (i = 0; i < 10000; i++)
- ;
- ADM8668_WAN_REG(NETCSR37) = 0;
- for (i = 0; i < 10000; i++)
- ;
-
/* the real deal */
for (i = 0; i < 1000; i++)
;