diff options
| author | Tom Rini <trini@ti.com> | 2013-11-08 15:25:29 -0500 | 
|---|---|---|
| committer | Tom Rini <trini@ti.com> | 2013-11-08 15:25:29 -0500 | 
| commit | 15c5cdf5aa6b292145e5e3e220ec1f42b11eff6f (patch) | |
| tree | 662fecd9e66cfe485097f777912824d81f9642e6 /include/usb.h | |
| parent | 28c860b23fb2dd1affec909e98f25c58324e2140 (diff) | |
| parent | 47d79deb996797dddd0984cef8b48a566c82180e (diff) | |
| download | olio-uboot-2014.01-15c5cdf5aa6b292145e5e3e220ec1f42b11eff6f.tar.xz olio-uboot-2014.01-15c5cdf5aa6b292145e5e3e220ec1f42b11eff6f.zip | |
Merge branch 'master' of git://www.denx.de/git/u-boot-usb
Diffstat (limited to 'include/usb.h')
| -rw-r--r-- | include/usb.h | 10 | 
1 files changed, 10 insertions, 0 deletions
| diff --git a/include/usb.h b/include/usb.h index d9fedeeff..736730e89 100644 --- a/include/usb.h +++ b/include/usb.h @@ -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 |