On 11/12/2010 11:50 AM, Gabor Juhos wrote:
The Atheros AR71XX/AR7240 SoCs have a built-in OHCI controller. This patch adds the necessary glue code to make the generic OHCI driver usable for them. Signed-off-by: Gabor Juhos<juhosg@xxxxxxxxxxx> Signed-off-by: Imre Kaloz<kaloz@xxxxxxxxxxx> Cc: David Brownell<dbrownell@xxxxxxxxxxxxxxxxxxxxx> Cc: Greg Kroah-Hartman<gregkh@xxxxxxx> Cc: linux-usb@xxxxxxxxxxxxxxx --- .../include/asm/mach-ath79/ath79_ehci_platform.h | 18 +++ drivers/usb/Kconfig | 2 + drivers/usb/host/Kconfig | 8 + drivers/usb/host/ohci-ath79.c | 162 ++++++++++++++++++++ drivers/usb/host/ohci-hcd.c | 5 + 5 files changed, 195 insertions(+), 0 deletions(-) create mode 100644 arch/mips/include/asm/mach-ath79/ath79_ehci_platform.h create mode 100644 drivers/usb/host/ohci-ath79.c diff --git a/arch/mips/include/asm/mach-ath79/ath79_ehci_platform.h b/arch/mips/include/asm/mach-ath79/ath79_ehci_platform.h new file mode 100644 index 0000000..6ee075f --- /dev/null +++ b/arch/mips/include/asm/mach-ath79/ath79_ehci_platform.h @@ -0,0 +1,18 @@ +/* + * Platform data definition for Atheros AR71XX/AR913X EHCI controller + * + * Copyright (C) 2008-2010 Gabor Juhos<juhosg@xxxxxxxxxxx> + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 as published + * by the Free Software Foundation. + */ + +#ifndef _ATH79_EHCI_PLATFORM_H +#define _ATH79_EHCI_PLATFORM_H + +struct ath79_ehci_platform_data { + u8 is_ar913x; +}; + +#endif /* _ATH79_EHCI_PLATFORM_H */ diff --git a/drivers/usb/Kconfig b/drivers/usb/Kconfig index a4d06bb..6e21ab8 100644 --- a/drivers/usb/Kconfig +++ b/drivers/usb/Kconfig @@ -47,6 +47,8 @@ config USB_ARCH_HAS_OHCI # MIPS: default y if MIPS_ALCHEMY default y if MACH_JZ4740 + default y if SOC_AR71XX + default y if SOC_AR724X # SH: default y if CPU_SUBTYPE_SH7720 default y if CPU_SUBTYPE_SH7721
Same as for USB_ARCH_HAS_EHCI, These should go in arch/mips/Kconfig as 'select USB_ARCH_HAS_OHCI'
Thanks, David Daney -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html