Add support for Generic PHY in macb.
Signed-off-by: michael <[EMAIL PROTECTED]>
---
drivers/net/macb.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/net/macb.c b/drivers/net/macb.c
index 9c98338..2a6fc5d 100644
--- a/drivers/net/macb.c
+++ b/drivers/net/macb.c
@@ -330,8 +330,12 @@ static int macb_phy_init(struct macb_device *macb)
/* Check if the PHY is up to snuff... */
phy_id = macb_mdio_read(macb, MII_PHYSID1);
if (phy_id == 0xffff) {
+#if defined (CONFIG_GENERIC_PHY)
+ printf("%s: Using the Generic PHY\n", netdev->name);
+#else
printf("%s: No PHY present\n", netdev->name);
return 0;
+#endif
}
status = macb_mdio_read(macb, MII_BMSR);
--
-------------------------------------------------------------------------
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