]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
image: add IH_OS_ARM_TRUSTED_FIRMWARE for ARM Trusted Firmware
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Wed, 13 Sep 2017 19:29:29 +0000 (21:29 +0200)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Sat, 25 Nov 2017 23:39:06 +0000 (00:39 +0100)
To boot on ARMv8 systems with ARM Trusted Firmware, we need to
assemble an ATF-specific parameter structure and also provide the
address of the images started by ATF (e.g. BL3-3, which may be the
full U-Boot).

To allow us to identify an ARM Trusted Firmware contained in a FIT
image, this adds the necessary definitions.

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/image.c
include/image.h

index 06fdca129cafd88f50bef35e4ae509985d961228..4ec4744589f21dee4d3a3fa3401d42129c3e1d63 100644 (file)
@@ -95,6 +95,7 @@ static const table_entry_t uimage_arch[] = {
 
 static const table_entry_t uimage_os[] = {
        {       IH_OS_INVALID,  "invalid",      "Invalid OS",           },
+       {       IH_OS_ARM_TRUSTED_FIRMWARE, "arm-trusted-firmware", "ARM Trusted Firmware"  },
        {       IH_OS_LINUX,    "linux",        "Linux",                },
 #if defined(CONFIG_LYNXKDI) || defined(USE_HOSTCC)
        {       IH_OS_LYNXOS,   "lynxos",       "LynxOS",               },
index 127cfc514892929c650f4dfef988b8ecb535a4b7..e9c18ce40357fb27320eb29a01e684f424ffb333 100644 (file)
@@ -152,6 +152,7 @@ enum {
        IH_OS_OSE,                      /* OSE          */
        IH_OS_PLAN9,                    /* Plan 9       */
        IH_OS_OPENRTOS,         /* OpenRTOS     */
+       IH_OS_ARM_TRUSTED_FIRMWARE,     /* ARM Trusted Firmware */
 
        IH_OS_COUNT,
 };