summaryrefslogtreecommitdiff
path: root/common/cmd_fitupd.c
diff options
context:
space:
mode:
authorLukasz Majewski <l.majewski@majess.pl>2015-08-24 00:21:47 +0200
committerMarek Vasut <marex@denx.de>2015-09-07 13:41:05 +0200
commitc7ff5528439af8f1e6e10424e495eb7d6238d6c5 (patch)
tree81ac1c72bc7f753efd96bd49236a4b2636e48d73 /common/cmd_fitupd.c
parent2092e4610485618ec7a676ff8e6d297ea9dca3d5 (diff)
downloadu-boot-imx-c7ff5528439af8f1e6e10424e495eb7d6238d6c5.zip
u-boot-imx-c7ff5528439af8f1e6e10424e495eb7d6238d6c5.tar.gz
u-boot-imx-c7ff5528439af8f1e6e10424e495eb7d6238d6c5.tar.bz2
update: tftp: dfu: Extend update_tftp() function to support DFU
This code allows using DFU defined mediums for storing data received via TFTP protocol. It reuses and preserves functionality of legacy code at common/update.c. The update_tftp() function now accepts parameters - namely medium device name and its number (e.g. mmc 1). Without this information passed old behavior is preserved. Signed-off-by: Lukasz Majewski <l.majewski@majess.pl> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'common/cmd_fitupd.c')
-rw-r--r--common/cmd_fitupd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_fitupd.c b/common/cmd_fitupd.c
index b045974..78b8747 100644
--- a/common/cmd_fitupd.c
+++ b/common/cmd_fitupd.c
@@ -23,7 +23,7 @@ static int do_fitupd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
if (argc == 2)
addr = simple_strtoul(argv[1], NULL, 16);
- return update_tftp(addr);
+ return update_tftp(addr, NULL, NULL);
}
U_BOOT_CMD(fitupd, 2, 0, do_fitupd,