aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2015-02-10 23:44:50 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-18 11:19:09 -0400
commit01e3ad863fc0f15b802c8a5247e1c252bd04f429 (patch)
tree8221394e1808840495053cd81492d3ca1c6804cc /Documentation
parent6d6531104d20692190690ed73eaaac770c42aa49 (diff)
doc: usb: chipidea: add usb wakeup enable example
Add the example for how to enable USB as system wakeup source. Signed-off-by: Peter Chen <peter.chen@freescale.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/usb/chipidea.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/Documentation/usb/chipidea.txt b/Documentation/usb/chipidea.txt
index 995c8bca40e2..3f848c1f2940 100644
--- a/Documentation/usb/chipidea.txt
+++ b/Documentation/usb/chipidea.txt
@@ -69,3 +69,24 @@ cat /sys/kernel/debug/ci_hdrc.0/registers
69---------------------- 69----------------------
70"On-The-Go and Embedded Host Supplement to the USB Revision 2.0 Specification 70"On-The-Go and Embedded Host Supplement to the USB Revision 2.0 Specification
71July 27, 2012 Revision 2.0 version 1.1a" 71July 27, 2012 Revision 2.0 version 1.1a"
72
732. How to enable USB as system wakeup source
74-----------------------------------
75Below is the example for how to enable USB as system wakeup source
76at imx6 platform.
77
782.1 Enable core's wakeup
79echo enabled > /sys/bus/platform/devices/ci_hdrc.0/power/wakeup
802.2 Enable glue layer's wakeup
81echo enabled > /sys/bus/platform/devices/2184000.usb/power/wakeup
822.3 Enable PHY's wakeup (optional)
83echo enabled > /sys/bus/platform/devices/20c9000.usbphy/power/wakeup
842.4 Enable roothub's wakeup
85echo enabled > /sys/bus/usb/devices/usb1/power/wakeup
862.5 Enable related device's wakeup
87echo enabled > /sys/bus/usb/devices/1-1/power/wakeup
88
89If the system has only one usb port, and you want usb wakeup at this port, you
90can use below script to enable usb wakeup.
91for i in $(find /sys -name wakeup | grep usb);do echo enabled > $i;done;
92