USB: add USB EHCI support for MPC5121 SoC
authorAnatolij Gustschin <agust@denx.de>
Tue, 28 Sep 2010 18:55:21 +0000 (20:55 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Oct 2010 17:21:58 +0000 (10:21 -0700)
commit230f7ede6c2f0e403f29e03e0251a470aa9350dd
tree6f1c14f10696c12fd4461cc48289b3cb7a342060
parent126512e3f274802ca65ebeca8660237f0361ad48
USB: add USB EHCI support for MPC5121 SoC

Extends FSL EHCI platform driver glue layer to support
MPC5121 USB controllers. MPC5121 Rev 2.0 silicon EHCI
registers are in big endian format. The appropriate flags
are set using the information in the platform data structure.
MPC83xx system interface registers are not available on
MPC512x, so the access to these registers is isolated in
MPC512x case. Furthermore the USB controller clocks
must be enabled before 512x register accesses which is
done by providing platform specific init callback.

The MPC512x internal USB PHY doesn't provide supply voltage.
For boards using different power switches allow specifying
DRVVBUS and PWR_FAULT signal polarity of the MPC5121 internal
PHY using "fsl,invert-drvvbus" and "fsl,invert-pwr-fault"
properties in the device tree USB nodes. Adds documentation
for this new device tree bindings.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Cc: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Documentation/powerpc/dts-bindings/fsl/usb.txt
drivers/usb/Kconfig
drivers/usb/host/Kconfig
drivers/usb/host/ehci-fsl.c
drivers/usb/host/ehci-fsl.h
drivers/usb/host/ehci-mem.c
drivers/usb/host/fsl-mph-dr-of.c
include/linux/fsl_devices.h