From: Jason Jin Date: Mon, 11 Jun 2007 13:14:24 +0000 (+0200) Subject: USB: This patch fix readl in ohci swap reg access. X-Git-Tag: v2025.01-rc5-pxa1908~22712^2~21^2~3 X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=9b7464a2c88614e1061f509c48930a3d240d1a35;p=u-boot.git USB: This patch fix readl in ohci swap reg access. Signed-off-by: Jason Jin --- diff --git a/drivers/usb_ohci.c b/drivers/usb_ohci.c index 3cef576b2e..d6b745fadd 100644 --- a/drivers/usb_ohci.c +++ b/drivers/usb_ohci.c @@ -81,7 +81,7 @@ * e.g. PCI controllers need this */ #ifdef CFG_OHCI_SWAP_REG_ACCESS -# define readl(a) __swap_16(*((vu_long *)(a))) +# define readl(a) __swap_32(*((vu_long *)(a))) # define writel(a, b) (*((vu_long *)(b)) = __swap_32((vu_long)a)) #else # define readl(a) (*((vu_long *)(a)))