ehci-ci.h: drop generic USBCMD fields
authorMateusz Kulikowski <mateusz.kulikowski@gmail.com>
Thu, 31 Mar 2016 21:12:25 +0000 (23:12 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 1 Apr 2016 21:18:11 +0000 (17:18 -0400)
Use definitions from ehci.h instead.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Acked-by: Marek Vasut <marex@denx.de>
Tested-by: Simon Glass <sjg@chromium.org>
drivers/usb/host/ehci-mpc512x.c
include/usb/ehci-ci.h

index 4b50ac8ca157afdee1636d98fa2a44b8ae20144c..bb4f4616133bdeb560b06e170b91cf3c8f6e8f9b 100644 (file)
@@ -93,7 +93,7 @@ static int reset_usb_controller(volatile struct usb_ehci *ehci)
        unsigned int i;
 
        /* Command a reset of the USB Controller */
-       out_be32(&(ehci->usbcmd), EHCI_FSL_USBCMD_RST);
+       out_be32(&(ehci->usbcmd), CMD_RESET);
 
        /* Wait for the reset process to finish */
        for (i = 65535 ; i > 0 ; i--) {
@@ -101,7 +101,7 @@ static int reset_usb_controller(volatile struct usb_ehci *ehci)
                 * The host will set this bit to zero once the
                 * reset process is complete
                 */
-               if ((in_be32(&(ehci->usbcmd)) & EHCI_FSL_USBCMD_RST) == 0)
+               if ((in_be32(&(ehci->usbcmd)) & CMD_RESET) == 0)
                        return 0;
        }
 
index 305b180bc1a8cd968610fb518b104891758a9aaa..586d32ab52d181a0aa342e56c107bd8916982d15 100644 (file)
 #define INTR_DATA_PULSING_EN   (0x1<<30)
 #define INTSTS_MASK            (0x00ff0000)
 
-/* USBCMD Bits of interest */
-#define EHCI_FSL_USBCMD_RST    (1 <<  1)
-#define EHCI_FSL_USBCMD_RS     (1 <<  0)
-
 #define  INTERRUPT_ENABLE_BITS_MASK  \
                (INTR_USB_ID_EN         | \
                INTR_1MS_TIMER_EN       | \