diff options
author | T Karthik Reddy <t.karthik.reddy@xilinx.com> | 2019-12-18 13:34:41 +0300 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2020-01-14 11:05:52 +0300 |
commit | 53c69dec331ce8a6d0c57f0daed55d82f76d4fe6 (patch) | |
tree | ba6e8a2597fd75d8e7f13db6d82910f777574de0 /include/configs/xilinx_versal.h | |
parent | 18be60b8bce2ce4ab38da6f1be9aa8f22557129e (diff) | |
download | u-boot-53c69dec331ce8a6d0c57f0daed55d82f76d4fe6.tar.xz |
board: xilinx: Add support for user configurable boot script offset
Currently "script_offset_f" env variable is hardcoded, this variable
specifies from which offset of the flash boot.scr should be read/write.
As flashes are of different sizes having a fixed offset makes it
difficult to load other images into the flash which may overwrite the
boot script or cannot utilize the full memory. This current fix
creates a new config "CONFIG_BOOT_SCRIPT_OFFSET" which holds the
offset address, overwrites the "script_offset_f" variable.
Also removed existing variable with default values, as the default
values are held by CONFIG_BOOT_SCRIPT_OFFSET
Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'include/configs/xilinx_versal.h')
-rw-r--r-- | include/configs/xilinx_versal.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/configs/xilinx_versal.h b/include/configs/xilinx_versal.h index f426127edc..dec5001b5f 100644 --- a/include/configs/xilinx_versal.h +++ b/include/configs/xilinx_versal.h @@ -92,7 +92,6 @@ "kernel_size_r=0x10000000\0" \ "scriptaddr=0x20000000\0" \ "ramdisk_addr_r=0x02100000\0" \ - "script_offset_f=0x7F80000\0" \ "script_size_f=0x80000\0" #if defined(CONFIG_MMC_SDHCI_ZYNQ) |