u-boot/include/env/tq/spi.env
Alexander Feilke d000ce5efe board: tqma7: add code for u-boot with spl
The TQMa7x is a SoM family with a pluggable board connector based on the
i.MX7 SoCs. Add support for the SoM and its combination with our
MBa7x carrier board.

Acked-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Alexander Feilke <alexander.feilke@ew.tq-group.com>
2026-04-21 20:49:39 -03:00

28 lines
663 B
Bash

// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/*
* Copyright (c) 2024-2026 TQ-Systems GmbH <u-boot@ew.tq-group.com>,
* D-82229 Seefeld, Germany.
* Author: Max Merchel
*
* shared spi environment for TQ boards
*/
update_uboot_spi=
run check_ipaddr;
if tftp ${uboot}; then
if itest "${filesize}" >= "${uboot_spi_size}"; then
echo "ERROR: size to large ...";
exit;
fi;
echo "Write u-boot image to SPI NOR ...";
if sf probe; then
run write_uboot_spi;
fi;
fi;
#ifdef CONFIG_CMD_QSPIHDR
write_uboot_spi=qspihdr init ${loadaddr} ${filesize} safe;
#else
write_uboot_spi=sf update "${loadaddr}" "${uboot_spi_start}" "${filesize}"
#endif