All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] AT91SAM9260EK with KS8721 PHY
@ 2008-04-07 13:16 Sander Vermin
  2008-04-07 13:49 ` Stelian Pop
  0 siblings, 1 reply; 12+ messages in thread
From: Sander Vermin @ 2008-04-07 13:16 UTC (permalink / raw)
  To: u-boot

Hello,

I'm trying to build a U-Boot from your git tree with the AT91 patches. 
My board is a custom board with a KS8721 instead of the DM9161 network 
PHY chip. This is the same chip as Olimex used on their development board.

Olimex build a U-Boot for their board, they did some code hacking on 
u-boot. As far as I know they did the following to get the ethernet up 
and running. [1] This is in the board/at91sam9260ek/dm9161a.c file

On the latest git version with the AT91 patches the ethernet driver is 
called macb??!!

Do you know how I can get this working? (as hack and in the future more 
clean)

Kind regards,

Sander Vermin

[1]
static unsigned int dm9161a_IsPhyConnected (AT91PS_EMAC p_mac)
{
    unsigned short Id1, Id2;

    at91_EmacEnableMDIO (p_mac);
    at91_EmacReadPhy (p_mac, SAM9260EK_PHY_ADDRESS, DM9161_PHYID1, &Id1);
    at91_EmacReadPhy (p_mac, SAM9260EK_PHY_ADDRESS, DM9161_PHYID2, &Id2);
    at91_EmacDisableMDIO (p_mac);
   
    /*printf(" Id1 0x%04x\n", Id1);
    printf(" Id1 0x%04x\n", Id2);*/
   

    if ((Id1 == (DM9161_PHYID1_OUI >> 6)) &&
        ((Id2 >> 10) == (DM9161_PHYID1_OUI & DM9161_LSB_MASK))) {
      printf("DM9161A PHY Detected\n\r");
      return TRUE;
    }
   
    if ((Id1 == MICREL_ID_1) && (Id2 == MICREL_ID_2)) {
        printf("KS8721 PHY Detected\n\r");
        return TRUE;
    }
   
    return FALSE;
}

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-04-08  9:09 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.