summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2011-12-09 14:17:24 +0800
committerPeter Chen <peter.chen@freescale.com>2011-12-13 11:38:13 +0800
commit6fe19870720f0c91402e683f2fd8f4a578a35557 (patch)
tree5b6f8b3658ad870af9f0daa6c27c862710003627 /Documentation
parenta327cd285ca0874144f8bc1ff16046c384fec179 (diff)
ENGR00169885-2 usb-udc: Add Doc for udc
Add remote wakeup test method to udc doc Signed-off-by: Peter Chen <peter.chen@freescale.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/arm/imx/udc.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/Documentation/arm/imx/udc.txt b/Documentation/arm/imx/udc.txt
new file mode 100644
index 000000000000..fdbaa848983b
--- /dev/null
+++ b/Documentation/arm/imx/udc.txt
@@ -0,0 +1,16 @@
+How to test remote wakeup (Make sure connecting to usb host and gadget is loaded)
+1. Prepare a usb host which featured with remote wakeup
+alternatively, You can use another i.mx board (like mx50 rdp, or mx6q)
+2. Boot up both boards, and connect two boards with usb cable
+3. At device side, do below commands:
+- modprobe g_file_storage file=/dev/mmcblk0p1 (other gadgets are also ok)
+- echo 1 > /sys/devices/platform/fsl-usb2-udc/gadget/remote_wakeup
+4. At host side, do below command:
+- echo enabled > /sys/devices/platform/fsl-ehci.1/power/wakeup
+- echo standby > /sys/power/state
+5. Send Remote wakeup to wake up host
+At device side, do below command:
+echo 1 > /sys/devices/platform/fsl-usb2-udc/gadget/start_remote_wakeup
+6. The expected behaviour is: host is waked up, and there is
+not re-enumeration happens.
+