Skip to content
Snippets Groups Projects
Commit ea5427e2 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

net: Add prototype for update_tftp


This function should be declared in net.h.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
parent 6236fd75
No related branches found
No related tags found
No related merge requests found
......@@ -8,13 +8,12 @@
#include <common.h>
#include <command.h>
#include <net.h>
#if !defined(CONFIG_UPDATE_TFTP)
#error "CONFIG_UPDATE_TFTP required"
#endif
extern int update_tftp(ulong addr);
static int do_fitupd(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
ulong addr = 0UL;
......
......@@ -57,10 +57,6 @@ DECLARE_GLOBAL_DATA_PTR;
void inline __show_boot_progress (int val) {}
void show_boot_progress (int val) __attribute__((weak, alias("__show_boot_progress")));
#if defined(CONFIG_UPDATE_TFTP)
int update_tftp (ulong addr);
#endif /* CONFIG_UPDATE_TFTP */
#define MAX_DELAY_STOP_STR 32
#undef DEBUG_PARSER
......
......@@ -695,6 +695,9 @@ extern void copy_filename(char *dst, const char *src, int size);
/* get a random source port */
extern unsigned int random_port(void);
/* Update U-Boot over TFTP */
extern int update_tftp(ulong addr);
/**********************************************************************/
#endif /* __NET_H__ */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment