powerpc 405ex emac1 problem connect to single Giga phy

zhong wang leowang1998 at yahoo.com.cn
Tue Mar 10 16:36:51 EST 2009


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 at ef600b00 initialized with MDIO support
/plb/opb/emac-rgmii at ef600b00: input 0 in RGMII mode
eth0: EMAC-0 /plb/opb/ethernet at ef600900, MAC 00:47:41:52:52:59
/plb/opb/emac-rgmii at ef600b00: input 1 in RGMII mode
/plb/opb/ethernet at 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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20090310/eaa92b63/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Connection diagram.pdf
Type: application/pdf
Size: 11298 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20090310/eaa92b63/attachment.pdf>


More information about the Linuxppc-dev mailing list