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.

dm385 UBOOT 中网络PIN MUX 疑问 ?



TI 技术支持你们好:

我在IPNC 基础上使用AR8035 作为phy ,我在运行UBOOT 中能读到 

DM388_IPNC#ping 192.168.200.233
phy info reg 0x1e addr 0 val 102
phy info reg 0x1e addr 0 val 10a
link up on port 0, speed 1000, full duplex
Using cpsw device 

但ping 不同,

我在代码里面看到了 

static void cpsw_pad_config()
{
volatile u32 val = 0;

/*configure pin mux for rmii_refclk,mdio_clk,mdio_d */
val = PAD232_CNTRL;
PAD232_CNTRL = (volatile unsigned int) (BIT(18) | BIT(0));
val = PAD233_CNTRL;
PAD233_CNTRL = (volatile unsigned int) (BIT(19) | BIT(17) | BIT(0));
val = PAD234_CNTRL;
PAD234_CNTRL = (volatile unsigned int) (BIT(19) | BIT(18) | BIT(17) |
BIT(0));

还有以下部分 ?这处我有点疑惑,手册上写  

MDCLK   MDCLK PINCNTL233 /  0x000E 0000   0x01  

这处是那个不对那 ?设置这个管脚不是应该是 0x000E0001 么 ?

/*setup rgmii0/rgmii1 pins here*/
/* In this case we enable rgmii_en bit in GMII_SEL register and
* still program the pins in gmii mode: gmii0 pins in mode 1*/ 

val = PAD235_CNTRL; /*rgmii0_rxc*/
PAD235_CNTRL = (volatile unsigned int) (BIT(18) | BIT(0));
val = PAD236_CNTRL; /*rgmii0_rxctl*/
PAD236_CNTRL = (volatile unsigned int) (BIT(18) | BIT(0));
val = PAD237_CNTRL; /*rgmii0_rxd[2]*/
PAD237_CNTRL = (volatile unsigned int) (BIT(18) | BIT(0));

这个配置 的结果是0x00040001 和手册上的不符?这处是怎么回事?谢谢 !