diff options
author | Siva Durga Prasad Paladugu | 2019-08-05 23:28:30 +0530 |
---|---|---|
committer | Michal Simek | 2019-10-08 09:11:14 +0200 |
commit | 085201c246ee37ac6cc8f7dd3ec2ad602537601e (patch) | |
tree | 0145b83124cb9969ef2ec91b59c55314f78c22ed /board/xilinx/versal | |
parent | 26e054c943a7348904a8b432fc9a85185b0861c7 (diff) |
arm64: versal: Set initrd_high to as high as possible
This patch is setting up the initrd_high to as high as possible by leaving
max stack size for u-boot so that bigger rootfs can also be loaded by
u-boot for booting kernel.
Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'board/xilinx/versal')
-rw-r--r-- | board/xilinx/versal/board.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/board/xilinx/versal/board.c b/board/xilinx/versal/board.c index a2b00aa0b66..2b4edd8738b 100644 --- a/board/xilinx/versal/board.c +++ b/board/xilinx/versal/board.c @@ -12,6 +12,7 @@ #include <dm/device.h> #include <dm/uclass.h> #include <versalpl.h> +#include <linux/sizes.h> DECLARE_GLOBAL_DATA_PTR; @@ -88,6 +89,7 @@ int board_late_init(void) const char *mode; char *new_targets; char *env_targets; + ulong initrd_hi; if (!(gd->flags & GD_FLG_ENV_DEFAULT)) { debug("Saved variables - Skipping\n"); @@ -183,6 +185,10 @@ int board_late_init(void) env_set("boot_targets", new_targets); + 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; } |