[PATCH] arm: stm32mp25: add ethernet support for stm32mp255 series
Asadeds
md.asadullah at eds-india.com
Wed Oct 8 08:36:23 CEST 2025
Add missing CPU_STM32MP255* cases in get_eth_nb() so that U-Boot
correctly reports 2 Ethernet interfaces on stm32mp255 devices.
This fixes the "ethernet not found" error during boot.
Signed-off-by: Md Asadullah <md.asadullah at eds-india.com>
---
arch/arm/mach-stm32mp/stm32mp2/stm32mp25x.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm/mach-stm32mp/stm32mp2/stm32mp25x.c b/arch/arm/mach-stm32mp/stm32mp2/stm32mp25x.c
index 0d199f6f903..48b452f01b1 100644
--- a/arch/arm/mach-stm32mp/stm32mp2/stm32mp25x.c
+++ b/arch/arm/mach-stm32mp/stm32mp2/stm32mp25x.c
@@ -78,6 +78,16 @@ int get_eth_nb(void)
case CPU_STM32MP257Axx:
nb_eth = 5; /* dual ETH with TSN support */
break;
+ case CPU_STM32MP255Dxx:
+ fallthrough;
+ case CPU_STM32MP255Axx:
+ fallthrough;
+ case CPU_STM32MP255Cxx:
+ fallthrough;
+ case CPU_STM32MP255Fxx:
+ fallthrough;
+ nb_eth = 2;
+ break;
case CPU_STM32MP253Fxx:
fallthrough;
case CPU_STM32MP253Dxx:
--
2.34.1
More information about the U-Boot
mailing list