From mboxrd@z Thu Jan 1 00:00:00 1970 From: michael Date: Tue, 08 Apr 2008 11:09:30 +0200 Subject: [U-Boot-Users] AT91SAM9260EK with KS8721 PHY In-Reply-To: <47FB2E98.2080008@free.fr> References: <47FA1E97.50706@vermin.nl> <1207576185.6290.4.camel@galileo> <47FA2C30.7050609@vermin.nl> <1207598435.5709.14.camel@galileo> <47FA82C3.70002@free.fr> <1207601357.5709.25.camel@galileo> <47FA8A34.8080603@free.fr> <47FB259B.8040703@vermin.nl> <47FB2E98.2080008@free.fr> Message-ID: <47FB364A.4040509@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 Hi, > Sander Vermin a ?crit :> I did a new build with:> > macb_eth_initialize(0, (void *)AT91_BASE_EMAC, 1<<5);> > in stead of:> > macb_eth_initialize(0, (void *)AT91_BASE_EMAC, 0x00);> > But still no PHY detected :-(> You need to check your schematic, and the PHY datasheet in order to know what could be the address of your PHY (set by pull up/down resistors on several pins of the PHY at reset of the PHY). > Or you can try a loop on the PHY address and see if it answers at any address ... > Try this code to do the loop test. #if defined(CONFIG_YOURBOARD) #define MAX_PHY_ADDR 64 for (i = 0 ; i < MAX_PHY_ADDR; i++) { macb->phy_addr = i; phy_id = macb_mdio_read(macb, MII_PHYSID1); if (phy_id != 0xffff) break; } printf("phy_id %x found at %d\n", phy_id, i); #else phy_id = macb_mdio_read(macb, MII_PHYSID1); #endif Michael