To configure the CPSW Ethernet Subsystem for operation, the host must perform the following:
- Select the Interface (RMII, or RGMII ) Mode. See the ENET1_CTRL and ENET2_CTRL[2-0] PORT_MODE_SEL fields.
- Configure pads (pin muxing), as per the interface selected. Refer to Pad Configuration Registers and the device-specific data sheet.
- Enable the CPSW Ethernet Subsystem clocks. See CPSW Integration
- Ensure that at least 2000 CPPI_ICLK periods are run after reset is de-asserted.
- Configure the CPSW3_CONTROL_REG register
- Configure the Ethernet Port Source Address registers (CPSW3_CPSW_NU_CPSW_NU_ETH_MAC_i_PN_SA_L_REG_k and CPSW3_CPSW_NU_CPSW_NU_ETH_MAC_i_PN_SA_H_REG_k)
- Configure the CPSW statistic port enable register CPSW3_CPSW_NU_STAT_PORT_EN_REG
- Configure the ALE (Section 12.3.1.4.6.1, Address Lookup Engine)
- Configure the MDIO (Section 12.3.1.5.3.1, Initializing the MDIO Module)
- Configure Ethernet port, as per the desired mode of operations