SPRUJ17H March 2022 – October 2024 AM2631 , AM2631-Q1 , AM2632 , AM2632-Q1 , AM2634 , AM2634-Q1
The CPSW_CONTROL register is used for global configuration of CPSW modes.
The CPSW_CONTROL.PORT*_MODE_SEL bitfield configures the Ethernet mode of the corresponding port of CPSW to be in either MII, RMII, or RGMII.
CPSW_CONTROL.RGMII*_ID_MODE, when set to 1, enables the internal delay mode for the transmit path of the corresponding RGMII port. This provides a phase shift of quarter cycle b/w clock and data.
CPSW_CONTROL.RMII*_REF_CLK_OE_N controls how the RMII REF_CLK is generated in the system.
As shown in Figure 6-3, the RMII*_REF_CLK can be generated from the device and fed to the CPSW and transmitted out to device pins. Alternately, the RMII*_REF_CLK can be sourced from external sources as an input to the device.
CPSW_CONTROL.RMII*_REF_CLK_SEL is used to select the RMII*_REF_CLK source, either from the IO pad (write 0x0) or from an internal source (write 0x1).