+/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Copyright (C) 2016 NXP Semiconductors
*
* Configuration settings for the i.MX7S Warp board.
- *
- * SPDX-License-Identifier: GPL-2.0+
*/
#ifndef __WARP7_CONFIG_H
#define __WARP7_CONFIG_H
#include "mx7_common.h"
+#include <imximage.h>
#define PHYS_SDRAM_SIZE SZ_512M
"finduuid=part uuid mmc 0:${rootpart} uuid\0" \
"mmcargs=setenv bootargs console=${console},${baudrate} " \
"root=PARTUUID=${uuid} rootwait rw\0" \
+ "ivt_offset=" __stringify(BOOTROM_IVT_HDR_OFFSET)"\0"\
+ "warp7_auth_or_fail=hab_auth_img_or_fail ${hab_ivt_addr} ${filesize} 0;\0" \
+ "do_bootscript_hab=" \
+ "if test ${hab_enabled} -eq 1; then " \
+ "setexpr hab_ivt_addr ${loadaddr} - ${ivt_offset}; " \
+ "setenv script ${script_signed}; " \
+ "load mmc ${mmcdev}:${mmcpart} ${hab_ivt_addr} ${script}; " \
+ "run warp7_auth_or_fail; " \
+ "run bootscript; "\
+ "fi;\0" \
"loadbootscript=" \
"load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};\0" \
"bootscript=echo Running bootscript from mmc ...; " \
#define CONFIG_BOOTCOMMAND \
"mmc dev ${mmcdev};" \
"mmc dev ${mmcdev}; if mmc rescan; then " \
+ "run do_bootscript_hab;" \
"if run loadbootscript; then " \
"run bootscript; " \
"else " \