summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Machek <pavel@denx.de>2014-09-08 14:08:45 +0200
committerMarek Vasut <marex@denx.de>2014-10-06 17:46:50 +0200
commit868749a61dcc29456c8b06748b6130de4940369b (patch)
tree93ac6271b2823e53b6032e544eebdb3405601abd
parentd5a3d3c9efc2738139b8b8a7c191b8b0d533aaa8 (diff)
downloadu-boot-imx-868749a61dcc29456c8b06748b6130de4940369b.zip
u-boot-imx-868749a61dcc29456c8b06748b6130de4940369b.tar.gz
u-boot-imx-868749a61dcc29456c8b06748b6130de4940369b.tar.bz2
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>
-rw-r--r--board/altera/socfpga/socfpga_cyclone5.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/board/altera/socfpga/socfpga_cyclone5.c b/board/altera/socfpga/socfpga_cyclone5.c
index fb92852..bc8a87c 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;
}