Add support for the usb controller in AR933x platform.
The processor is big-endian so all multi-byte values of the usb
descriptors must be converted explicitly. Another difference is that
the controller supports both host and device modes but not OTG.
The patches are tested on WR703n router running OpenWRT trunk.
Svetoslav Neykov (5):
usb: chipidea: big-endian support
usb: chipidea: flags to force usb mode (host/device)
usb: chipidea: Don't access OTG related registers
usb: chipidea: AR933x platform support for the chipidea driver
usb: chipidea: Fix incorrect check of function return value
arch/mips/ath79/dev-usb.c | 19 ++++++
arch/mips/include/asm/mach-ath79/ar71xx_regs.h | 3 +
drivers/usb/chipidea/Makefile | 1 +
drivers/usb/chipidea/ci13xxx_ar933x.c | 73 +++++++++++++++++++++
drivers/usb/chipidea/core.c | 26 ++++++--
drivers/usb/chipidea/udc.c | 83 ++++++++++++++----------
include/linux/usb/chipidea.h | 2 +
7 files changed, 164 insertions(+), 43 deletions(-)
create mode 100644 drivers/usb/chipidea/ci13xxx_ar933x.c
--
1.7.9.5
|