mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-27 12:28:52 +09: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
@ -81,7 +81,7 @@
|
|||||||
* e.g. PCI controllers need this
|
* e.g. PCI controllers need this
|
||||||
*/
|
*/
|
||||||
#ifdef CFG_OHCI_SWAP_REG_ACCESS
|
#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))
|
# define writel(a, b) (*((vu_long *)(b)) = __swap_32((vu_long)a))
|
||||||
#else
|
#else
|
||||||
# define readl(a) (*((vu_long *)(a)))
|
# define readl(a) (*((vu_long *)(a)))
|
||||||
|
Loading…
Reference in New Issue
Block a user