Hello,
This adds support for the USB Host interface on the AMCC 440EP SoC to
the PowerPC OHCI driver. Any comments would be appreciated.
-Wade Farnsworth
Signed-off-by: John Otken <[EMAIL PROTECTED]>
Signed-off-by: Wade Farnsworth <[EMAIL PROTECTED]>
--- linux-2.6/drivers/usb/Kconfig 2005-09-12 11:18:13.000000000 -0700
+++ linux-2.6-dev/drivers/usb/Kconfig 2005-09-14 11:57:33.000000000 -0700
@@ -25,6 +25,7 @@ config USB_ARCH_HAS_OHCI
# PPC:
default y if STB03xxx
default y if PPC_MPC52xx
+ default y if 440EP
# MIPS:
default y if SOC_AU1X00
# more:
diff -uprN linux-2.6/drivers/usb/host/Kconfig
linux-2.6-dev/drivers/usb/host/Kconfig
--- linux-2.6/drivers/usb/host/Kconfig 2005-09-12 11:18:13.000000000 -0700
+++ linux-2.6-dev/drivers/usb/host/Kconfig 2005-09-13 13:57:32.000000000
-0700
@@ -81,7 +81,7 @@ config USB_OHCI_HCD
config USB_OHCI_HCD_PPC_SOC
bool "OHCI support for on-chip PPC USB controller"
- depends on USB_OHCI_HCD && (STB03xxx || PPC_MPC52xx)
+ depends on USB_OHCI_HCD && (STB03xxx || PPC_MPC52xx || 440EP)
default y
select USB_OHCI_BIG_ENDIAN
---help---
@@ -90,7 +90,7 @@ config USB_OHCI_HCD_PPC_SOC
config USB_OHCI_HCD_PCI
bool "OHCI support for PCI-bus USB controllers"
- depends on USB_OHCI_HCD && PCI && (STB03xxx || PPC_MPC52xx)
+ depends on USB_OHCI_HCD && PCI && (STB03xxx || PPC_MPC52xx || 440EP)
default y
select USB_OHCI_LITTLE_ENDIAN
---help---
@@ -105,7 +105,7 @@ config USB_OHCI_BIG_ENDIAN
config USB_OHCI_LITTLE_ENDIAN
bool
depends on USB_OHCI_HCD
- default n if STB03xxx || PPC_MPC52xx
+ default n if STB03xxx || PPC_MPC52xx || 440EP
default y
config USB_UHCI_HCD
diff -uprN linux-2.6/drivers/usb/host/ohci.h
linux-2.6-dev/drivers/usb/host/ohci.h
--- linux-2.6/drivers/usb/host/ohci.h 2005-09-13 13:42:44.000000000 -0700
+++ linux-2.6-dev/drivers/usb/host/ohci.h 2005-09-13 13:57:32.000000000
-0700
@@ -561,7 +561,7 @@ static inline u32 hc32_to_cpup (const st
* some big-endian SOC implementations. Same thing happens with PSW access.
*/
-#ifdef CONFIG_STB03xxx
+#if defined(CONFIG_STB03xxx) || defined(CONFIG_440EP)
#define OHCI_BE_FRAME_NO_SHIFT 16
#else
#define OHCI_BE_FRAME_NO_SHIFT 0