Title: [9034] trunk/arch/blackfin: Add hibernate wakeup from USB support.
Revision
9034
Author
lliubbo
Date
2010-08-02 00:00:15 -0400 (Mon, 02 Aug 2010)

Log Message

Add hibernate wakeup from USB support.
If a USB_DP,USB_DM or USB_VBUS edge is detected, 
wakeup event is generated. Set USBWE bit to 
enable it wakeup the processor.
I have tested it on BF548-0.2.

Modified Paths

Diff

Modified: trunk/arch/blackfin/Kconfig (9033 => 9034)


--- trunk/arch/blackfin/Kconfig	2010-08-02 02:45:26 UTC (rev 9033)
+++ trunk/arch/blackfin/Kconfig	2010-08-02 04:00:15 UTC (rev 9034)
@@ -1238,6 +1238,15 @@
 	  wake-up upon detection of an active low signal on the /GPW (PH7) pin.
 	  On ADSP-BF549 this option enables the the same functionality on the
 	  /MRXON pin also PH7.
+config PM_BFIN_WAKE_USB
+	bool "Allow Wake-Up from USB"
+	depends on PM && (BF54x || BF52x)
+	default n
+	help
+	  Enable USB Wake-Up (Voltage Regulator Power-Up) (all processors
+	  with USB support). This option sets the usb wake-up enable (USBWE)
+	  control bit to enable wake-up upon detection of a usb USB_DM,USB_DP
+	  or USB_VBUS edge.
 
 endmenu
 

Modified: trunk/arch/blackfin/mach-common/pm.c (9033 => 9034)


--- trunk/arch/blackfin/mach-common/pm.c	2010-08-02 02:45:26 UTC (rev 9033)
+++ trunk/arch/blackfin/mach-common/pm.c	2010-08-02 04:00:15 UTC (rev 9034)
@@ -148,6 +148,9 @@
 #ifdef CONFIG_PM_BFIN_WAKE_GP
 	wakeup |= GPWE;
 #endif
+#ifdef CONFIG_PM_BFIN_WAKE_USB
+	wakeup |= USBWE;
+#endif
 
 	local_irq_save_hw(flags);
 
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to