diff options
| author | Vignesh Raghavendra <[email protected]> | 2023-07-25 13:09:20 +0530 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-07-28 10:11:01 -0400 |
| commit | 3709b529156e910e9edfd997229296ea22d252fa (patch) | |
| tree | f75b2208a4a372b2037b2cd9f9f8510487654f56 /include/environment | |
| parent | 1e587054d4ea22be173bdba8aab7f124e6a0f790 (diff) | |
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 <[email protected]>
Signed-off-by: Manorit Chawdhry <[email protected]>
Reviewed-by: Nikhil M Jain <[email protected]>
Diffstat (limited to 'include/environment')
| -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 a052d288535..c0c8854bbd0 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} |
