Part Number: AM6422
Other Parts Discussed in Thread: TMDS64EVM
I am trying to configure the AM6422 PRI_ICSSG GPIO pins to use MII_G_RT1, MII_G_RT2 and UART0 on a bare-metal setup.
On microcontrollers without the PRU-type subsystem, this is usually a straightforward process of setting the respective MUX setting, IN/OUT setting, etc in the pad config register for the targetted pins.
With the addition of the PRU, I am having trouble understanding what needs to be done. From reading the AM64x TRM, it appears that this is now a two-tiered process, but please correct me where I'm wrong:
1) To start, set the proper PADCONFIG register to select mux mode for the PRU (for instance, PADCONFIG11.MUXMODE = 2 for PRG0_RGMII1_TD0)
2) Next I need to set CSSG_GPCFG0_REG.PR1_PRU0_GP_MUX_SEL to "2" in order to configure the use of the MII mode signals, as specified in the 4th column of TRM table 6-51.
Is this correct? Or is the step 2 only needed with the PADCONFIG register in step 1 is generically used to configure the corresponding PRU0_GPO/GPI signals (mux mode = 0 or 1)?
If so, looking at figure 6-17, I am able to see the MII_G_RT1 signals PRG1_RGMII1_RD[3:0] under the "MII mode" column in table 6-51 (specifically on page 529) but am not able to find the other receive signals PRG1_RGMII1_RXC or PRG1_RGMII1_RX_CTL until I get down to the subsection "MII_G_RT1 (RGMII mode)" on page 532, but this seems to be a different thing than the listings for "alternate functions" at the beginning of the table.
And the final question as related to the PRU internal multiplexing, how do the above concepts above map to the idea of PRUn R30/R31 inputs and outputs? Does this impact how data is received or transmitted across that interface?
Thanks!




