diff options
-rw-r--r-- | common/image-fit.c | 4 | ||||
-rw-r--r-- | common/spl/spl_fit.c | 3 | ||||
-rw-r--r-- | include/image.h | 1 |
3 files changed, 7 insertions, 1 deletions
diff --git a/common/image-fit.c b/common/image-fit.c index 4b03390454..06b25fefc7 100644 --- a/common/image-fit.c +++ b/common/image-fit.c @@ -1610,6 +1610,10 @@ void fit_conf_print(const void *fit, int noffset, const char *p) if (uname) printf("%s Init Ramdisk: %s\n", p, uname); + uname = fdt_getprop(fit, noffset, FIT_FIRMWARE_PROP, NULL); + if (uname) + printf("%s Firmware: %s\n", p, uname); + for (fdt_index = 0; uname = fdt_stringlist_get(fit, noffset, FIT_FDT_PROP, fdt_index, NULL), uname; diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c index be92ca4b4f..9f03e2648a 100644 --- a/common/spl/spl_fit.c +++ b/common/spl/spl_fit.c @@ -395,7 +395,8 @@ int spl_load_simple_fit(struct spl_image_info *spl_image, * - fall back to using the first 'loadables' entry */ if (node < 0) - node = spl_fit_get_image_node(fit, images, "firmware", 0); + node = spl_fit_get_image_node(fit, images, FIT_FIRMWARE_PROP, + 0); #ifdef CONFIG_SPL_OS_BOOT if (node < 0) node = spl_fit_get_image_node(fit, images, FIT_KERNEL_PROP, 0); diff --git a/include/image.h b/include/image.h index a6f82aebfe..a579c5f509 100644 --- a/include/image.h +++ b/include/image.h @@ -920,6 +920,7 @@ int booti_setup(ulong image, ulong *relocated_addr, ulong *size); #define FIT_DEFAULT_PROP "default" #define FIT_SETUP_PROP "setup" #define FIT_FPGA_PROP "fpga" +#define FIT_FIRMWARE_PROP "firmware" #define FIT_MAX_HASH_LEN HASH_MAX_DIGEST_SIZE |