]> git.ipfire.org Git - people/ms/u-boot.git/commit
net: lpc32xx: improve MAC configuration on reset and initialization
authorVladimir Zapolskiy <vz@mleia.com>
Mon, 6 Jul 2015 04:22:10 +0000 (07:22 +0300)
committerJoe Hershberger <joe.hershberger@ni.com>
Tue, 11 Aug 2015 18:42:34 +0000 (13:42 -0500)
commit23f5db0e26f0e6c25ba143e700b4812efdd5f941
treea8e7accdf656acedafba26ab7c09316106bf607d
parentfe0596cac3079a74eeee93e2940010a7a158c58d
net: lpc32xx: improve MAC configuration on reset and initialization

This change rearranges general MAC configuration and PHY specific
configuration of MAC registers (duplex mode and speed), before this
change set bits related to PHY configuration in MAC2 and COMMAND
registers are rewritten by the following writing to the registers.

Without the change auto negotiation on boot quite often is not
completed in reasonable time:

  Waiting for PHY auto negotiation to complete......... TIMEOUT !

Additionally MAC1_SOFT_RESET clear bit is removed since it is done in
preceding lpc32xx_eth_initialize() and in lpc32xx_eth_halt(), instead
added missing MCFG_RESET_MII_MGMT on device initialization.

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
drivers/net/lpc32xx_eth.c