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 <[email protected]>
---
 arch/arm/mach-stm32mp/stm32mp2/stm32mp25x.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/mach-stm32mp/stm32mp2/stm32mp25x.c 
b/arch/arm/mach-stm32mp/stm32mp2/stm32mp25x.c
index 0d199f6f903..112af61e9b9 100644
--- a/arch/arm/mach-stm32mp/stm32mp2/stm32mp25x.c
+++ b/arch/arm/mach-stm32mp/stm32mp2/stm32mp25x.c
@@ -78,6 +78,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:
-- 
2.34.1

Reply via email to