From: zhong wang <leowang1998@yahoo.com.cn>
To: linuxppc-dev@ozlabs.org
Subject: 转发: powerpc 405ex emac1 problem connect to single Giga phy
Date: Tue, 10 Mar 2009 22:17:38 +0800 (CST) [thread overview]
Message-ID: <56041.16244.qm@web15308.mail.cnb.yahoo.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 3141 bytes --]
Hello all:
We use the AMCC PowerPC 405ex through emac1 way RGMII with realtek RTL8211 Giga phy linked to, At present the PHY Address is: 00110
add delay 2ns for RGMII
CONFIG[8:5]:AUTO_Negotiation
1111=NWay,advertise ,all capabilities,prefer Slave
mode;1=RGMII mode
Clk on the hardware no problem, Mdio, mdc even on, but at Llinux / driver / net / ibm-newemac / core.c discovered phy address, phy ID at .Config file has joined
NETDEVICE = Y
PHYLIB=Y
REALTEK-PHY=Y
But will be compiled under the best Uimage to board, the feeling of the PHY the driver has not been mounted use. The following is a kernel information :
PPC 4xx OCP EMAC driver, version 3.54
MAL v2 /plb/mcmal, 2 TX channels, 2 RX channels
RGMII /plb/opb/emac-rgmii@ef600b00 initialized with MDIO support
/plb/opb/emac-rgmii@ef600b00: input 0 in RGMII mode
eth0: EMAC-0 /plb/opb/ethernet@ef600900, MAC 00:47:41:52:52:59
/plb/opb/emac-rgmii@ef600b00: input 1 in RGMII mode
/plb/opb/ethernet@ef600a00: find TRL 821X Giga PHY(0x4)
But also in Llinux / driver / net / ibm-newemac / phy.c also add the operation of RTL8211bg as follows:
#define RTL821x_PHYSR 0x11
#define RTL821x_PHYSR_DUPLEX 0x2000
#define RTL821x_PHYSR_SPEED 0xc000
#define RTL821x_INER 0x12
#define RTL821x_INER_INIT 0x6400
#define RTL821x_INSR 0x13
static int rtl821x_init(struct mii_phy *phy)
{
phy_write(phy, RTL821x_INER, 0x6400); //enable interrupt
return 0;
}
static struct mii_phy_ops rtl821x_phy_ops = {
.init = rtl821x_init,
.setup_aneg = genmii_setup_aneg,
.setup_forced = genmii_setup_forced,
.poll_link = genmii_poll_link,
.read_link = genmii_read_link
};
static struct mii_phy_def rtl821x_phy_def = {
.phy_id = 0x001cc912, // for rtl8211 single phy
// .phy_id = 0x001cc960, for 8366sr inside phy 4
.phy_id_mask = 0x001fffff,
.name = "RTL 821X Giga Phy",
.features = PHY_GBIT_FEATURES,
//.flags = PHY_HAS_INTERRUPT,
.ops = &rtl821x_phy_ops
But will be compiled under the best Uimage to board, the feeling of the PHY the driver has not been mounted use. The following is a kernel information
After IP with a good PC PING board, Return Request Time Out! Troublesome players you look at what questions are
Connection diagram, see attachment
leowang
2009:03:10
好玩贺卡等你发,邮箱贺卡全新上线!
___________________________________________________________
好玩贺卡等你发,邮箱贺卡全新上线!
http://card.mail.cn.yahoo.com/
[-- Attachment #2: Connection diagram.pdf --]
[-- Type: application/pdf, Size: 11298 bytes --]
reply other threads:[~2009-03-10 14:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=56041.16244.qm@web15308.mail.cnb.yahoo.com \
--to=leowang1998@yahoo.com.cn \
--cc=linuxppc-dev@ozlabs.org \
/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