mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-09-26 00:01:48 +02:00
usb, ohci: fix ohci swap register access
commit 57faca19a82f ("drivers: USB: OHCI: allow compilation for 64-bit targets") broke ohci support for the mpc85xx based socrates board, as it removed volatile keyword from ohci_readl/writel. Fix this so usb works again on socrates board. Signed-off-by: Heiko Schocher <hs@denx.de>
This commit is contained in:
parent
b005d7d5f9
commit
a5a7486e62
@ -14,8 +14,8 @@
|
|||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
|
|
||||||
#ifdef CONFIG_SYS_OHCI_SWAP_REG_ACCESS
|
#ifdef CONFIG_SYS_OHCI_SWAP_REG_ACCESS
|
||||||
# define ohci_readl(a) __swap_32(readl(a))
|
# define ohci_readl(a) __swap_32(in_be32((u32 *)a))
|
||||||
# define ohci_writel(v, a) writel(__swap_32(v), a)
|
# define ohci_writel(a, b) out_be32((u32 *)b, __swap_32(a))
|
||||||
#else
|
#else
|
||||||
# define ohci_readl(a) readl(a)
|
# define ohci_readl(a) readl(a)
|
||||||
# define ohci_writel(v, a) writel(v, a)
|
# define ohci_writel(v, a) writel(v, a)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user