[PATCH v6 07/11] arm: mach-k3: am62x: am625_init: Probe AM65 CPSW NUSS
Chintan Vankar
c-vankar at ti.com
Mon Aug 26 12:25:11 CEST 2024
From: Kishon Vijay Abraham I <kishon at ti.com>
In order to support Ethernet boot on AM62x, probe AM65 CPSW NUSS
driver in board_init_f().
Reviewed-by: Alexander Sverdlin <alexander.sverdlin at siemens.com>
Signed-off-by: Kishon Vijay Abraham I <kishon at ti.com>
Signed-off-by: Siddharth Vadapalli <s-vadapalli at ti.com>
Signed-off-by: Chintan Vankar <c-vankar at ti.com>
---
Link to v5:
https://lore.kernel.org/r/20240813105400.4054657-7-c-vankar@ti.com/
Changes from v5 to v6:
- Added Reviewed-by tag from Alexander Sverdlin.
arch/arm/mach-k3/am62x/am625_init.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm/mach-k3/am62x/am625_init.c b/arch/arm/mach-k3/am62x/am625_init.c
index 72a752d38e8..595fc391ac5 100644
--- a/arch/arm/mach-k3/am62x/am625_init.c
+++ b/arch/arm/mach-k3/am62x/am625_init.c
@@ -282,6 +282,15 @@ void board_init_f(ulong dummy)
}
spl_enable_cache();
+ 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");
+ }
+
fixup_a53_cpu_freq_by_speed_grade();
}
--
2.34.1
More information about the U-Boot
mailing list