U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Wadim Egorov <w.egorov@phytec.de>
To: <u-boot@lists.denx.de>, <upstream@lists.phytec.de>
Cc: <trini@konsulko.com>, <ggiordano@phytec.com>,
	<d.schultz@phytec.de>, <afd@ti.com>, <n-francis@ti.com>,
	<nmorrisson@phytec.com>, <vigneshr@ti.com>,  <s-k6@ti.com>,
	<dannenberg@ti.com>, <bb@ti.com>
Subject: [PATCH 5/8] arch: arm: mach-k3: am62a7: Probe CPSW NUSS in board_init_f()
Date: Tue, 25 Mar 2025 04:58:21 +0100	[thread overview]
Message-ID: <20250325035824.2304200-6-w.egorov@phytec.de> (raw)
In-Reply-To: <20250325035824.2304200-1-w.egorov@phytec.de>

From: Nathan Morrisson <nmorrisson@phytec.com>

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>
---
 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.34.1


  parent reply	other threads:[~2025-03-25  3:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-25  3:58 [PATCH 0/8] *** Add Ethernet boot support for AM62Ax + phyCORE-AM62 SoMs *** Wadim Egorov
2025-03-25  3:58 ` [PATCH 1/8] arm: dts: k3-am625-phyboard-lyra-rdk: Add boot phase tag to phy_gmii_sel Wadim Egorov
2025-03-27 14:03   ` Daniel Schultz
2025-03-25  3:58 ` [PATCH 2/8] configs: Add phycore_am62x_r5_ethboot_defconfig Wadim Egorov
2025-03-25  3:58 ` [PATCH 3/8] configs: phycore_am62x_a53_defconfig: Update for ethernet boot Wadim Egorov
2025-03-25  3:58 ` [PATCH 4/8] arch: arm: dts: k3-am62a7-phyboard-lyra-rdk-u-boot: Disable Ethernet2 Wadim Egorov
2025-03-25  3:58 ` Wadim Egorov [this message]
2025-03-25  3:58 ` [PATCH 6/8] arch: arm: mach-k3: r5: am62ax: Update SoC auto-gen data to enable CPSW boot Wadim Egorov
2025-03-25  3:58 ` [PATCH 7/8] board: phytec: phycore_am62ax: Share ethernet resources with boot r5 core Wadim Egorov
2025-03-25  3:58 ` [PATCH 8/8] configs: Add phycore_am62ax_r5_ethboot_defconfig Wadim Egorov
2025-04-10 22:16 ` [PATCH 0/8] *** Add Ethernet boot support for AM62Ax + phyCORE-AM62 SoMs *** Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250325035824.2304200-6-w.egorov@phytec.de \
    --to=w.egorov@phytec.de \
    --cc=afd@ti.com \
    --cc=bb@ti.com \
    --cc=d.schultz@phytec.de \
    --cc=dannenberg@ti.com \
    --cc=ggiordano@phytec.com \
    --cc=n-francis@ti.com \
    --cc=nmorrisson@phytec.com \
    --cc=s-k6@ti.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=upstream@lists.phytec.de \
    --cc=vigneshr@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox