diff options
author | Michal Simek <michal.simek@xilinx.com> | 2020-04-08 10:51:36 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2020-04-27 13:57:18 +0200 |
commit | a29511eeca5f00e31653af28b9f758cf39e001fc (patch) | |
tree | dbcd78f981ab20e14e3b18053a3ed4089763f6b2 /board/xilinx/common/board.c | |
parent | 783814288b28cc6d63117c15b5755f6396f0c799 (diff) |
xilinx: Move initrd_high setup to common location
Moving to common location initrd_high is also setup for Zynq which hasn't
done in run time code.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'board/xilinx/common/board.c')
-rw-r--r-- | board/xilinx/common/board.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/board/xilinx/common/board.c b/board/xilinx/common/board.c index 7c191e53fb..294a59df77 100644 --- a/board/xilinx/common/board.c +++ b/board/xilinx/common/board.c @@ -8,6 +8,7 @@ #include <asm/sections.h> #include <dm/uclass.h> #include <i2c.h> +#include <linux/sizes.h> #include "board.h" int zynq_board_read_rom_ethaddr(unsigned char *ethaddr) @@ -75,7 +76,13 @@ void *board_fdt_blob_setup(void) int board_late_init_xilinx(void) { + ulong initrd_hi; + env_set_hex("script_offset_f", CONFIG_BOOT_SCRIPT_OFFSET); + initrd_hi = gd->start_addr_sp - CONFIG_STACK_SIZE; + initrd_hi = round_down(initrd_hi, SZ_16M); + env_set_addr("initrd_high", (void *)initrd_hi); + return 0; } |