SPRUIM2H May 2020 – October 2023 AM2431 , AM2432 , AM2434 , AM6411 , AM6412 , AM6421 , AM6422 , AM6441 , AM6442
Normal Mode: (CPSW_MDIO_POLL_REG[30] STATECHANGEMODE = 0h)
MDIO_LINKINT event is set if there is a change in the link state of the PHY corresponding to the address in the PHYADR_MON field of the CPSW_MDIO_USER_PHY_SEL_REG_k register and the corresponding LINKINT_ENABLE bit is set. The MDIO_LINKINT event is also captured in the MDIO CPSW_MDIO_LINK_INT_MASKED_REG register. When the GO bit in the CPSW_MDIO_USER_ACCESS_REG_k register transitions from 1 to 0, indicating the completion of a user access, and the corresponding USERINTMASKSET bit in the CPSW_MDIO_USER_INT_MASK_SET_REG register is set, the MDIO_USERINT signal is asserted. The MDIO_USERINT event is also captured in the CPSW_MDIO_USER_INT_MASKED_REG register.
State Change Mode: (CPSW_MDIO_POLL_REG[30] STATECHANGEMODE = 1h)
In State Change Mode, the MDIO will assert MDIO_LINKINT[0] when any bit in the MDIO CPSW_MDIO_ALIVE_REG or CPSW_MDIO_LINK_REG registers changes due to MDIO operations. The MDIO_LINKINT event is also captured in the CPSW_MDIO_LINK_INT_MASKED_REG register. MDIO_LINKINT[1] output is unused in State Change Mode. The CPSW_MDIO_USER_PHY_SEL_REG_k registers are unused in state change mode.
Manual Mode: (CPSW_MDIO_POLL_REG[31] MANUALMODE = 1h)
Manual Mode allows software to directly control the MDIO serial clock output (CPSW_MDIO_MANUAL_IF_REG[2] MDIO_MDCLK_O) and the MDIO serial data output enable (CPSW_MDIO_MANUAL_IF_REG[1] MDIO_OE). Manual Interface Mode is enabled when the MANUALMODE bit is set in the CPSW_MDIO_POLL_REG register. Manual Mode is intended to be used by software for slow speed general purpose IO operations and not for MDIO PHY operations.