U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: michael <trimarchi@gandalf.sssup.it>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] AT91SAM9260EK with KS8721 PHY
Date: Tue, 08 Apr 2008 11:09:30 +0200	[thread overview]
Message-ID: <47FB364A.4040509@gandalf.sssup.it> (raw)
In-Reply-To: <47FB2E98.2080008@free.fr>

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

      parent reply	other threads:[~2008-04-08  9:09 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-07 13:16 [U-Boot-Users] AT91SAM9260EK with KS8721 PHY Sander Vermin
2008-04-07 13:49 ` Stelian Pop
2008-04-07 13:54   ` Eric BENARD
2008-04-07 14:14   ` Sander Vermin
2008-04-07 20:00     ` Stelian Pop
2008-04-07 20:23       ` Eric BENARD
2008-04-07 20:49         ` Stelian Pop
2008-04-07 20:55           ` Eric BENARD
2008-04-08  7:58             ` Sander Vermin
2008-04-08  8:36               ` Eric BENARD
2008-04-08  9:09                 ` Sander Vermin
2008-04-08  9:09                 ` michael [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47FB364A.4040509@gandalf.sssup.it \
    --to=trimarchi@gandalf.sssup.it \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox