diff options
author | Michal Simek | 2021-05-27 11:40:09 +0200 |
---|---|---|
committer | Michal Simek | 2021-06-23 09:48:36 +0200 |
commit | be2d1a87c73b3f722fc5b0438d780014579a43de (patch) | |
tree | b4cc0298b7829ebe80ee01e9400613393bf17893 /include/fdt_support.h | |
parent | 3972ae65e43ad3a2a4f4c96cdaab5ca1863fe234 (diff) |
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 'include/fdt_support.h')
-rw-r--r-- | include/fdt_support.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/fdt_support.h b/include/fdt_support.h index 1e4dbc0a8f6..f6f46bb8e9c 100644 --- a/include/fdt_support.h +++ b/include/fdt_support.h @@ -160,11 +160,12 @@ static inline void fdt_fixup_crypto_node(void *blob, int sec_rev) {} * @param entry_point entry point (if specified, otherwise pass -1) * @param type type (if specified, otherwise pass NULL) * @param os os-type (if specified, otherwise pass NULL) + * @param arch architecture (if specified, otherwise pass NULL) * @return 0 if ok, or -1 or -FDT_ERR_... on error */ int fdt_record_loadable(void *blob, u32 index, const char *name, uintptr_t load_addr, u32 size, uintptr_t entry_point, - const char *type, const char *os); + const char *type, const char *os, const char *arch); #ifdef CONFIG_PCI #include <pci.h> |