]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: uniphier: speed up loading kernel image from NOR device
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 21 Apr 2016 05:43:22 +0000 (14:43 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 24 Apr 2016 00:56:47 +0000 (09:56 +0900)
Copy the kernel image double-word-wise rather than byte-wise.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
include/configs/uniphier.h

index a25ac8d92417d1d911fd07512e6e908fa9e6f1d2..8ecfc6f7cf6c8fba8dcbe2a32322e62923ea6d13 100644 (file)
        "boot_common=setexpr bootm_low $kernel_addr_r '&' fe000000 &&" \
                LINUXBOOT_CMD " $kernel_addr_r $ramdisk_addr_r $fdt_addr_r\0" \
        "norboot=setexpr kernel_addr $nor_base + $kernel_addr &&" \
-               "cp.b $kernel_addr $kernel_addr_r $kernel_size &&" \
+               "setexpr kernel_size $kernel_size / 4 &&" \
+               "cp $kernel_addr $kernel_addr_r $kernel_size &&" \
                "setexpr ramdisk_addr_r $nor_base + $ramdisk_addr &&" \
                "setexpr fdt_addr_r $nor_base + $fdt_addr &&" \
                "run boot_common\0" \