summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Liu <r64343@freescale.com>2012-05-15 10:29:33 +0800
committerJason Liu <r64343@freescale.com>2012-05-15 20:27:34 +0800
commita043cca6353e6e8eb1f55fa1f853b1837a0e5a5f (patch)
tree3c3c91d1ffe9d818be10f094ef436d5e2b9b3956
parent2bb05eaa651cb22a6d2fceada7082b192aa7daf2 (diff)
downloadu-boot-imx-a043cca6353e6e8eb1f55fa1f853b1837a0e5a5f.zip
u-boot-imx-a043cca6353e6e8eb1f55fa1f853b1837a0e5a5f.tar.gz
u-boot-imx-a043cca6353e6e8eb1f55fa1f853b1837a0e5a5f.tar.bz2
ENGR00209306 i.mx6:i.mx6sl: fixup the load address for i.mx6sl uImage
In order to support one uImage for the i.mx6 soc family, the bootloader must need fix up the load/entry address by adding the offset 0x70000000 for MX6SL parts due to the ddr physical address start from 0x80000000 on MX6SL,but 0x10000000 for the soc other than i.mx6sl Signed-off-by: Jason Liu <r64343@freescale.com>
-rw-r--r--common/cmd_bootm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
index c9b38b5..33f1012 100644
--- a/common/cmd_bootm.c
+++ b/common/cmd_bootm.c
@@ -734,6 +734,12 @@ static image_header_t *image_get_kernel (ulong img_addr, int verify)
if (image_get_ep(hdr) < 0x90000000)
image_set_ep(hdr, image_get_ep(hdr)+0x20000000);
#endif
+#if defined(CONFIG_MX6SL)
+ if (image_get_load(hdr) < 0x80000000)
+ image_set_load(hdr, image_get_load(hdr)+0x70000000);
+ if (image_get_ep(hdr) < 0x80000000)
+ image_set_ep(hdr, image_get_ep(hdr)+0x70000000);
+#endif
show_boot_progress (3);
image_print_contents (hdr);