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.

How to enable EMAC1 in RMII Mode to communicate with USB-ether device.



Dear Experts,

My TI RDK version: DVRRDK3.0. / Custom Board

There are two EMACs in DM8148. I use EMAC0 as RGMII mode to be a Ethernet port, it is working.

I want to connect DM8148 EMAC1 to a USB-Ether in RMII mode.

After setting corresponding register, I can’t ping USB Host, vice versa.

Could anyone help me check whether the register setting is correct ??!!

or anything that I missed ??!!

 

Attached file is the architecture of my board.

( https://dl.dropbox.com/u/27415803/Question1.doc )

3858.Question1.doc

 

1)      Pinmux of EMAC1

RMII_REFCLK  0x48140B9C:  00040001

GMII0_TXD2    0x48140BEC:  00000002

GMII0_TXD3   0x48140BF0:  00000002

GMII0_TXD5    0x48140BF8:  00000002

GMII0_TXD6    0x48140BFC:  00000002

GMII0_TXD7    0x48140C00:  00000002

GMII0_TXEN    0x48140C04:  00000002

 

2)      Control Module Register GMII_SEL Register (offset = 650h)

GMII_SEL Register  0x48140650:  00000306

 

3)      PRCM Register RMII_REFCLK_SRC Register (offset = 2E8h)

RMII_REFCLK_SRC  0x481802E8:  00000000

>> I can’t adjust this register in board-ti8148evm.c by using omap_writel(0x00000001, 0x481802e8);

 

4) Kernel : select TICSPW Switch as Dual EMAC

thx

HB