diff options
| author | Kishon Vijay Abraham I <[email protected]> | 2024-08-26 15:55:11 +0530 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-08-30 13:57:39 -0600 |
| commit | 35bddf889652081f150f60740618851b5d4817f4 (patch) | |
| tree | cafb07287b7271c710aeb94adec07db61475a0db | |
| parent | c78af987208d88a04037796b9da5f33d3aa09b46 (diff) | |
arm: mach-k3: am62x: am625_init: Probe AM65 CPSW NUSS
In order to support Ethernet boot on AM62x, probe AM65 CPSW NUSS
driver in board_init_f().
Reviewed-by: Alexander Sverdlin <[email protected]>
Signed-off-by: Kishon Vijay Abraham I <[email protected]>
Signed-off-by: Siddharth Vadapalli <[email protected]>
Signed-off-by: Chintan Vankar <[email protected]>
| -rw-r--r-- | arch/arm/mach-k3/am62x/am625_init.c | 9 |
1 files changed, 9 insertions, 0 deletions
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(); } |
