]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: phytec: phycore_am62x: Use k3_mmc.env logic
authorDaniel Schultz <d.schultz@phytec.de>
Wed, 17 Jul 2024 05:11:33 +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: Dhruva Gole <d-gole@ti.com>
Reviewed-by: Wadim Egorov <w.egorov@phytec.de>
board/phytec/phycore_am62x/phycore_am62x.env

index 2d6475d408f131fb4a4fedc3190e3cd7198fae82..046bbd22f25ab6773b09b3f0892c51f78bad7205 100644 (file)
@@ -1,4 +1,5 @@
 #include <env/ti/k3_dfu.env>
+#include <env/phytec/k3_mmc.env>
 
 fdtaddr=0x88000000
 loadaddr=0x82000000
@@ -14,13 +15,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}