This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

am335x连不上千兆以太网的问题

Other Parts Discussed in Thread: AM3359

新做的板子,am3359+ar8031,

 

AR8031的硬件配置为 (参见datasheet-14)
RXD0            外部上拉
RXD1   外部下拉
LED_ACT      外部上拉
RX_DV   外部下拉
RXD2   外部下拉
RX_CLK   外部下拉
RXD3   外部下拉
LED_LINK1000    外部上拉

因此。ID=3`b101(0x5) MODE=0000(1000BASE-T,RGMII)

(tiam335xevm默认ID=3`B000. MODE=0000)

修改ti-am335x uboot里面的文件evm.c(u-boot-2011.09-psp04.06.00.03)

static struct cpsw_slave_data cpsw_slaves[] = {
 {
  .slave_reg_ofs = 0x208, 
  .sliver_reg_ofs = 0xd80,
  .phy_id  = 0,
 },
 {
  .slave_reg_ofs = 0x308,
  .sliver_reg_ofs = 0xdc0,
  .phy_id  = 1,
 },
};

static struct cpsw_platform_data cpsw_data = {
 .mdio_base  = AM335X_CPSW_MDIO_BASE,
 .cpsw_base  = AM335X_CPSW_BASE,
 .mdio_div  = 0xff,
 .channels  = 8,
 .cpdma_reg_ofs  = 0x800,
 .slaves   = 2,
 .slave_data  = cpsw_slaves,
 .ale_reg_ofs  = 0xd00,
 .ale_entries  = 1024,
 .host_port_reg_ofs = 0x108,
 .hw_stats_reg_ofs = 0x900,
 .mac_control  = (1 << 5) /* MIIEN */,
 .control  = cpsw_control,
 .phy_init  = evm_phy_init,
 .gigabit_en  = 1,
 .host_port_num  = 0,
 .version  = CPSW_CTRL_VERSION_2,
};

修改  .phy_id  = /*0*/5, .slaves   = /*2*/1,启动自己做的板子后,物理连接正常,但是ping不同,
报错miiphy read id fail,暂没有头绪,各位大牛,能给点意见么,谢谢