summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorJason Liu <r64343@freescale.com>2012-05-15 10:29:33 +0800
committerJustin Waters <justin.waters@timesys.com>2012-09-12 11:05:50 -0400
commit5b0aad9358729ab5627dff7b1c07a6ce98f79367 (patch)
tree3c3c91d1ffe9d818be10f094ef436d5e2b9b3956 /common
parentab381ac8d3a587dd0e35d53b4a78b38bdf4b96a6 (diff)
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>
Diffstat (limited to 'common')
-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 c9b38b524d..33f10126d7 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);