From: Sander Vermin <sander@vermin.nl>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] AT91SAM9260EK with KS8721 PHY
Date: Mon, 07 Apr 2008 15:16:07 +0200 [thread overview]
Message-ID: <47FA1E97.50706@vermin.nl> (raw)
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;
}
next reply other threads:[~2008-04-07 13:16 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-07 13:16 Sander Vermin [this message]
2008-04-07 13:49 ` [U-Boot-Users] AT91SAM9260EK with KS8721 PHY 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
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=47FA1E97.50706@vermin.nl \
--to=sander@vermin.nl \
--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