blob: 3d3595ceb7e8e63ee20abe447a47a986c1f3af4f [file] [log] [blame]
Daniel Schultzd0039d32024-07-16 22:11:31 -07001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright (C) 2024 PHYTEC Messtechnik GmbH
4 * Author: Daniel Schultz <d.schultz@phytec.de>
5 */
6
7/* Logic for TI K3 based SoCs to boot from a MMC device. */
8
Daniel Schultz4d7437c2024-07-16 22:11:32 -07009#include <env/phytec/overlays.env>
10
Daniel Schultzd0039d32024-07-16 22:11:31 -070011mmcargs=setenv bootargs console=${console} earlycon=${earlycon}
12 root=/dev/mmcblk${mmcdev}p${mmcroot} rootwait rw
13loadimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} Image
14loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdt_addr_r} ${fdtfile}
15mmcboot=run mmcargs;
16 mmc dev ${mmcdev};
17 mmc rescan;
18 run loadimage;
19 run loadfdt;
Daniel Schultz4d7437c2024-07-16 22:11:32 -070020 run mmc_apply_overlays;
Daniel Schultzd0039d32024-07-16 22:11:31 -070021 booti ${loadaddr} - ${fdt_addr_r}