]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
env: ti: mmc.env: Move mmc related args to common place
authorVignesh Raghavendra <vigneshr@ti.com>
Tue, 25 Jul 2023 07:39:20 +0000 (13:09 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 28 Jul 2023 14:11:01 +0000 (10:11 -0400)
All K3 SoCs use same set of args to load kernel for MMC. So move this to
common place to avoid duplication.

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>
Reviewed-by: Nikhil M Jain <n-jain1@ti.com>
board/ti/am62x/am62x.env
board/ti/am64x/am64x.env
board/ti/am65x/am65x.env
board/ti/j721e/j721e.env
board/ti/j721s2/j721s2.env
include/environment/ti/mmc.env

index 0901a8536da5c41643882aa2205fec6803d191f7..bb37d21de61b1742ebd3fe2df43a09a5293cb87d 100644 (file)
@@ -16,20 +16,6 @@ mmcdev=1
 bootpart=1:2
 bootdir=/boot
 rd_spec=-
-init_mmc=run args_all args_mmc
-get_overlay_mmc=
-       fdt address ${fdtaddr};
-       fdt resize 0x100000;
-       for overlay in $name_overlays;
-       do;
-       load mmc ${bootpart} ${dtboaddr} ${bootdir}/${overlay} &&
-       fdt apply ${dtboaddr};
-       done;
-get_kern_mmc=load mmc ${bootpart} ${loadaddr}
-       ${bootdir}/${name_kern}
-get_fit_mmc=load mmc ${bootpart} ${addr_fit}
-       ${bootdir}/${name_fit}
-partitions=name=rootfs,start=0,size=-,uuid=${uuid_gpt_rootfs}
 
 splashfile=ti.gz
 splashimage=0x80200000
index 015f63a66c71b3beaabd649fceed85bc0ab178e3..ecb07366fc8abd39ea0a3b1308e8917775e820de 100644 (file)
@@ -20,20 +20,6 @@ mmcdev=1
 bootpart=1:2
 bootdir=/boot
 rd_spec=-
-init_mmc=run args_all args_mmc
-get_overlay_mmc=
-       fdt address ${fdtaddr};
-       fdt resize 0x100000;
-       for overlay in $name_overlays;
-       do;
-       load mmc ${bootpart} ${dtboaddr} ${bootdir}/${overlay} &&
-       fdt apply ${dtboaddr};
-       done;
-get_kern_mmc=load mmc ${bootpart} ${loadaddr}
-       ${bootdir}/${name_kern}
-get_fit_mmc=load mmc ${bootpart} ${addr_fit}
-       ${bootdir}/${name_fit}
-partitions=name=rootfs,start=0,size=-,uuid=${uuid_gpt_rootfs}
 
 args_usb=run finduuid;setenv bootargs console=${console}
        ${optargs}
index d7130cc3f7df642e603aa949599475c370f8fb88..036f4752835a5c21dece4fe8a61988c1ecc70012 100644 (file)
@@ -19,20 +19,6 @@ mmcdev=1
 bootpart=1:2
 bootdir=/boot
 rd_spec=-
-init_mmc=run args_all args_mmc
-get_overlay_mmc=
-       fdt address ${fdtaddr};
-       fdt resize 0x100000;
-       for overlay in $name_overlays;
-       do;
-       load mmc ${bootpart} ${dtboaddr} ${bootdir}/${overlay} &&
-       fdt apply ${dtboaddr};
-       done;
-get_kern_mmc=load mmc ${bootpart} ${loadaddr}
-       ${bootdir}/${name_kern}
-get_fit_mmc=load mmc ${bootpart} ${addr_fit}
-       ${bootdir}/${name_fit}
-partitions=name=root,start=0,size=-,uuid=${uuid_gpt_rootfs}
 
 init_ubi=
     run args_all args_ubi;
index 23ce7e1af7462eae8ea06d82b732c37a44107e91..f7a4880bf8351211c79a8c1d695eb648bb699e5c 100644 (file)
@@ -36,21 +36,6 @@ mmcdev=1
 bootpart=1:2
 bootdir=/boot
 rd_spec=-
-init_mmc=run args_all args_mmc
-get_overlay_mmc=
-       fdt address ${fdtaddr};
-       fdt resize 0x100000;
-       for overlay in $name_overlays;
-       do;
-       load mmc ${bootpart} ${dtboaddr} ${bootdir}/${overlay} &&
-       fdt apply ${dtboaddr};
-       done;
-partitions=uuid_disk=${uuid_gpt_disk};
-       name=rootfs,start=0,size=-,uuid=${uuid_gpt_rootfs}
-get_kern_mmc=load mmc ${bootpart} ${loadaddr}
-       ${bootdir}/${name_kern}
-get_fit_mmc=load mmc ${bootpart} ${addr_fit}
-       ${bootdir}/${name_fit}
 
 #if CONFIG_TARGET_J7200_A72_EVM
 do_main_cpsw0_qsgmii_phyinit=1
index 9464fe49903772add1fbf85dac1a9bc1dd6ebb6a..2ec652dbdd3e636e3fc789e1ddf0a629eff5e012 100644 (file)
@@ -30,23 +30,6 @@ addr_mcur5f0_0load=0x89000000
 name_mcur5f0_0fw=/lib/firmware/j7-mcu-r5f0_0-fw
 #endif
 rd_spec=-
-init_mmc=run args_all args_mmc
-get_overlay_mmc=
-       fdt address ${fdtaddr};
-       fdt resize 0x100000;
-       for overlay in $name_overlays;
-       do;
-       load mmc ${bootpart} ${dtboaddr} ${bootdir}/${overlay} &&
-       fdt apply ${dtboaddr};
-       done;
-partitions=uuid_disk=${uuid_gpt_disk};
-       name=rootfs,start=0,size=-,uuid=${uuid_gpt_rootfs}
-get_kern_mmc=load mmc ${bootpart} ${loadaddr}
-       ${bootdir}/${name_kern}
-get_fit_mmc=load mmc ${bootpart} ${addr_fit}
-       ${bootdir}/${name_fit}
-partitions=uuid_disk=${uuid_gpt_disk};
-       name=rootfs,start=0,size=-,uuid=${uuid_gpt_rootfs}
 
 rproc_fw_binaries= 2 /lib/firmware/j721s2-main-r5f0_0-fw 3 /lib/firmware/j721s2-main-r5f0_1-fw 4 /lib/firmware/j721s2-main-r5f1_0-fw 5 /lib/firmware/j721s2-main-r5f1_1-fw 6 /lib/firmware/j721s2-c71_0-fw 7 /lib/firmware/j721s2-c71_1-fw
 
index a052d288535e3e2c4385e34ec096f92072c3a720..c0c8854bbd00293dfd66c1f586c1ee0b8e16fde7 100644 (file)
@@ -60,3 +60,17 @@ mmcboot=mmc dev ${mmcdev};
                fi;
 fi;
 
+init_mmc=run args_all args_mmc
+get_overlay_mmc=
+       fdt address ${fdtaddr};
+       fdt resize 0x100000;
+       for overlay in $name_overlays;
+       do;
+       load mmc ${bootpart} ${dtboaddr} ${bootdir}/${overlay} &&
+       fdt apply ${dtboaddr};
+       done;
+get_kern_mmc=load mmc ${bootpart} ${loadaddr}
+       ${bootdir}/${name_kern}
+get_fit_mmc=load mmc ${bootpart} ${addr_fit}
+       ${bootdir}/${name_fit}
+partitions=name=rootfs,start=0,size=-,uuid=${uuid_gpt_rootfs}