microblaze: Set script_offset_nor env variable
Set script_offset_nor env variable using CONFIG_BOOT_SCRIPT_OFFSET and nor flash start address to keep bootscript offset configurable. Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
2d381d2fe2
commit
5766429b7c
1 changed files with 4 additions and 1 deletions
|
@ -67,7 +67,10 @@ int board_late_init(void)
|
|||
|
||||
status |= env_set_hex("ramdisk_addr_r",
|
||||
gd->ram_base + SZ_32M + SZ_4M + SZ_2M);
|
||||
|
||||
if (IS_ENABLED(CONFIG_MTD_NOR_FLASH))
|
||||
status |= env_set_hex("script_offset_nor",
|
||||
gd->bd->bi_flashstart +
|
||||
CONFIG_BOOT_SCRIPT_OFFSET);
|
||||
if (status)
|
||||
printf("%s: Saving run time variables FAILED\n", __func__);
|
||||
|
||||
|
|
Loading…
Reference in a new issue