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 <nmorrisson@phytec.com> Signed-off-by: Wadim Egorov <w.egorov@phytec.de>
This commit is contained in:

committed by
Tom Rini

parent
77183dfbbc
commit
2dec0fc59c
@@ -194,6 +194,15 @@ void board_init_f(ulong dummy)
|
|||||||
|
|
||||||
setup_qos();
|
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__);
|
debug("am62a_init: %s done\n", __func__);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user