summaryrefslogtreecommitdiffstats
path: root/net/net.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2011-10-24 18:00:07 +0000
committerWolfgang Denk <wd@denx.de>2011-10-26 21:36:22 +0200
commit1fb7cd498e6a5a7e14e1ac5518262a35ed293f3e (patch)
tree39bb7db58e2d99c2472a3368c9f32df7d79f6a22 /net/net.c
parent1aec244acf9daf0d4dad80fe86b2c2b7404251d6 (diff)
downloadtalos-obmc-uboot-1fb7cd498e6a5a7e14e1ac5518262a35ed293f3e.tar.gz
talos-obmc-uboot-1fb7cd498e6a5a7e14e1ac5518262a35ed293f3e.zip
net: tftpput: implement tftp logic
This adds logic to tftp.c to implement the tftp 'put' command, and updates the README. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'net/net.c')
-rw-r--r--net/net.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/net.c b/net/net.c
index c778a80656..84f28bf32e 100644
--- a/net/net.c
+++ b/net/net.c
@@ -408,6 +408,9 @@ restart:
NetBootFileXferSize = 0;
switch (protocol) {
case TFTPGET:
+#ifdef CONFIG_CMD_TFTPPUT
+ case TFTPPUT:
+#endif
/* always use ARP to get server ethernet address */
TftpStart(protocol);
break;
@@ -1794,6 +1797,7 @@ static int net_check_prereq(enum proto_t protocol)
case NFS:
#endif
case TFTPGET:
+ case TFTPPUT:
if (NetServerIP == 0) {
puts("*** ERROR: `serverip' not set\n");
return 1;
OpenPOWER on IntegriCloud