瀏覽代碼

ARM: uniphier: add sramupdate command

This command would be useful to update U-Boot images in SRAM.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Masahiro Yamada 9 年之前
父節點
當前提交
61a4f5bd61
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      include/configs/uniphier.h

+ 4 - 0
include/configs/uniphier.h

@@ -229,6 +229,10 @@
 	"netdev=eth0\0"						\
 	"netdev=eth0\0"						\
 	"verify=n\0"						\
 	"verify=n\0"						\
 	"nor_base=0x42000000\0"					\
 	"nor_base=0x42000000\0"					\
+	"sramupdate=setexpr tmp_addr $nor_base + 0x50000 &&"	\
+		"tftpboot $tmp_addr u-boot-spl.bin &&"		\
+		"setexpr tmp_addr $nor_base + 0x60000 &&"	\
+		"tftpboot $tmp_addr u-boot.bin\0"		\
 	"emmcupdate=mmcsetn &&"					\
 	"emmcupdate=mmcsetn &&"					\
 		"mmc partconf $mmc_first_dev 0 1 1 &&"		\
 		"mmc partconf $mmc_first_dev 0 1 1 &&"		\
 		"mmc erase 0 800 &&"				\
 		"mmc erase 0 800 &&"				\