This is a minor update to LPC32xx MAC driver patch that add support for the 
RMII phy mode.

In the legacy BSP from NXP, in RMII phy mode, an extra 10ms delay was present 
after the release of the soft reset.

In my tests (connected using RMII phy mode to a Micrel KSZ8031RNL), the 
download rate was 20% to 25% slower if the extra 10ms delay was not present.

This patch actually requires four other lpc32xx patches that are not yet 
available in u-boot/master or u-boot-arm/master:
1) http://patchwork.ozlabs.org/patch/489100/
2) http://patchwork.ozlabs.org/patch/489190/
3) http://patchwork.ozlabs.org/patch/491419/
4) http://patchwork.ozlabs.org/patch/491420/

Signed-off-by: Sylvain Lemieux <[email protected]>
---
 drivers/net/lpc32xx_eth.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/lpc32xx_eth.c b/drivers/net/lpc32xx_eth.c
index bb8d1ec..207d721 100644
--- a/drivers/net/lpc32xx_eth.c
+++ b/drivers/net/lpc32xx_eth.c
@@ -634,6 +634,8 @@ int lpc32xx_eth_initialize(bd_t *bis)

        /* Release SOFT reset to let MII talk to PHY */
        clrbits_le32(&regs->mac1, MAC1_SOFT_RESET);
+       if (lpc32xx_eth.phy_rmii)
+               udelay(10000);

        /* register driver before talking to phy */
        eth_register(dev);
--
1.7.12.4


________________________________

This e-mail contains privileged and confidential information intended for the 
use of the addressees named above. If you are not the intended recipient of 
this e-mail, you are hereby notified that you must not disseminate, copy or 
take any action in respect of any information contained in it. If you have 
received this e-mail in error, please notify the sender immediately by e-mail 
and immediately destroy this e-mail and its attachments.
_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to