From: michael Date: Fri, 22 Feb 2008 12:41:17 +0100 Subject: [U-Boot-Users] [PATCH] Add support for Generic PHY in macb Message-ID: <47BEB4DD.70006@gandalf.sssup.it> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Add support for Generic PHY in macb. Signed-off-by: michael --- 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); --