To configure the CPSW Ethernet Subsystem for operation, the host must perform the following:
- Select the Interface (RMII, or RGMII ) Mode. See
the
CTRLMMR_MCU_ENET_CTRL[1-0]
MODE_SEL register.
- Configure pads (pin muxing), as per the interface
selected. Refer to Pad Configuration
Registers and the device-specific
Datasheet.
- 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 CPSW_CONTROL_REG register
- Configure the Ethernet Port Source Address
registers (CPSW_PN_SA_L_REG and
CPSW_PN_SA_H_REG)
- Configure the CPSW statistic port enable register CPSW_STAT_PORT_EN_REG
- Configure the ALE (Address Lookup
Engine)
- Configure the MDIO (Initializing the MDIO
Module)
- Configure Ethernet port, as per the desired mode of operations