]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/usb_mass_storage.h
ARM: zynq: Add MIO detection code
[karo-tx-uboot.git] / include / usb_mass_storage.h
index 9df3adcf2a8e042bcc3b953c0f357a9c5945d9d5..ed460644c1fe9152243ad97ddd516aaa9ef6e87a 100644 (file)
@@ -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);
@@ -37,13 +40,5 @@ int fsg_init(struct ums *);
 void fsg_cleanup(void);
 struct ums *ums_init(unsigned int);
 int fsg_main_thread(void *);
-
-#ifdef CONFIG_USB_GADGET_MASS_STORAGE
 int fsg_add(struct usb_configuration *c);
-#else
-int fsg_add(struct usb_configuration *c)
-{
-       return 0;
-}
-#endif
 #endif /* __USB_MASS_STORAGE_H__ */