ARM: uniphier: add sramupdate command
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 24 Mar 2016 13:23:36 +0000 (22:23 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 31 Mar 2016 15:17:01 +0000 (00:17 +0900)
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

index da80c00c458cb03640856751777eb56298b61847..059b034f9c4102a6dd5a802f29862c220ec6e319 100644 (file)
        "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 &&"                            \