From: Marco Cavallini <arm.linux@koansoftware.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] DP83848 PHY for AT91RM9200 board
Date: Mon, 01 Oct 2007 14:46:26 +0200 [thread overview]
Message-ID: <4700EC22.5020103@koansoftware.com> (raw)
Hi,
I'm using u-boot-1.1.4 (quite old but I must use it)
with my AT91RM9200 based board.
I replaced DM9161 with a new DP83848 PHY ethernet physical layer
transceiver.
So I'm backporting Sergey Kubushyn's driver
National Semiconductor DP83848 PHY Driver for TI DaVinci (TMS320DM644x)
adapting it for my AT91RM9200 based board.
I left eth_init() like it was for DM9161 because connections are the same.
The problem I'm facing to is that PHY is not detected when I call
dp83848_is_phy_connected (see below).
I wonder if anybody used DP83848 PHY before and maybe could give me a hint.
int dp83848_is_phy_connected(AT91PS_EMAC phy_addr)
{
u_int16_t id1, id2;
printf ("*** dp83848_is_phy_connected\n");
at91rm9200_EmacEnableMDIO (phy_addr);
at91rm9200_EmacReadPhy(phy_addr, DP83848_PHYID1_REG, &id1) ;
at91rm9200_EmacReadPhy(phy_addr, DP83848_PHYID2_REG, &id2) ;
at91rm9200_EmacDisableMDIO (phy_addr);
printf ("phy_addr=%X - id1=%X - id2=%X\n", phy_addr, id1, id2);
// here I always get 0xFFFBC000 0xFFFF 0xFFFF
if ((id1 == DP83848_PHYID1_OUI) && (id2 == DP83848_PHYID2_OUI))
return(1);
return(0);
}
TIA
--
Marco Cavallini
Koan s.a.s. - Bergamo - Italia
Embedded and Real-Time Software Engineering
http://www.KoanSoftware.com - http://www.KaeilOS.com
next reply other threads:[~2007-10-01 12:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-01 12:46 Marco Cavallini [this message]
2007-10-01 15:54 ` [U-Boot-Users] DP83848 PHY for AT91RM9200 board ksi at koi8.net
2007-10-01 16:39 ` Marco Cavallini
2007-10-01 17:07 ` ksi at koi8.net
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=4700EC22.5020103@koansoftware.com \
--to=arm.linux@koansoftware.com \
--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 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.