[U-Boot] [PATCH 3/9] fit: Add standalone image type handling

Marek Vasut marex at denx.de
Thu Dec 28 12:06:15 UTC 2017


Just add IH_TYPE_STANDALONE to fit_get_image_type_property().

Signed-off-by: Marek Vasut <marex at denx.de>
Cc: Pantelis Antoniou <pantelis.antoniou at konsulko.com>
Cc: Simon Glass <sjg at chromium.org>
---
 common/image-fit.c | 2 ++
 include/image.h    | 1 +
 2 files changed, 3 insertions(+)

diff --git a/common/image-fit.c b/common/image-fit.c
index f0e713d88f..8871e2dcd3 100644
--- a/common/image-fit.c
+++ b/common/image-fit.c
@@ -1699,6 +1699,8 @@ static const char *fit_get_image_type_property(int type)
 		return FIT_LOADABLE_PROP;
 	case IH_TYPE_FPGA:
 		return FIT_FPGA_PROP;
+	case IH_TYPE_STANDALONE:
+		return FIT_STANDALONE_PROP;
 	}
 
 	return "unknown";
diff --git a/include/image.h b/include/image.h
index a128a623e5..82799fc512 100644
--- a/include/image.h
+++ b/include/image.h
@@ -907,6 +907,7 @@ int bootz_setup(ulong image, ulong *start, ulong *end);
 #define FIT_DEFAULT_PROP	"default"
 #define FIT_SETUP_PROP		"setup"
 #define FIT_FPGA_PROP		"fpga"
+#define FIT_STANDALONE_PROP	"standalone"
 
 #define FIT_MAX_HASH_LEN	HASH_MAX_DIGEST_SIZE
 
-- 
2.15.0



More information about the U-Boot mailing list