summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2016-05-17 13:58:44 +0200
committerMichal Simek <michal.simek@xilinx.com>2016-05-24 11:15:02 +0200
commited0cea7c5271cbfd37089f3a6392ba383eda06f7 (patch)
treed27c1390d9e62a9c88bd45e83e240ef4d9419832 /common
parent905bca6c2d65fc639cffdca42004602e041eb97a (diff)
mkimage: Report information about fpga
Add FIT_FPGA_PROP that user can identify an optional entry for fpga. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/image-fit.c4
-rw-r--r--common/image.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/common/image-fit.c b/common/image-fit.c
index c86b7c6b118..8a0ca2a8038 100644
--- a/common/image-fit.c
+++ b/common/image-fit.c
@@ -1483,6 +1483,10 @@ void fit_conf_print(const void *fit, int noffset, const char *p)
if (uname)
printf("%s FDT: %s\n", p, uname);
+ uname = (char *)fdt_getprop(fit, noffset, FIT_FPGA_PROP, NULL);
+ if (uname)
+ printf("%s FPGA: %s\n", p, uname);
+
/* Print out all of the specified loadables */
for (loadables_index = 0;
fdt_get_string_index(fit, noffset,
diff --git a/common/image.c b/common/image.c
index 9824685344b..ec78b7eab33 100644
--- a/common/image.c
+++ b/common/image.c
@@ -160,6 +160,7 @@ static const table_entry_t uimage_type[] = {
{ IH_TYPE_RKSPI, "rkspi", "Rockchip SPI Boot Image" },
{ IH_TYPE_ZYNQIMAGE, "zynqimage", "Xilinx Zynq Boot Image" },
{ IH_TYPE_ZYNQMPIMAGE, "zynqmpimage", "Xilinx ZynqMP Boot Image" },
+ { IH_TYPE_FPGA, "fpga", "FPGA Image" },
{ -1, "", "", },
};