diff options
Diffstat (limited to 'drivers/usb/host/ehci-mx6.c')
-rw-r--r-- | drivers/usb/host/ehci-mx6.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c index 55ac162..db9748e 100644 --- a/drivers/usb/host/ehci-mx6.c +++ b/drivers/usb/host/ehci-mx6.c @@ -18,6 +18,7 @@ #include <asm/imx-common/sys_proto.h> #include <dm.h> #include <power/regulator.h> +#include <asm/arch/sys_proto.h> #include "ehci.h" @@ -353,6 +354,13 @@ int ehci_hcd_init(int index, enum usb_init_type init, if (index > 3) return -EINVAL; +#if defined(CONFIG_MX6) + if (mx6_usb_fused((u32)ehci)) { + printf("USB@0x%x is fused, disable it\n", (u32)ehci); + return -ENODEV; + } +#endif + ret = ehci_mx6_common_init(ehci, index); if (ret) return ret; @@ -511,6 +519,13 @@ static int ehci_usb_probe(struct udevice *dev) struct ehci_hcor *hcor; int ret; +#if defined(CONFIG_MX6) + if (mx6_usb_fused((u32)ehci)) { + printf("USB@0x%x is fused, disable it\n", (u32)ehci); + return -ENODEV; + } +#endif + priv->ehci = ehci; priv->portnr = dev->seq; priv->init_type = type; |