]> git.kernelconcepts.de Git - karo-tx-uboot.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)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:17:41 +0000 (08:17 +0200)
commite34b012165ab449d34b31f276a24137227443b53
treea3886cae5a5f911cf23d1089ea266935a71d2bf4
parent1bb6744cafe3a5fa1cc67e85f84709e0745df79c
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