diff options
author | Jason Jin <Jason.jin@freescale.com> | 2007-06-11 15:14:24 +0200 |
---|---|---|
committer | Markus Klotzbuecher <mk@pollux.denx.de> | 2007-06-11 15:14:24 +0200 |
commit | 9b7464a2c88614e1061f509c48930a3d240d1a35 (patch) | |
tree | ca26bd9ce8a3839fdaa1be40e824e3951dab37ba /drivers | |
parent | c4e2753436bf8ed42731c5b8b9ceb62cdb482f43 (diff) | |
download | u-boot-imx-9b7464a2c88614e1061f509c48930a3d240d1a35.zip u-boot-imx-9b7464a2c88614e1061f509c48930a3d240d1a35.tar.gz u-boot-imx-9b7464a2c88614e1061f509c48930a3d240d1a35.tar.bz2 |
USB: This patch fix readl in ohci swap reg access.
Signed-off-by: Jason Jin <Jason.jin@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb_ohci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb_ohci.c b/drivers/usb_ohci.c index 3cef576..d6b745f 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))) |