arm: mach-k3: am625_init: Probe AM65 CPSW NUSS for R5/A53 SPL

In order to support Ethernet boot on AM62x, probe AM65 CPSW NUSS driver
in board_init_f().

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
This commit is contained in:
Kishon Vijay Abraham I 2022-05-02 20:18:02 +05:30 committed by Praneeth Bajjuri
parent edbebb6447
commit 690ebf9f73
1 changed files with 9 additions and 0 deletions

View File

@ -192,6 +192,15 @@ void board_init_f(ulong dummy)
if (ret) if (ret)
panic("DRAM init failed: %d\n", ret); panic("DRAM init failed: %d\n", ret);
#endif #endif
if (IS_ENABLED(CONFIG_SPL_ETH_SUPPORT) && 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_GET_DRIVER(am65_cpsw_nuss),
&cpswdev))
printf("Failed to probe am65_cpsw_nuss driver\n");
}
} }
u32 spl_mmc_boot_mode(const u32 boot_device) u32 spl_mmc_boot_mode(const u32 boot_device)