summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2016-02-24 14:26:20 -0500
committerTom Rini <trini@konsulko.com>2016-02-24 18:44:17 -0500
commitfec26e7270ad31e4179d1bd189e5cd8ab93ccba3 (patch)
tree6a24a5af8d3c40956db407177e945493fd6a1ce3 /drivers/usb/host/ehci.h
parente1417c7b66f4e0051a3aa242f655e85c1c96eef2 (diff)
parentd7d8c00575c8ae766d387c763395470410427b69 (diff)
downloadblackbird-obmc-uboot-fec26e7270ad31e4179d1bd189e5cd8ab93ccba3.tar.gz
blackbird-obmc-uboot-fec26e7270ad31e4179d1bd189e5cd8ab93ccba3.zip
Merge branch 'master' of git://git.denx.de/u-boot-usb
Diffstat (limited to 'drivers/usb/host/ehci.h')
-rw-r--r--drivers/usb/host/ehci.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h
index b41c04a8b3..826b3fe580 100644
--- a/drivers/usb/host/ehci.h
+++ b/drivers/usb/host/ehci.h
@@ -102,8 +102,9 @@ struct usb_linux_config_descriptor {
} __attribute__ ((packed));
#if defined CONFIG_EHCI_DESC_BIG_ENDIAN
-#define ehci_readl(x) (*((volatile u32 *)(x)))
-#define ehci_writel(a, b) (*((volatile u32 *)(a)) = ((volatile u32)b))
+#define ehci_readl(x) cpu_to_be32((*((volatile u32 *)(x))))
+#define ehci_writel(a, b) (*((volatile u32 *)(a)) = \
+ cpu_to_be32(((volatile u32)b)))
#else
#define ehci_readl(x) cpu_to_le32((*((volatile u32 *)(x))))
#define ehci_writel(a, b) (*((volatile u32 *)(a)) = \
OpenPOWER on IntegriCloud