summaryrefslogtreecommitdiff
path: root/drivers/usb/host/ehci-mx6.c
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2016-03-02 11:13:51 +0800
committerfang hui <hui.fang@nxp.com>2016-11-09 08:25:50 +0800
commit4cd9b28581fe2fcf428b3336fe0d8701038bfc12 (patch)
tree83c28ea1640bcbd30c08e4055bfb72a33940ed21 /drivers/usb/host/ehci-mx6.c
parent5f2532758a3f07939dd44e7775226a8056533187 (diff)
downloadu-boot-imx-4cd9b28581fe2fcf428b3336fe0d8701038bfc12.zip
u-boot-imx-4cd9b28581fe2fcf428b3336fe0d8701038bfc12.tar.gz
u-boot-imx-4cd9b28581fe2fcf428b3336fe0d8701038bfc12.tar.bz2
MLK-12483-4 mx6: Modify drivers to disable fused modules
Add the fuse checking in drivers, when the module is disabled in fuse, the driver will not work. Changed drivers: BEE, GPMI, APBH-DMA, ESDHC, FEC, QSPI, ECSPI, I2C, USB-EHCI, GIS, LCDIF. Signed-off-by: Ye Li <ye.li@nxp.com>
Diffstat (limited to 'drivers/usb/host/ehci-mx6.c')
-rw-r--r--drivers/usb/host/ehci-mx6.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c
index 951dd3b..3ec16ec 100644
--- a/drivers/usb/host/ehci-mx6.c
+++ b/drivers/usb/host/ehci-mx6.c
@@ -14,6 +14,7 @@
#include <asm/arch/imx-regs.h>
#include <asm/arch/clock.h>
#include <asm/imx-common/iomux-v3.h>
+#include <asm/arch/sys_proto.h>
#include "ehci.h"
@@ -234,6 +235,13 @@ int ehci_hcd_init(int index, enum usb_init_type init,
if (index > 3)
return -EINVAL;
+
+ if (mx6_usb_fused(USB_BASE_ADDR + (0x200 * index))) {
+ printf("USB@0x%x is fused, disable it\n",
+ USB_BASE_ADDR + (0x200 * index));
+ return -2;
+ }
+
enable_usboh3_clk(1);
mdelay(1);