diff --git a/arch/arm/src/imxrt/hardware/imxrt_enet.h b/arch/arm/src/imxrt/hardware/imxrt_enet.h index 5dbaf0934a..7b879d6b3f 100644 --- a/arch/arm/src/imxrt/hardware/imxrt_enet.h +++ b/arch/arm/src/imxrt/hardware/imxrt_enet.h @@ -207,7 +207,7 @@ # define ENET_MMFR_OP_WRNOTMII (0 << ENET_MMFR_OP_SHIFT) /* Write frame, not MII compliant */ # define ENET_MMFR_OP_WRMII (1 << ENET_MMFR_OP_SHIFT) /* Write frame, MII management frame */ # define ENET_MMFR_OP_RDMII (2 << ENET_MMFR_OP_SHIFT) /* Read frame, MII management frame */ -# define ENET_MMFR_OP_RdNOTMII (3 << ENET_MMFR_OP_SHIFT) /* Read frame, not MII compliant */ +# define ENET_MMFR_OP_RDNOTMII (3 << ENET_MMFR_OP_SHIFT) /* Read frame, not MII compliant */ #define ENET_MMFR_ST_SHIFT (30) /* Bits 30-31: Start of frame delimiter */ #define ENET_MMFR_ST_MASK (3 << ENET_MMFR_ST_SHIFT) diff --git a/arch/arm/src/imxrt/imxrt_enet.c b/arch/arm/src/imxrt/imxrt_enet.c index 42dc9f4217..71861de2a4 100644 --- a/arch/arm/src/imxrt/imxrt_enet.c +++ b/arch/arm/src/imxrt/imxrt_enet.c @@ -2259,7 +2259,7 @@ static int imxrt_readmmd(struct imxrt_driver_s *priv, uint8_t phyaddr, imxrt_enet_putreg32(priv, 0 << ENET_MMFR_ST_SHIFT | - ENET_MMFR_OP_RdNOTMII | + ENET_MMFR_OP_RDNOTMII | (uint32_t)mmd << ENET_MMFR_RA_SHIFT | (uint32_t)phyaddr << ENET_MMFR_PA_SHIFT | 2 << ENET_MMFR_TA_SHIFT,