diff options
author | Tom Rini <trini@konsulko.com> | 2015-09-07 08:56:23 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-09-07 08:56:23 -0400 |
commit | cdc7732f3737f2bb97b77eb3d7c9da344bb73612 (patch) | |
tree | 5d3a3567a1a58335ed2f38d8228cf24483f79b14 /include/net.h | |
parent | a6003397f7b74f7af6c21954073e046de08f43c9 (diff) | |
parent | 49b4c5c700077e387fef61a7225f92d190ee0c45 (diff) |
Merge git://git.denx.de/u-boot-usb
Diffstat (limited to 'include/net.h')
-rw-r--r-- | include/net.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/include/net.h b/include/net.h index d09bec9de1..f1671e38de 100644 --- a/include/net.h +++ b/include/net.h @@ -813,8 +813,18 @@ void copy_filename(char *dst, const char *src, int size); /* get a random source port */ unsigned int random_port(void); -/* Update U-Boot over TFTP */ -int update_tftp(ulong addr); +/** + * update_tftp - Update firmware over TFTP (via DFU) + * + * This function updates board's firmware via TFTP + * + * @param addr - memory address where data is stored + * @param interface - the DFU medium name - e.g. "mmc" + * @param devstring - the DFU medium number - e.g. "1" + * + * @return - 0 on success, other value on failure + */ +int update_tftp(ulong addr, char *interface, char *devstring); /**********************************************************************/ |