summaryrefslogtreecommitdiff
path: root/common/main.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/main.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/main.c')
-rw-r--r--common/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/main.c b/common/main.c
index 2979fbe..ead0cd1 100644
--- a/common/main.c
+++ b/common/main.c
@@ -75,7 +75,7 @@ void main_loop(void)
run_preboot_environment_command();
#if defined(CONFIG_UPDATE_TFTP)
- update_tftp(0UL);
+ update_tftp(0UL, NULL, NULL);
#endif /* CONFIG_UPDATE_TFTP */
s = bootdelay_process();