mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-19 03:15:00 +00:00
cmd: fastboot: handle watchdog while waiting for fastboot commands.
Watchdog is not handled while waiting for fastboot commands. Tested on a i.MX6 ULL EVK board. Signed-off-by: Sean Nyekjaer <sean@geanix.com>
This commit is contained in:
parent
9659eb46af
commit
731785df0b
1 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
||||||
#include <fastboot.h>
|
#include <fastboot.h>
|
||||||
#include <net.h>
|
#include <net.h>
|
||||||
#include <usb.h>
|
#include <usb.h>
|
||||||
|
#include <watchdog.h>
|
||||||
|
|
||||||
static int do_fastboot_udp(int argc, char *const argv[],
|
static int do_fastboot_udp(int argc, char *const argv[],
|
||||||
uintptr_t buf_addr, size_t buf_size)
|
uintptr_t buf_addr, size_t buf_size)
|
||||||
|
@ -74,6 +75,7 @@ static int do_fastboot_usb(int argc, char *const argv[],
|
||||||
break;
|
break;
|
||||||
if (ctrlc())
|
if (ctrlc())
|
||||||
break;
|
break;
|
||||||
|
WATCHDOG_RESET();
|
||||||
usb_gadget_handle_interrupts(controller_index);
|
usb_gadget_handle_interrupts(controller_index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue