[U-Boot] usb, musb-new: add wdt trigger

Heiko Schocher hs at denx.de
Tue Jun 4 11:10:01 CEST 2013


Signed-off-by: Heiko Schocher <hs at denx.de>
Cc: Marek Vasut <marek.vasut at gmail.com>
Cc: Ilya Yanok <ilya.yanok at cogentembedded.com>
---
 drivers/usb/musb-new/musb_uboot.c | 2 ++
 1 Datei geändert, 2 Zeilen hinzugefügt(+)

diff --git a/drivers/usb/musb-new/musb_uboot.c b/drivers/usb/musb-new/musb_uboot.c
index 15d2ec0..c240032 100644
--- a/drivers/usb/musb-new/musb_uboot.c
+++ b/drivers/usb/musb-new/musb_uboot.c
@@ -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;
 
-- 
1.7.11.7



More information about the U-Boot mailing list