Re: [U-Boot] [PATCH 3/7] Add support for SRAM Boot

2010-08-17 Thread Haiying Wang
On Mon, 2010-16-08 at 12:23 +0200, Wolfgang Denk wrote: Dear Haiying Wang, In message 1281945897.24612.17.ca...@localhost.localdomain you wrote: Once CONFIG_MIDDLE_STAGE_SRAM_BOOT is defined, CONFIG_SRAM_BOOT is enabled to generate u-boot-sram.bin which will run in the l2/l3 sram. This

Re: [U-Boot] [PATCH 3/7] Add support for SRAM Boot

2010-08-17 Thread Wolfgang Denk
Dear Haiying Wang, In message 1282024011.2814.61.ca...@localhost.localdomain you wrote: Makefile | 18 ++- arch/powerpc/cpu/mpc85xx/cpu_init_nand.c | 31 +++- arch/powerpc/cpu/mpc85xx/sram_boot/Makefile| 190

Re: [U-Boot] [PATCH 3/7] Add support for SRAM Boot

2010-08-17 Thread Scott Wood
On Tue, 17 Aug 2010 11:20:00 +0200 Wolfgang Denk w...@denx.de wrote: In message 1282024011.2814.61.ca...@localhost.localdomain you wrote: For this case, I need to call some functions like getenv, hwconfig, printf, strcmp etc. which are needed in ddr spd code, but I don't want I think this

Re: [U-Boot] [PATCH 3/7] Add support for SRAM Boot

2010-08-17 Thread Wolfgang Denk
Dear Scott Wood, In message 20100817131904.5703f...@schlenkerla.am.freescale.net you wrote: ...but take this entire subsystem as is or go without anything vaguely resembling this code, lest it be called 'duplication' is a rather limiting pair of choices. It seems reasonable to refactor

[U-Boot] [PATCH 3/7] Add support for SRAM Boot

2010-08-16 Thread Haiying Wang
Once CONFIG_MIDDLE_STAGE_SRAM_BOOT is defined, CONFIG_SRAM_BOOT is enabled to generate u-boot-sram.bin which will run in the l2/l3 sram. This middle stage uboot will init ddr sdram with ddr spd code and load the final uboot image to ddr and start from there. It is useful for the silicons which

Re: [U-Boot] [PATCH 3/7] Add support for SRAM Boot

2010-08-16 Thread Wolfgang Denk
Dear Haiying Wang, In message 1281945897.24612.17.ca...@localhost.localdomain you wrote: Once CONFIG_MIDDLE_STAGE_SRAM_BOOT is defined, CONFIG_SRAM_BOOT is enabled to generate u-boot-sram.bin which will run in the l2/l3 sram. This middle stage uboot will init ddr sdram with ddr spd code and

Re: [U-Boot] [PATCH 3/7] Add support for SRAM Boot

2010-08-16 Thread Scott Wood
On Mon, Aug 16, 2010 at 12:23:56PM +0200, Wolfgang Denk wrote: Signed-off-by: Haiying Wang haiying.w...@freescale.com --- Makefile | 18 ++- arch/powerpc/cpu/mpc85xx/cpu_init_nand.c | 31 +++-