projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4e2753
)
USB: This patch fix readl in ohci swap reg access.
author
Jason Jin
<Jason.jin@freescale.com>
Mon, 11 Jun 2007 13:14:24 +0000
(15:14 +0200)
committer
Markus Klotzbuecher
<mk@pollux.denx.de>
Mon, 11 Jun 2007 13:14:24 +0000
(15:14 +0200)
Signed-off-by: Jason Jin <Jason.jin@freescale.com>
drivers/usb_ohci.c
patch
|
blob
|
history
diff --git
a/drivers/usb_ohci.c
b/drivers/usb_ohci.c
index 3cef576b2e94fefb9e11f58b0e775cae117f8e39..d6b745fadd65f09217fbf1d3ede23e51bcba43d9 100644
(file)
--- 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)))