From: Pavel Machek Date: Mon, 8 Sep 2014 12:08:45 +0000 (+0200) Subject: arm: socfpga: board: Correctly set ATAG position X-Git-Tag: v2014.10-rc3~2^2~18 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=868749a61dcc29456c8b06748b6130de4940369b;p=u-boot arm: socfpga: board: Correctly set ATAG position The bi_boot_params must point to offset 0x100 in DRAM. Make it so. Signed-off-by: Pavel Machek Signed-off-by: Marek Vasut Cc: Chin Liang See Cc: Dinh Nguyen Cc: Albert Aribaud Cc: Tom Rini Cc: Wolfgang Denk Cc: Pavel Machek --- diff --git a/board/altera/socfpga/socfpga_cyclone5.c b/board/altera/socfpga/socfpga_cyclone5.c index fb92852d5f..bc8a87c648 100644 --- a/board/altera/socfpga/socfpga_cyclone5.c +++ b/board/altera/socfpga/socfpga_cyclone5.c @@ -35,5 +35,9 @@ int board_early_init_f(void) int board_init(void) { icache_enable(); + + /* Address of boot parameters for ATAG (if ATAG is used) */ + gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100; + return 0; }