On Sun, Feb 24, 2008 at 04:24:21PM +0100, Wolfgang Denk wrote:
> Hi everybody,
>
> the second (and hopefully last) release candidate for U-Boot v1.3.2
> has been released and is available form both the git repository and
> the FTP server.
It seems I missed one patch for the AcTux boards - the one which adds
CONFIG_MII_ETHSWITCH support for boards without a directly attached PHY. I
know I submitted it, but looking at the mail archive, I am not quite sure if
it was supposed to be included or not.
This is no fatal problem - network access works after the autonegotiation
timeout, so this might wait for the next release - I do not think this
warrants any release delays.
Here is the current version of the fix - I would like to get this (or some
reworked version) included, even if it will be obsoleted by the phy library
when it finally arrives.
>From 23ce4f89cae10202ee5632608b115859774aaa7b Mon Sep 17 00:00:00 2001
From: Michael Schwingen <[EMAIL PROTECTED]>
Date: Fri, 29 Feb 2008 20:48:02 +0100
Subject: [PATCH] add CONFIG_MII_ETHSWITCH support to IXP42x npe driver
Signed-off-by: Michael Schwingen <[EMAIL PROTECTED]>
---
cpu/ixp/npe/npe.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/cpu/ixp/npe/npe.c b/cpu/ixp/npe/npe.c
index a33b956..2bb784e 100644
--- a/cpu/ixp/npe/npe.c
+++ b/cpu/ixp/npe/npe.c
@@ -361,6 +361,12 @@ static int npe_init(struct eth_device *dev, bd_t * bis)
debug("%s: 1\n", __FUNCTION__);
+#ifdef CONFIG_MII_ETHSWITCH
+ speed = _100BASET;
+ duplex = FULL;
+ (void) i;
+ (void) reg_short;
+#else
miiphy_read (dev->name, p_npe->phy_no, PHY_BMSR, ®_short);
/*
@@ -390,7 +396,7 @@ static int npe_init(struct eth_device *dev, bd_t * bis)
speed = miiphy_speed (dev->name, p_npe->phy_no);
duplex = miiphy_duplex (dev->name, p_npe->phy_no);
-
+#endif
if (p_npe->print_speed) {
p_npe->print_speed = 0;
printf ("ENET Speed is %d Mbps - %s duplex connection\n",
--
1.4.4.4
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
U-Boot-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/u-boot-users