diff options
author | Vignesh Raghavendra <vigneshr@ti.com> | 2023-07-25 13:09:20 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-07-28 10:11:01 -0400 |
commit | 3709b529156e910e9edfd997229296ea22d252fa (patch) | |
tree | f75b2208a4a372b2037b2cd9f9f8510487654f56 /include | |
parent | 1e587054d4ea22be173bdba8aab7f124e6a0f790 (diff) | |
download | u-boot-3709b529156e910e9edfd997229296ea22d252fa.zip u-boot-3709b529156e910e9edfd997229296ea22d252fa.tar.gz u-boot-3709b529156e910e9edfd997229296ea22d252fa.tar.bz2 |
env: ti: mmc.env: Move mmc related args to common place
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/environment/ti/mmc.env | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/environment/ti/mmc.env b/include/environment/ti/mmc.env index a052d28..c0c8854 100644 --- a/include/environment/ti/mmc.env +++ b/include/environment/ti/mmc.env @@ -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} |