Re: [U-Boot] [PATCH 9/10] board/b4qds:Add support of 2 stage NAND boot-loader

2014-04-04 Thread Scott Wood
On Wed, 2014-04-02 at 09:29 +0530, Prabhakar Kushwaha wrote: On 4/2/2014 3:42 AM, Scott Wood wrote: On Mon, 2014-03-31 at 15:35 +0530, Prabhakar Kushwaha wrote: +void board_init_f(ulong bootflag) +{ + u32 plat_ratio, sys_clk, uart_clk; + ccsr_gur_t *gur = (void

Re: [U-Boot] [PATCH 9/10] board/b4qds:Add support of 2 stage NAND boot-loader

2014-04-01 Thread Scott Wood
On Mon, 2014-03-31 at 15:35 +0530, Prabhakar Kushwaha wrote: +void board_init_f(ulong bootflag) +{ + u32 plat_ratio, sys_clk, uart_clk; + ccsr_gur_t *gur = (void *)CONFIG_SYS_MPC85xx_GUTS_ADDR; + + /* Memcpy existing GD at CONFIG_SPL_GD_ADDR */ + memcpy((void

Re: [U-Boot] [PATCH 9/10] board/b4qds:Add support of 2 stage NAND boot-loader

2014-04-01 Thread Prabhakar Kushwaha
On 4/2/2014 3:42 AM, Scott Wood wrote: On Mon, 2014-03-31 at 15:35 +0530, Prabhakar Kushwaha wrote: +void board_init_f(ulong bootflag) +{ + u32 plat_ratio, sys_clk, uart_clk; + ccsr_gur_t *gur = (void *)CONFIG_SYS_MPC85xx_GUTS_ADDR; + + /* Memcpy existing GD at

[U-Boot] [PATCH 9/10] board/b4qds:Add support of 2 stage NAND boot-loader

2014-03-31 Thread Prabhakar Kushwaha
Add support of 2 stage NAND boot loader using SPL framework. here, PBL initialise the internal SRAM and copy SPL(160KB). This further initialise DDR using SPD and environment and copy u-boot(768 KB) from NAND to DDR. Finally SPL transer control to u-boot. Initialise/create followings required