USB: This patch fix readl in ohci swap reg access.
Signed-off-by: Jason Jin <Jason.jin@freescale.com>
This commit is contained in:
parent
c4e2753436
commit
9b7464a2c8
|
@ -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)))
|
||||
|
|
Loading…
Reference in a new issue