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.

AM6548: Enabling MII Auto-forwarding

Part Number: AM6548

Hi,

I am trying to enable MII auto forwarding as descried in section 6.4.11.2.1.1 ( Auto-forward with Optional PRU Snoop) of the TRM for my application on a custom AM6548 based board. The board is running linux SDK 8.0 and so as a test I have tried the following:

use TI pinmux tool to define RGMII1 and 2 in the dts file -> rebuild into dtb -> boot linux, then write to registers as follows:

PRU GPCFG0 – select MII on PRU0 mux devmem2 0x0B026008 l 0x08000000
PRU GPCFG1 – select MII on PRU1 mux   devmem2 0x0B02600C l 0x08000000
PRU IEPCLK – enable IEP core clk  devmem2 0x0B026030 l 0x01
PRU RXCFG0 – Set RX_ENABLE 1, RX_CUT_PREMABLE 0, RX_MUX_SEL 0, RX_L2_ENABLE 1, RX_BYTE_SWAP 0, RX_AUTO_FWD_PRE 1 – devmem2 0x0B032000 l 0x51
PRU_TXCFG0 – Set TX_ENABLE 1, TX_AUTO_PREAMBLE 0, TX_EN_MODE 0, TX_BYTE_SWAP 0, TX_MUX_SEL 1, TX_AUTO_SEQUENCE 1, TX_START_DELAY 0x40, TX_CLOCK_DELAY 0x6 – devmem2 0x0B032010 l 0x60400301
PRU RXCFG1 – Set RX_ENABLE 1, RX_CUT_PREMABLE 0, RX_MUX_SEL 1, RX_L2_ENABLE 1, RX_BYTE–_SWAP 0, RX_AUTO_FWD_PRE 1 – devmem2 0x0B032004 l 0x59
PRU_TXCFG1 – Set TX_ENABLE 1, TX_AUTO_PREAMBLE 0, TX_EN_MODE 0, TX_BYTE_SWAP 0, TX_MUX_SEL 0, TX_AUTO_SEQUENCE 1, TX_START_DELAY 0x40, TX_CLOCK_DELAY 0x6 – devmem2 0x0B032010 l 0x60400201

I then load simple halt firmware to the PRUs

echo 'PRU_Halt_0.out' > /sys/class/remoteproc/remoteproc1/firmware
echo 'PRU_Halt_1.out' > /sys/class/remoteproc/remoteproc4/firmware
echo 'start' > /sys/class/remoteproc/remoteproc1/state
echo 'start' > /sys/class/remoteproc/remoteproc4/state

I then use ping from my host windows computer which has two ethernet ports, to try and ping between the two, with both connected through my custom AM6548 board through the appropriate ports for MII1 and 2, however I get no response. I have ethernet taps on order to see what is actually going on, but before they get here, I figured I would ask to see if I am missing something obvious.

Thanks!

Keith