usb: orion-ehci: Add support for the Armada 3700
authorHua Jing <jinghua@marvell.com>
Thu, 9 Mar 2017 17:52:56 +0000 (18:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2017 04:32:59 +0000 (13:32 +0900)
commit356c50079b96e5947db4a974da620cd2c4b20e9e
treee9254c550bf0cddbc2544dc361efe1bef0954c8e
parent8d66db50b2ac9dbf5cca9ede64f1c859d7b86eb6
usb: orion-ehci: Add support for the Armada 3700

- Add a new compatible string for the Armada 3700 SoCs

- add sbuscfg support for orion usb controller driver. For the SoCs
  without hlock, need to program BAWR/BARD/AHBBRST fields in the sbuscfg
  register to guarantee the AHB master's burst would not overrun or
  underrun the FIFO.

- the sbuscfg register has to be set after the usb controller reset,
  otherwise the value would be overridden to 0. In order to do this, the
  reset callback is registered.

[gregory.clement@free-electrons.com: - reword commit and comments
     - fix error path in ehci_orion_drv_reset()
     - fix checkpatch warning]
Signed-off-by: Hua Jing <jinghua@marvell.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Rob Herring <robh@kernel.org>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/devicetree/bindings/usb/ehci-orion.txt
drivers/usb/host/ehci-orion.c