diff mbox

ARM: uniphier: add sramupdate command

Message ID 1458825816-30566-1-git-send-email-yamada.masahiro@socionext.com
State Accepted
Commit 61a4f5bd61349b6ab2a4fed926aa203624f9494d
Headers show

Commit Message

Masahiro Yamada March 24, 2016, 1:23 p.m. UTC
This command would be useful to update U-Boot images in SRAM.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

---

 include/configs/uniphier.h | 4 ++++
 1 file changed, 4 insertions(+)

-- 
1.9.1

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Comments

Masahiro Yamada March 31, 2016, 4:03 p.m. UTC | #1
2016-03-24 22:23 GMT+09:00 Masahiro Yamada <yamada.masahiro@socionext.com>:
> This command would be useful to update U-Boot images in SRAM.

>

> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>



Applied to u-boot-uniphier/master.


-- 
Best Regards
Masahiro Yamada
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
diff mbox

Patch

diff --git a/include/configs/uniphier.h b/include/configs/uniphier.h
index da80c00..059b034 100644
--- a/include/configs/uniphier.h
+++ b/include/configs/uniphier.h
@@ -229,6 +229,10 @@ 
 	"netdev=eth0\0"						\
 	"verify=n\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 &&"					\
 		"mmc partconf $mmc_first_dev 0 1 1 &&"		\
 		"mmc erase 0 800 &&"				\