summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schultz <d.schultz@phytec.de>2025-01-16 03:29:29 -0800
committerTom Rini <trini@konsulko.com>2025-01-23 12:11:50 -0600
commitb2a04cd075c044df22dc1e7a90b7c38d6b3d888f (patch)
treea15961b6e3d8ec99a0625ec0dfe3c0f3716d70bc
parentd87a706b9b0ee085367032c161bce276f2bc6d07 (diff)
board: phytec: common: k3: Add missing boot source to env
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> Reviewed-by: Wadim Egorov <w.egorov@phytec.de>
-rw-r--r--board/phytec/common/k3/board.c6
1 files changed, 6 insertions, 0 deletions
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)) {