summaryrefslogtreecommitdiff
path: root/common/cmd_bootm.c
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2008-08-15 08:24:39 -0500
committerWolfgang Denk <wd@denx.de>2008-08-26 23:37:54 +0200
commit54f9c86691309b2f919f567f9255b8bcad2c7651 (patch)
tree80d5b034600494cdbbbac4a3fba2a78487e052cd /common/cmd_bootm.c
parent06a09918f3903450313e2047a9cc258bf5872f46 (diff)
downloadu-boot-imx-54f9c86691309b2f919f567f9255b8bcad2c7651.zip
u-boot-imx-54f9c86691309b2f919f567f9255b8bcad2c7651.tar.gz
u-boot-imx-54f9c86691309b2f919f567f9255b8bcad2c7651.tar.bz2
bootm: Set working fdt address as part of the bootm flow
Set the fdt working address so "fdt FOO" commands can be used as part of the bootm flow. Also set an the environment variable "fdtaddr" with the value. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'common/cmd_bootm.c')
-rw-r--r--common/cmd_bootm.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
index 9a745f1..022cef8 100644
--- a/common/cmd_bootm.c
+++ b/common/cmd_bootm.c
@@ -44,6 +44,12 @@
#include <hush.h>
#endif
+#if defined(CONFIG_OF_LIBFDT)
+#include <fdt.h>
+#include <libfdt.h>
+#include <fdt_support.h>
+#endif
+
DECLARE_GLOBAL_DATA_PTR;
extern int gunzip (void *dst, int dstlen, unsigned char *src, unsigned long *lenp);
@@ -267,6 +273,8 @@ int do_bootm (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
puts ("Could not find a valid device tree\n");
return 1;
}
+
+ set_working_fdt_addr(images.ft_addr);
#endif
}