From b75e072c1c53cade2c3944433d852d7d6046661b Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Thu, 21 Apr 2016 14:43:22 +0900 Subject: [PATCH] ARM: uniphier: speed up loading kernel image from NOR device Copy the kernel image double-word-wise rather than byte-wise. Signed-off-by: Masahiro Yamada --- include/configs/uniphier.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/configs/uniphier.h b/include/configs/uniphier.h index a25ac8d924..8ecfc6f7cf 100644 --- a/include/configs/uniphier.h +++ b/include/configs/uniphier.h @@ -214,7 +214,8 @@ "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" \ -- 2.25.1