]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/usb.h
ARM: tegra: deduplicate MASK_BITS_xxx clock mux enum
[karo-tx-uboot.git] / include / usb.h
index d9fedeeff7de98bcc192fc2b76e561db067010ab..736730e8964258470939f218c32853b3571328b8 100644 (file)
@@ -197,6 +197,16 @@ int board_usb_init(int index, enum usb_init_type init);
  */
 int board_usb_cleanup(int index, enum usb_init_type init);
 
+/*
+ * If CONFIG_USB_CABLE_CHECK is set then this function
+ * should be defined in board file.
+ *
+ * @return 1 if cable is connected and 0 otherwise.
+ */
+#ifdef CONFIG_USB_CABLE_CHECK
+int usb_cable_connected(void);
+#endif
+
 #ifdef CONFIG_USB_STORAGE
 
 #define USB_MAX_STOR_DEV 5