summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPrzemyslaw Marczak <p.marczak@samsung.com>2014-01-07 15:08:37 +0100
committerMarek Vasut <marex@denx.de>2014-01-13 12:29:12 +0100
commit3603e31db54ddba820b7a7b9c7659e272f8c65de (patch)
tree045cd42942de2b0e4b7ec09b5322a5ead2614c7d /include
parent7da765125165c172078489336117f95de2904322 (diff)
downloadu-boot-imx-3603e31db54ddba820b7a7b9c7659e272f8c65de.zip
u-boot-imx-3603e31db54ddba820b7a7b9c7659e272f8c65de.tar.gz
u-boot-imx-3603e31db54ddba820b7a7b9c7659e272f8c65de.tar.bz2
usb: ums: wait for usb cable connection before enter ums mode
Before this change ums mode can not be entered when device was using the same usb port for usb/uart communication. Switching USB cable from UART to USB always causes ums exit. Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
Diffstat (limited to 'include')
-rw-r--r--include/usb_mass_storage.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/usb_mass_storage.h b/include/usb_mass_storage.h
index 9df3adc..058dcf1 100644
--- a/include/usb_mass_storage.h
+++ b/include/usb_mass_storage.h
@@ -20,6 +20,9 @@
#define UMS_NUM_SECTORS 0
#endif
+/* Wait at maximum 60 seconds for cable connection */
+#define UMS_CABLE_READY_TIMEOUT 60
+
struct ums {
int (*read_sector)(struct ums *ums_dev,
ulong start, lbaint_t blkcnt, void *buf);