diff options
author | Srikanth Srinivasan <srikanth.srinivasan@freescale.com> | 2008-07-02 03:14:33 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-07-21 18:16:45 -0400 |
commit | 4f5342583c67fde6825d39b19c6b252db80beaf2 (patch) | |
tree | 2b782ee8b80b010be9219282fdbdd13913c8e69e /drivers | |
parent | a80d5ff0d7d3a99e962a02c36acf97ba5a70b86e (diff) |
USB: EHCI: Reconciling USB register differences on MPC85xx vs MPC83xx
A couple of USB register initializations had to be changed on MPC85xx
platforms. This is due to the internal SoC buses being different on
MPC83xx SoCs vs MPC85xx SoCs.
We currently handle this via an ifdef since 83xx and 85xx are mutually
exclusive kernel builds.
Signed-off-by: Srikanth Srinivasan <srikanth.srinivasan@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/host/ehci-fsl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c index f710a2d3423a..01c3da34f678 100644 --- a/drivers/usb/host/ehci-fsl.c +++ b/drivers/usb/host/ehci-fsl.c | |||
@@ -230,8 +230,13 @@ static void mpc83xx_usb_setup(struct usb_hcd *hcd) | |||
230 | 230 | ||
231 | /* put controller in host mode. */ | 231 | /* put controller in host mode. */ |
232 | ehci_writel(ehci, 0x00000003, non_ehci + FSL_SOC_USB_USBMODE); | 232 | ehci_writel(ehci, 0x00000003, non_ehci + FSL_SOC_USB_USBMODE); |
233 | #ifdef CONFIG_PPC_85xx | ||
234 | out_be32(non_ehci + FSL_SOC_USB_PRICTRL, 0x00000008); | ||
235 | out_be32(non_ehci + FSL_SOC_USB_AGECNTTHRSH, 0x00000080); | ||
236 | #else | ||
233 | out_be32(non_ehci + FSL_SOC_USB_PRICTRL, 0x0000000c); | 237 | out_be32(non_ehci + FSL_SOC_USB_PRICTRL, 0x0000000c); |
234 | out_be32(non_ehci + FSL_SOC_USB_AGECNTTHRSH, 0x00000040); | 238 | out_be32(non_ehci + FSL_SOC_USB_AGECNTTHRSH, 0x00000040); |
239 | #endif | ||
235 | out_be32(non_ehci + FSL_SOC_USB_SICTRL, 0x00000001); | 240 | out_be32(non_ehci + FSL_SOC_USB_SICTRL, 0x00000001); |
236 | } | 241 | } |
237 | 242 | ||