Pārlūkot izejas kodu

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>
Pavel Machek 10 gadi atpakaļ
vecāks
revīzija
868749a61d
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4 0
      board/altera/socfpga/socfpga_cyclone5.c

+ 4 - 0
board/altera/socfpga/socfpga_cyclone5.c

@@ -35,5 +35,9 @@ int board_early_init_f(void)
 int board_init(void)
 int board_init(void)
 {
 {
 	icache_enable();
 	icache_enable();
+
+	/* Address of boot parameters for ATAG (if ATAG is used) */
+	gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
+
 	return 0;
 	return 0;
 }
 }