mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-07-06 03:06:16 +09:00
usb, musb-new: add wdt trigger
Signed-off-by: Heiko Schocher <hs@denx.de> Cc: Marek Vasut <marek.vasut@gmail.com> Cc: Ilya Yanok <ilya.yanok@cogentembedded.com>
This commit is contained in:
parent
c5398cc968
commit
7a34278542
|
@ -1,4 +1,5 @@
|
|||
#include <common.h>
|
||||
#include <watchdog.h>
|
||||
#include <asm/errno.h>
|
||||
#include <linux/usb/ch9.h>
|
||||
#include <linux/usb/gadget.h>
|
||||
|
@ -164,6 +165,7 @@ static struct musb *gadget;
|
|||
|
||||
int usb_gadget_handle_interrupts(void)
|
||||
{
|
||||
WATCHDOG_RESET();
|
||||
if (!gadget || !gadget->isr)
|
||||
return -EINVAL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user