]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sifive: fu540: Add boot flash script offset, size
authorJagan Teki <jagan@amarulasolutions.com>
Wed, 15 Jul 2020 10:09:02 +0000 (15:39 +0530)
committerAndes <uboot@andestech.com>
Fri, 24 Jul 2020 06:55:19 +0000 (14:55 +0800)
HiFive-Unleashed-A00 has SPI flash with 32MiB size.
So, let's use the script offset at the end of 4K.
This way it cannot overlap any offsets being used
by software components in flash layout.

So, SF distrocmd will pick the script at desired
script address and run.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Bin Meng <bin.meng@windriver.com>
include/configs/sifive-fu540.h

index 72c841eb9bf90fc8d4de0361afdee3bab5c58e05..68fda14d760feafea1defaa75021328bffb2fa03 100644 (file)
@@ -62,6 +62,8 @@
        "kernel_addr_r=0x84000000\0" \
        "fdt_addr_r=0x88000000\0" \
        "scriptaddr=0x88100000\0" \
+       "script_offset_f=0x1fff000\0" \
+       "script_size_f=0x1000\0" \
        "pxefile_addr_r=0x88200000\0" \
        "ramdisk_addr_r=0x88300000\0" \
        "type_guid_gpt_loader1=" TYPE_GUID_LOADER1 "\0" \