summaryrefslogtreecommitdiff
path: root/include/env
diff options
context:
space:
mode:
authorDaniel Schultz <d.schultz@phytec.de>2024-07-16 22:11:31 -0700
committerTom Rini <trini@konsulko.com>2024-07-22 13:47:57 -0600
commit381580e31bc53d215543088fa0ff5343efc2760d (patch)
tree94c18c75ffb0e5df9655249b17ec54e6d4863248 /include/env
parent84303dc371fb37c9cbbea124cc341db9ae3162b3 (diff)
downloadu-boot-381580e31bc53d215543088fa0ff5343efc2760d.tar.gz
u-boot-381580e31bc53d215543088fa0ff5343efc2760d.tar.bz2
u-boot-381580e31bc53d215543088fa0ff5343efc2760d.zip
include: env: phytec: Add common mmc boot for K3 SoMs
This environment include can be used to boot from a MMC device for PHYTEC's K3-based SoMs. Signed-off-by: Daniel Schultz <d.schultz@phytec.de> Reviewed-by: Wadim Egorov <w.egorov@phytec.de>
Diffstat (limited to 'include/env')
-rw-r--r--include/env/phytec/k3_mmc.env18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/env/phytec/k3_mmc.env b/include/env/phytec/k3_mmc.env
new file mode 100644
index 0000000000..e1208a6eea
--- /dev/null
+++ b/include/env/phytec/k3_mmc.env
@@ -0,0 +1,18 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright (C) 2024 PHYTEC Messtechnik GmbH
+ * Author: Daniel Schultz <d.schultz@phytec.de>
+ */
+
+/* Logic for TI K3 based SoCs to boot from a MMC device. */
+
+mmcargs=setenv bootargs console=${console} earlycon=${earlycon}
+ root=/dev/mmcblk${mmcdev}p${mmcroot} rootwait rw
+loadimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} Image
+loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr_r} ${fdtfile}
+mmcboot=run mmcargs;
+ mmc dev ${mmcdev};
+ mmc rescan;
+ run loadimage;
+ run loadfdt;
+ booti ${loadaddr} - ${fdt_addr_r}