public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/1] net: lpc32xx: improve download rate in RMII phy mode
@ 2015-07-07 19:13 LEMIEUX, SYLVAIN
  2015-07-08  5:05 ` Vladimir Zapolskiy
  0 siblings, 1 reply; 4+ messages in thread
From: LEMIEUX, SYLVAIN @ 2015-07-07 19:13 UTC (permalink / raw)
  To: u-boot

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 <slemieux@tycoint.com>
---
 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.

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-07-14  7:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-07 19:13 [U-Boot] [PATCH 1/1] net: lpc32xx: improve download rate in RMII phy mode LEMIEUX, SYLVAIN
2015-07-08  5:05 ` Vladimir Zapolskiy
2015-07-08 17:41   ` LEMIEUX, SYLVAIN
2015-07-14  7:28     ` Albert ARIBAUD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox