]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
arm64: zynqmp: Fix SPI layout for SPL
authorMichal Simek <michal.simek@xilinx.com>
Mon, 6 Feb 2017 14:35:38 +0000 (15:35 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 6 Feb 2017 14:40:28 +0000 (15:40 +0100)
The patch:
"spi_flash: zynqmp: Dont use 4K sector erase by default"
(sha1: 246880b5ef7616c766a195d100b75f2443f9b02f)
breaks SPL code because increased erase sector size which were used
for writing SPL code to QSPI.

Fix u-boot.img position.

    mmcinfo
    sf probe
    load mmc 0 10000000 boot.bin
    sf erase 0 +$filesize
    sf write 10000000 0 $filesize
    load mmc 0 10000000 atf-spi.ub
    sf erase 0x80000 +$filesize
    sf write 10000000 0x80000 $filesize
    load mmc 0 10000000 u-boot.bin
    sf erase 0xa0000 +$filesize
    sf write 10000000 0xa0000 $filesize

    #Fixed location from 0x140000 to 0x170000
    load mmc 0 10000000 u-boot.img
    sf erase 0x170000 +$filesize
    sf write 10000000 0x170000 $filesize

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
include/configs/xilinx_zynqmp.h

index e4cbb778387f15da7d75ed38a606f3ae4779da70..bbf9c7d98168ea3e45b25f5a075cc47e3cc74149 100644 (file)
 # define CONFIG_SYS_SPI_ARGS_OFFS      0xa0000
 # define CONFIG_SYS_SPI_ARGS_SIZE      0xa0000
 
-# define CONFIG_SYS_SPI_U_BOOT_OFFS    0x140000
+# define CONFIG_SYS_SPI_U_BOOT_OFFS    0x170000
 #endif
 
 /* u-boot is like dtb */