arm: stm32mp25: add ethernet support for stm32mp255 series
authorAsadeds <md.asadullah@eds-india.com>
Tue, 28 Oct 2025 05:39:26 +0000 (11:09 +0530)
committerTom Rini <trini@konsulko.com>
Mon, 17 Nov 2025 16:44:19 +0000 (10:44 -0600)
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@eds-india.com>
arch/arm/mach-stm32mp/stm32mp2/stm32mp25x.c

index 12b43ea..bf1f3d3 100644 (file)
@@ -77,6 +77,14 @@ int get_eth_nb(void)
        case CPU_STM32MP257Axx:
                nb_eth = 5; /* dual ETH with TSN support */
                break;
+       case CPU_STM32MP255Fxx:
+               fallthrough;
+       case CPU_STM32MP255Dxx:
+               fallthrough;
+       case CPU_STM32MP255Cxx:
+               fallthrough;
+       case CPU_STM32MP255Axx:
+               fallthrough;
        case CPU_STM32MP253Fxx:
                fallthrough;
        case CPU_STM32MP253Dxx: