From 2dec0fc59c55aa78ff737d3238cac6cc968348c5 Mon Sep 17 00:00:00 2001 From: Nathan Morrisson Date: Tue, 25 Mar 2025 04:58:21 +0100 Subject: [PATCH] arch: arm: mach-k3: am62a7: Probe CPSW NUSS in board_init_f() Probe CPSW NUSS in am62a7 board_init_f() to support ethernet boot. Signed-off-by: Nathan Morrisson Signed-off-by: Wadim Egorov --- arch/arm/mach-k3/am62ax/am62a7_init.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/mach-k3/am62ax/am62a7_init.c b/arch/arm/mach-k3/am62ax/am62a7_init.c index 698e6d5c587..52a21277227 100644 --- a/arch/arm/mach-k3/am62ax/am62a7_init.c +++ b/arch/arm/mach-k3/am62ax/am62a7_init.c @@ -194,6 +194,15 @@ void board_init_f(ulong dummy) setup_qos(); + if (IS_ENABLED(CONFIG_SPL_ETH) && IS_ENABLED(CONFIG_TI_AM65_CPSW_NUSS) && + spl_boot_device() == BOOT_DEVICE_ETHERNET) { + struct udevice *cpswdev; + + if (uclass_get_device_by_driver(UCLASS_MISC, DM_DRIVER_GET(am65_cpsw_nuss), + &cpswdev)) + printf("Failed to probe am65_cpsw_nuss driver\n"); + } + debug("am62a_init: %s done\n", __func__); } -- 2.39.5