Commit 868749a61dcc29456c8b06748b6130de4940369b

Authored by Pavel Machek
Committed by Marek Vasut
1 parent d5a3d3c9ef

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 <pavel@denx.de>
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Chin Liang See <clsee@altera.com>
Cc: Dinh Nguyen <dinguyen@altera.com>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Cc: Tom Rini <trini@ti.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Pavel Machek <pavel@denx.de>

Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff

board/altera/socfpga/socfpga_cyclone5.c
... ... @@ -35,6 +35,10 @@
35 35 int board_init(void)
36 36 {
37 37 icache_enable();
  38 +
  39 + /* Address of boot parameters for ATAG (if ATAG is used) */
  40 + gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
  41 +
38 42 return 0;
39 43 }