]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: phytec: phycore_am64x: Use k3_mmc.env logic
authorDaniel Schultz <d.schultz@phytec.de>
Wed, 17 Jul 2024 05:11:34 +0000 (22:11 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 22 Jul 2024 19:47:57 +0000 (13:47 -0600)
Use our common environment file to implement MMC boot.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
Reviewed-by: Wadim Egorov <w.egorov@phytec.de>
board/phytec/phycore_am64x/phycore_am64x.env

index e24a958f51dcee68efd9f82c966774abaaf5af52..18f0fa5b4c37f42c928407703f29c68360988093 100644 (file)
@@ -1,3 +1,5 @@
+#include <env/phytec/k3_mmc.env>
+
 fdtaddr=0x88000000
 loadaddr=0x82000000
 scriptaddr=0x80000000
@@ -12,13 +14,3 @@ mmcroot=2
 mmcpart=1
 console=ttyS2,115200n8
 earlycon=ns16550a,mmio32,0x02800000
-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} ${fdtaddr} ${fdtfile}
-mmcboot=run mmcargs;
-       mmc dev ${mmcdev};
-       mmc rescan;
-       run loadimage;
-       run loadfdt;
-       booti ${loadaddr} - ${fdtaddr}