From bbd4b22929ec2a82ce7776c06ed38dab8f7b941e Mon Sep 17 00:00:00 2001 From: Jukka Laitinen Date: Fri, 28 Jun 2019 08:24:59 -0600 Subject: [PATCH] arch/arm/src/stm32h7/hardware/stm32_ethernet.h: Correct ETH_MACMDIOAR. Correct the physical layer address bits in ETH_MACMDIOAR register. --- arch/arm/src/stm32h7/hardware/stm32_ethernet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/src/stm32h7/hardware/stm32_ethernet.h b/arch/arm/src/stm32h7/hardware/stm32_ethernet.h index c82dc80597..8939f301b3 100644 --- a/arch/arm/src/stm32h7/hardware/stm32_ethernet.h +++ b/arch/arm/src/stm32h7/hardware/stm32_ethernet.h @@ -302,7 +302,7 @@ #define ETH_MACMDIOAR_RDA_SHIFT (16) /* Bits 16-20: MII register */ #define ETH_MACMDIOAR_RDA_MASK (31 << ETH_MACMDIOAR_RDA_SHIFT) # define ETH_MACMDIOAR_RDA(n) ((uint32_t)(n) << ETH_MACMDIOAR_RDA_SHIFT) -#define ETH_MACMDIOAR_PA_SHIFT (11) /* Bits 11-15: PHY address */ +#define ETH_MACMDIOAR_PA_SHIFT (21) /* Bits 21-25: PHY address */ #define ETH_MACMDIOAR_PA_MASK (31 << ETH_MACMDIOAR_PA_SHIFT) # define ETH_MACMDIOAR_PA(n) ((uint32_t)(n) << ETH_MACMDIOAR_PA_SHIFT) #define ETH_MACMDIOAR_BTB (1 << 26) /* Bit 26: Back to Back transactions */