The MDIO module implements the MDIO-generic IOCTL commands defined in ENET_MOD_MDIO API set.
MDIO clocks:
- CPSW_CPPI_CLK - CPSW main clock.
Interrupts:
- MDIO_PEND - MDIO interrupt. Peripheral driver must call MDIO_IOCTL_HANDLE_INTR command to handle the MDIO interrupt.
Features:
- MDIO_FEATURE_CLAUSE45 - Clause-45 frame feature.
Compile-time configuration:
◆ MDIO_MAX_PHY_CNT
#define MDIO_MAX_PHY_CNT (31U) |
Maximum number of PHYs supported on MDIO bus.
◆ Mdio_OpMode
MDIO operating mode.
Enumerator |
---|
MDIO_MODE_NORMAL | Normal mode
|
MDIO_MODE_STATE_CHANGE_MON | State change monitor mode
|
MDIO_MODE_MANUAL | Manual mode (slow GPIO, not used for MDIO PHY operations. Used only during MDIO pins software bit banging)
|
◆ Mdio_initCfg()
Initialize MDIO configuration parameters.
- Parameters
-
mdioCfg | Configuration parameters to be initialized |