mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-30 16:39:35 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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