Hi Vitaly, I believe that your patch is addresses by my patch in 2.6.23 queue: http://www.kernel.org/pub/linux/kernel/people/gregkh/usb/2.6/2.6.22/usb- ehci_fsl-update-for-mpc831x-support.patch
- Leo > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > On Behalf Of Vitaly Bordug > Sent: Tuesday, July 17, 2007 8:59 AM > To: Greg KH > Cc: linuxppc-dev@ozlabs.org > Subject: [PATCH] USB_DR host support for FSL MPC831x > > > Modifies fsl_ehci code so that to get USB host working on > mpc831x platform. Verified with MPC8313RDB reference board. > > Signed-off-by: Vitaly Bordug <[EMAIL PROTECTED]> > > --- > > arch/powerpc/boot/dts/mpc8313erdb.dts | 1 + > drivers/usb/host/ehci-fsl.c | 4 +++- > drivers/usb/host/ehci-hcd.c | 2 +- > 3 files changed, 5 insertions(+), 2 deletions(-) > > diff --git a/arch/powerpc/boot/dts/mpc8313erdb.dts > b/arch/powerpc/boot/dts/mpc8313erdb.dts > index 1b351dc..c330e79 100644 > --- a/arch/powerpc/boot/dts/mpc8313erdb.dts > +++ b/arch/powerpc/boot/dts/mpc8313erdb.dts > @@ -90,6 +90,7 @@ > interrupt-parent = < &ipic >; > interrupts = <26 8>; > phy_type = "utmi_wide"; > + control_init = <00000280>; // UTMI ext > 48 MHz clk > }; > > [EMAIL PROTECTED] { > diff --git a/drivers/usb/host/ehci-fsl.c > b/drivers/usb/host/ehci-fsl.c index c7a7c59..3e3187b 100644 > --- a/drivers/usb/host/ehci-fsl.c > +++ b/drivers/usb/host/ehci-fsl.c > @@ -185,12 +185,14 @@ static void mpc83xx_usb_setup(struct > usb_hcd *hcd) > struct ehci_hcd *ehci = hcd_to_ehci(hcd); > struct fsl_usb2_platform_data *pdata; > void __iomem *non_ehci = hcd->regs; > + u32 temp; > > pdata = > (struct fsl_usb2_platform_data *)hcd->self.controller-> > platform_data; > /* Enable PHY interface in the control reg. */ > - out_be32(non_ehci + FSL_SOC_USB_CTRL, 0x00000004); > + temp = in_be32(non_ehci + FSL_SOC_USB_CTRL); > + out_be32(non_ehci + FSL_SOC_USB_CTRL, temp | 0x00000004); > out_be32(non_ehci + FSL_SOC_USB_SNOOP1, 0x0000001b); > > #if defined(CONFIG_PPC32) && !defined(CONFIG_NOT_COHERENT_CACHE) > diff --git a/drivers/usb/host/ehci-hcd.c > b/drivers/usb/host/ehci-hcd.c index 099aff6..994a127 100644 > --- a/drivers/usb/host/ehci-hcd.c > +++ b/drivers/usb/host/ehci-hcd.c > @@ -925,7 +925,7 @@ MODULE_LICENSE ("GPL"); > #define PCI_DRIVER ehci_pci_driver > #endif > > -#ifdef CONFIG_MPC834x > +#if defined(CONFIG_MPC834x) || defined(CONFIG_PPC_MPC831x) > #include "ehci-fsl.c" > #define PLATFORM_DRIVER ehci_fsl_driver > #endif > > _______________________________________________ > Linuxppc-dev mailing list > Linuxppc-dev@ozlabs.org > https://ozlabs.org/mailman/listinfo/linuxppc-dev > _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev