public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 1/4] board: phytec: common: k3: Add missing boot source to env
@ 2025-01-16 11:29 Daniel Schultz
  2025-01-16 11:29 ` [PATCH 2/4] configs: phycore_am64x_a53_defconfig: Fix GPIO controllers Daniel Schultz
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Daniel Schultz @ 2025-01-16 11:29 UTC (permalink / raw)
  To: w.egorov, trini, u-boot
  Cc: d-gole, n-francis, mkorpershoek, upstream, Daniel Schultz

We set the boot source as environment variable 'boot'.
Also include 'uart' and 'usbdfu' as possible boot sources.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
---
 board/phytec/common/k3/board.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/board/phytec/common/k3/board.c b/board/phytec/common/k3/board.c
index 9ff861cd3f4..ebdd5fb2abe 100644
--- a/board/phytec/common/k3/board.c
+++ b/board/phytec/common/k3/board.c
@@ -148,6 +148,12 @@ int board_late_init(void)
 	case BOOT_DEVICE_ETHERNET:
 		env_set("boot", "net");
 		break;
+	case BOOT_DEVICE_UART:
+		env_set("boot", "uart");
+		break;
+	case BOOT_DEVICE_DFU:
+		env_set("boot", "usbdfu");
+		break;
 	};
 
 	if (IS_ENABLED(CONFIG_PHYTEC_SOM_DETECTION_BLOCKS)) {
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-01-23 23:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-16 11:29 [PATCH 1/4] board: phytec: common: k3: Add missing boot source to env Daniel Schultz
2025-01-16 11:29 ` [PATCH 2/4] configs: phycore_am64x_a53_defconfig: Fix GPIO controllers Daniel Schultz
2025-01-17  1:42   ` Wadim Egorov
2025-01-16 11:29 ` [PATCH 3/4] configs: phycore_am64x_a53_defconfig: Enable GPIO command Daniel Schultz
2025-01-17  1:42   ` Wadim Egorov
2025-01-16 11:29 ` [PATCH 4/4] configs: phycore_am64x_a53_defconfig: Fix environment Daniel Schultz
2025-01-17  1:43   ` Wadim Egorov
2025-01-17  1:42 ` [PATCH 1/4] board: phytec: common: k3: Add missing boot source to env Wadim Egorov
2025-01-23 23:14 ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox