diff options
author | Alex Kiernan <alex.kiernan@gmail.com> | 2018-05-29 15:30:53 +0000 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2018-05-30 11:59:21 +0200 |
commit | f73a7df984a9820d9beb829b32ccb5c3d55dc152 (patch) | |
tree | 8a9513b9aadb40cde8e02ca93124a40532166256 /net/net.c | |
parent | c232d14d11e29c88f2c6149d2c152f496caa5889 (diff) | |
download | u-boot-f73a7df984a9820d9beb829b32ccb5c3d55dc152.zip u-boot-f73a7df984a9820d9beb829b32ccb5c3d55dc152.tar.gz u-boot-f73a7df984a9820d9beb829b32ccb5c3d55dc152.tar.bz2 |
net: fastboot: Merge AOSP UDP fastboot
Merge UDP fastboot support from AOSP:
https://android.googlesource.com/platform/external/u-boot/+/android-o-mr1-iot-preview-8
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Alex Deymo <deymo@google.com>
Signed-off-by: Jocelyn Bohr <bohr@google.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'net/net.c')
-rw-r--r-- | net/net.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -87,6 +87,7 @@ #include <environment.h> #include <errno.h> #include <net.h> +#include <net/fastboot.h> #include <net/tftp.h> #if defined(CONFIG_LED_STATUS) #include <miiphy.h> @@ -451,6 +452,11 @@ restart: tftp_start_server(); break; #endif +#ifdef CONFIG_UDP_FUNCTION_FASTBOOT + case FASTBOOT: + fastboot_start_server(); + break; +#endif #if defined(CONFIG_CMD_DHCP) case DHCP: bootp_reset(); @@ -1322,6 +1328,7 @@ common: /* Fall through */ case NETCONS: + case FASTBOOT: case TFTPSRV: if (net_ip.s_addr == 0) { puts("*** ERROR: `ipaddr' not set\n"); |