diff mbox series

[2/4] xilinx: common: Get rid of initrd_high variable setup

Message ID e49fcee5bdf5c40b9736739fe9471d65808c0f4a.1597228970.git.michal.simek@xilinx.com
State Accepted
Commit 653809f43f4d1872825ca281e488b1e7b56b9e95
Delegated to: Michal Simek
Headers show
Series xilinx: common: Fix fdt/initrd_high and bootm_* variables | expand

Commit Message

Michal Simek Aug. 12, 2020, 10:42 a.m. UTC
When bootm_low/bootm_size are setup properly there is no need to setup any
initrd_high address. Location for initrd is determined through LMB.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

 board/xilinx/common/board.c | 6 ------
 1 file changed, 6 deletions(-)
diff mbox series

Patch

diff --git a/board/xilinx/common/board.c b/board/xilinx/common/board.c
index 0782d08ee3fe..901591ba2a85 100644
--- a/board/xilinx/common/board.c
+++ b/board/xilinx/common/board.c
@@ -77,14 +77,8 @@  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);
-
 	env_set_addr("bootm_low", (void *)gd->ram_base);
 	env_set_addr("bootm_size", (void *)gd->ram_size);