summaryrefslogtreecommitdiff
path: root/common/spl/spl_fit.c
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2021-05-27 12:40:09 +0300
committerMichal Simek <michal.simek@xilinx.com>2021-06-23 10:48:36 +0300
commitbe2d1a87c73b3f722fc5b0438d780014579a43de (patch)
treeb4cc0298b7829ebe80ee01e9400613393bf17893 /common/spl/spl_fit.c
parent3972ae65e43ad3a2a4f4c96cdaab5ca1863fe234 (diff)
downloadu-boot-be2d1a87c73b3f722fc5b0438d780014579a43de.tar.xz
spl: fit: Also record architecture in /fit-images
On ARM64 secure OS can run as 64bit or 32bit that's why it is necessary to record information about architecture that other code can read it and properly pass it to TF-A and start in 64bit or 32bit mode. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/spl/spl_fit.c')
-rw-r--r--common/spl/spl_fit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c
index caddf51196..f6c475315e 100644
--- a/common/spl/spl_fit.c
+++ b/common/spl/spl_fit.c
@@ -480,7 +480,8 @@ static int spl_fit_record_loadable(const struct spl_fit_info *ctx, int index,
ret = fdt_record_loadable(blob, index, name, image->load_addr,
image->size, image->entry_point,
fdt_getprop(ctx->fit, node, "type", NULL),
- fdt_getprop(ctx->fit, node, "os", NULL));
+ fdt_getprop(ctx->fit, node, "os", NULL),
+ fdt_getprop(ctx->fit, node, "arch", NULL));
return ret;
}