summaryrefslogtreecommitdiff
path: root/lib_ppc/bootm.c
diff options
context:
space:
mode:
authorMarian Balakowicz <m8@semihalf.com>2008-02-21 17:20:19 +0100
committerMarian Balakowicz <m8@semihalf.com>2008-02-21 17:20:19 +0100
commitfff888a1997ff7de9b29e24050fc4a0fd403ba16 (patch)
treeb78ae8fa3cda983eac6f4501fbde79b5fab27ccf /lib_ppc/bootm.c
parent75d3e8fbd93c14d9929d024c75af2d742c76db70 (diff)
downloadu-boot-imx-fff888a1997ff7de9b29e24050fc4a0fd403ba16.zip
u-boot-imx-fff888a1997ff7de9b29e24050fc4a0fd403ba16.tar.gz
u-boot-imx-fff888a1997ff7de9b29e24050fc4a0fd403ba16.tar.bz2
[new uImage] Add gen_get_image() routine
This routine assures that image (whether legacy or FIT) is not in a special dataflash storage. If image address is a dataflash address image is moved to system RAM. Signed-off-by: Marian Balakowicz <m8@semihalf.com>
Diffstat (limited to 'lib_ppc/bootm.c')
-rw-r--r--lib_ppc/bootm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib_ppc/bootm.c b/lib_ppc/bootm.c
index 69ec459..04a9665 100644
--- a/lib_ppc/bootm.c
+++ b/lib_ppc/bootm.c
@@ -234,6 +234,11 @@ static ulong get_fdt (ulong alloc_current,
if(argc > 3) {
fdt = (char *)simple_strtoul (argv[3], NULL, 16);
+
+ debug ("## Checking for 'FDT'/'FDT image' at %08lx\n", fdt);
+
+ /* copy from dataflash if needed */
+ fdt = (char *)gen_get_image ((ulong)fdt);
fdt_hdr = (image_header_t *)fdt;
if (fdt_check_header (fdt) == 0) {