]> git.sur5r.net Git - u-boot/blobdiff - cpu/mpc5xxx/usb_ohci.c
Merge 'next' branch
[u-boot] / cpu / mpc5xxx / usb_ohci.c
index 2f19d7e9220fa4cabd2c06978a552abcfca417a5..2ad12b2a25931d616e076635de199594669f4da8 100644 (file)
@@ -56,8 +56,8 @@
 #define OHCI_CONTROL_INIT \
        (OHCI_CTRL_CBSR & 0x3) | OHCI_CTRL_IE | OHCI_CTRL_PLE
 
-#define readl(a) (*((vu_long *)(a)))
-#define writel(a, b) (*((vu_long *)(b)) = ((vu_long)a))
+#define readl(a) (*((volatile u32 *)(a)))
+#define writel(a, b) (*((volatile u32 *)(b)) = ((volatile u32)a))
 
 #define min_t(type,x,y) ({ type __x = (x); type __y = (y); __x < __y ? __x: __y; })
 
@@ -1261,7 +1261,7 @@ int submit_common_msg(struct usb_device *dev, unsigned long pipe, void *buffer,
                        stat = USB_ST_CRC_ERR;
                        break;
                }
-               
+
                /* NOTE: since we are not interrupt driven in U-Boot and always
                 * handle only one URB at a time, we cannot assume the
                 * transaction finished on the first successful return from
@@ -1483,7 +1483,7 @@ hc_interrupt (void)
        struct ohci_regs *regs = ohci->regs;
        int ints;
        int stat = -1;
-       
+
        if ((ohci->hcca->done_head != 0) &&
             !(ohci_cpu_to_le32(ohci->hcca->done_head) & 0x01)) {
 
@@ -1493,7 +1493,7 @@ hc_interrupt (void)
                ohci->disabled++;
                err ("%s device removed!", ohci->slot_name);
                return -1;
-       
+
        } else if ((ints &= readl (&regs->intrenable)) == 0) {
                dbg("hc_interrupt: returning..\n");
                return 0xff;