]> git.sur5r.net Git - u-boot/commitdiff
spl: add a fdt_addr field to spl_image_info
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Wed, 13 Sep 2017 19:29:30 +0000 (21:29 +0200)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Sat, 25 Nov 2017 23:39:06 +0000 (00:39 +0100)
When loading a full U-Boot with detached device-tree using the SPL FIT
backend, we should store the address of the FDT loaded as part of the
SPL image info: this allows us to fixup the FDT with additional info
we may want to propagate onward.

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

index b14a29c57cc46c91e78b36025f555ce11bec0518..1ac97188a3b381414e7110d4fa3dc6e3b1374280 100644 (file)
@@ -25,6 +25,9 @@ struct spl_image_info {
        u8 os;
        ulong load_addr;
        ulong entry_point;
+#if CONFIG_IS_ENABLED(LOAD_FIT)
+       void *fdt_addr;
+#endif
        u32 size;
        u32 flags;
        void *arg;