]> git.sur5r.net Git - u-boot/commitdiff
NAND boot: change NAND loader's relocate SP to CONFIG param
authorMingkai Hu <Mingkai.hu@freescale.com>
Fri, 11 Sep 2009 02:53:08 +0000 (10:53 +0800)
committerTom Rix <Tom.Rix@windriver.com>
Sat, 3 Oct 2009 14:04:28 +0000 (09:04 -0500)
So that we can set the NAND loader's relocate stack pointer
to the value other than the relocate address + 0x10000.

Signed-off-by: Mingkai Hu <Mingkai.hu@freescale.com>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
Acked-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
board/freescale/mpc8313erdb/mpc8313erdb.c
board/sheldon/simpc8313/simpc8313.c
include/configs/MPC8313ERDB.h
include/configs/SIMPC8313.h

index 9ffd4bff8729055eb36d29ba67fe2f8da05ae7ef..e5f62ae9650905835fc76e34c98ac90163353074 100644 (file)
@@ -140,7 +140,7 @@ void board_init_f(ulong bootflag)
        puts("NAND boot... ");
        init_timebase();
        initdram(0);
-       relocate_code(CONFIG_SYS_NAND_U_BOOT_RELOC + 0x10000, (gd_t *)gd,
+       relocate_code(CONFIG_SYS_NAND_U_BOOT_RELOC_SP, (gd_t *)gd,
                      CONFIG_SYS_NAND_U_BOOT_RELOC);
 }
 
index 25e5c2409dcbbc6a3c81e85596d2dc2e1aa0179b..1044de2a4713da726193d9459fb8756aede05cad 100644 (file)
@@ -112,7 +112,7 @@ void board_init_f(ulong bootflag)
        puts("NAND boot... ");
        init_timebase();
        initdram(0);
-       relocate_code(CONFIG_SYS_NAND_U_BOOT_RELOC + 0x10000, (gd_t *)gd,
+       relocate_code(CONFIG_SYS_NAND_U_BOOT_RELOC_SP, (gd_t *)gd,
                                  CONFIG_SYS_NAND_U_BOOT_RELOC);
 }
 
index 4bf05d2033616fbd3401250b057f6582befbb2f9..76b78942ba9ecb6d6a891980ec7745ef7aa932ed 100644 (file)
 #define CONFIG_SYS_NAND_U_BOOT_START 0x00100100
 #define CONFIG_SYS_NAND_U_BOOT_OFFS  16384
 #define CONFIG_SYS_NAND_U_BOOT_RELOC 0x00010000
+#define CONFIG_SYS_NAND_U_BOOT_RELOC_SP (CONFIG_SYS_NAND_U_BOOT_RELOC + 0x10000)
 
 #define CONFIG_SYS_NAND_BR_PRELIM      ( CONFIG_SYS_NAND_BASE \
                                | (2<<BR_DECC_SHIFT)    /* Use HW ECC */ \
index b847ce85db8efed583ae7959ed9bb4659e005447..866ff179e63407c5ae942b37844f4285f0a88300 100644 (file)
 #define CONFIG_SYS_NAND_U_BOOT_DST     0x00100000
 #define CONFIG_SYS_NAND_U_BOOT_START   0x00100100
 #define CONFIG_SYS_NAND_U_BOOT_RELOC   0x00010000
+#define CONFIG_SYS_NAND_U_BOOT_RELOC_SP (CONFIG_SYS_NAND_U_BOOT_RELOC + 0x10000)
 
 #define CONFIG_SYS_NAND_BR_PRELIM      ( CONFIG_SYS_NAND_BASE \
                                        | (2<<BR_DECC_SHIFT)    /* Use HW ECC */ \