usb: ehci-orion: enable big-endian support
This commit fixes ehci-orion operation in big-endian mode by enabling byteswap when accessing registers using 'rdl' and 'wrl' macros. Signed-off-by: Grzegorz Jaszczyk <jaz@semihalf.com> Signed-off-by: Marcin Wojtas <mw@semihalf.com> Reviewed-by: Gregory CLEMENT <gregory.clement@free-electrons.com> Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
403dff4e2c
Коммит
782614b80e
|
@ -25,8 +25,8 @@
|
|||
|
||||
#include "ehci.h"
|
||||
|
||||
#define rdl(off) __raw_readl(hcd->regs + (off))
|
||||
#define wrl(off, val) __raw_writel((val), hcd->regs + (off))
|
||||
#define rdl(off) readl_relaxed(hcd->regs + (off))
|
||||
#define wrl(off, val) writel_relaxed((val), hcd->regs + (off))
|
||||
|
||||
#define USB_CMD 0x140
|
||||
#define USB_MODE 0x1a8
|
||||
|
|
Загрузка…
Ссылка в новой задаче