To configure the CPSW Ethernet Subsystem for operation, the host must perform the following:
- Select the Interface (RMII, or RGMII ) Mode. See
the CTRLMMR_ENET1_CTRL and CTRLMMR_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
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_k and
CPSW_PN_SA_H_REG_k)
- Configure the CPSW statistic port enable register
CPSW_STAT_PORT_EN_REG
- Configure the ALE (Section 12.2.1.4.6.1, Address Lookup Engine)
- Configure the MDIO (Section 12.2.1.5.3.1, Initializing the
MDIO Module)
- Configure Ethernet port, as per the desired mode of operations