mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 21:58:04 +00:00
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
This commit is contained in:
parent
b3f36553cc
commit
78b235cfc3
@ -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++)
|
||||
;
|
||||
|
Loading…
Reference in New Issue
Block a user