]> git.sur5r.net Git - u-boot/blobdiff - drivers/usb/host/ehci-mxc.c
Merge branch 'master' of git://git.denx.de/u-boot-nand-flash
[u-boot] / drivers / usb / host / ehci-mxc.c
index f403d49e7462b75a4a14d45703c6497954fde12e..45cbd18a00253ee65b4aacf79d520dc883a02b24 100644 (file)
@@ -110,11 +110,10 @@ int ehci_hcd_init(void)
 {
        struct usb_ehci *ehci;
 #ifdef CONFIG_MX31
-       u32 tmp;
        struct clock_control_regs *sc_regs =
                (struct clock_control_regs *)CCM_BASE;
 
-       tmp = __raw_readl(&sc_regs->ccmr);
+       __raw_readl(&sc_regs->ccmr);
        __raw_writel(__raw_readl(&sc_regs->ccmr) | (1 << 9), &sc_regs->ccmr) ;
 #endif
 
@@ -126,11 +125,7 @@ int ehci_hcd_init(void)
        hcor = (struct ehci_hcor *)((uint32_t) hccr +
                        HC_LENGTH(ehci_readl(&hccr->cr_capbase)));
        setbits_le32(&ehci->usbmode, CM_HOST);
-#ifdef CONFIG_MX31
-       setbits_le32(&ehci->control, USB_EN);
-
        __raw_writel(CONFIG_MXC_USB_PORTSC, &ehci->portsc);
-#endif
        mxc_set_usbcontrol(CONFIG_MXC_USB_PORT, CONFIG_MXC_USB_FLAGS);
 
        udelay(10000);