Re: [U-Boot] [PATCH v2 2/5] NAND boot: change NAND loader's relocate SP to CONFIG param

2009-09-11 Thread Scott Wood
Mingkai Hu wrote:
 So that we can set the NAND loader's relocate stack pointer
 to the value other than the relocate address + 0x1.
 
 Signed-off-by: Mingkai Hu mingkai...@freescale.com
 ---
  board/freescale/mpc8313erdb/mpc8313erdb.c |2 +-
  board/sheldon/simpc8313/simpc8313.c   |2 +-
  include/configs/MPC8313ERDB.h |1 +
  include/configs/SIMPC8313.h   |1 +
  4 files changed, 4 insertions(+), 2 deletions(-)

Acked-by: Scott Wood scottw...@freescale.com

-Scott
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v2 2/5] NAND boot: change NAND loader's relocate SP to CONFIG param

2009-09-11 Thread Kumar Gala

On Sep 11, 2009, at 2:04 PM, Scott Wood wrote:

 Mingkai Hu wrote:
 So that we can set the NAND loader's relocate stack pointer
 to the value other than the relocate address + 0x1.

 Signed-off-by: Mingkai Hu mingkai...@freescale.com
 ---
 board/freescale/mpc8313erdb/mpc8313erdb.c |2 +-
 board/sheldon/simpc8313/simpc8313.c   |2 +-
 include/configs/MPC8313ERDB.h |1 +
 include/configs/SIMPC8313.h   |1 +
 4 files changed, 4 insertions(+), 2 deletions(-)

 Acked-by: Scott Wood scottw...@freescale.com

applied to 85xx

- k
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2 2/5] NAND boot: change NAND loader's relocate SP to CONFIG param

2009-09-10 Thread Mingkai Hu
So that we can set the NAND loader's relocate stack pointer
to the value other than the relocate address + 0x1.

Signed-off-by: Mingkai Hu mingkai...@freescale.com
---
 board/freescale/mpc8313erdb/mpc8313erdb.c |2 +-
 board/sheldon/simpc8313/simpc8313.c   |2 +-
 include/configs/MPC8313ERDB.h |1 +
 include/configs/SIMPC8313.h   |1 +
 4 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/board/freescale/mpc8313erdb/mpc8313erdb.c 
b/board/freescale/mpc8313erdb/mpc8313erdb.c
index 9ffd4bf..e5f62ae 100644
--- a/board/freescale/mpc8313erdb/mpc8313erdb.c
+++ b/board/freescale/mpc8313erdb/mpc8313erdb.c
@@ -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 + 0x1, (gd_t *)gd,
+   relocate_code(CONFIG_SYS_NAND_U_BOOT_RELOC_SP, (gd_t *)gd,
  CONFIG_SYS_NAND_U_BOOT_RELOC);
 }
 
diff --git a/board/sheldon/simpc8313/simpc8313.c 
b/board/sheldon/simpc8313/simpc8313.c
index 25e5c24..1044de2 100644
--- a/board/sheldon/simpc8313/simpc8313.c
+++ b/board/sheldon/simpc8313/simpc8313.c
@@ -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 + 0x1, (gd_t *)gd,
+   relocate_code(CONFIG_SYS_NAND_U_BOOT_RELOC_SP, (gd_t *)gd,
  CONFIG_SYS_NAND_U_BOOT_RELOC);
 }
 
diff --git a/include/configs/MPC8313ERDB.h b/include/configs/MPC8313ERDB.h
index 4bf05d2..76b7894 100644
--- a/include/configs/MPC8313ERDB.h
+++ b/include/configs/MPC8313ERDB.h
@@ -242,6 +242,7 @@
 #define CONFIG_SYS_NAND_U_BOOT_START 0x00100100
 #define CONFIG_SYS_NAND_U_BOOT_OFFS  16384
 #define CONFIG_SYS_NAND_U_BOOT_RELOC 0x0001
+#define CONFIG_SYS_NAND_U_BOOT_RELOC_SP (CONFIG_SYS_NAND_U_BOOT_RELOC + 
0x1)
 
 #define CONFIG_SYS_NAND_BR_PRELIM  ( CONFIG_SYS_NAND_BASE \
| (2BR_DECC_SHIFT)/* Use HW ECC */ \
diff --git a/include/configs/SIMPC8313.h b/include/configs/SIMPC8313.h
index b847ce8..866ff17 100644
--- a/include/configs/SIMPC8313.h
+++ b/include/configs/SIMPC8313.h
@@ -136,6 +136,7 @@
 #define CONFIG_SYS_NAND_U_BOOT_DST 0x0010
 #define CONFIG_SYS_NAND_U_BOOT_START   0x00100100
 #define CONFIG_SYS_NAND_U_BOOT_RELOC   0x0001
+#define CONFIG_SYS_NAND_U_BOOT_RELOC_SP (CONFIG_SYS_NAND_U_BOOT_RELOC + 
0x1)
 
 #define CONFIG_SYS_NAND_BR_PRELIM  ( CONFIG_SYS_NAND_BASE \
| (2BR_DECC_SHIFT)/* Use HW ECC 
*/ \
-- 
1.6.4

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot