[U-Boot-Users] [PATCH] Add support for Generic PHY in macb
michael
trimarchi at gandalf.sssup.it
Fri Feb 22 12:41:17 CET 2008
Add support for Generic PHY in macb.
Signed-off-by: michael <trimarchi at gandalf.sssup.it>
---
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);
--
More information about the U-Boot
mailing list