usb: host: xhci-plat: add clock support
authorGregory CLEMENT <gregory.clement@free-electrons.com>
Thu, 15 May 2014 10:17:32 +0000 (12:17 +0200)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Wed, 4 Feb 2015 10:14:47 +0000 (11:14 +0100)
commitbc47e1e15ccd9c37aec037b9dbdd7448cb77611f
treeb6e0a043f3f2ad0646b34d20379c574104ebba6c
parente8f9a3d7b634aa9bf385ca45d7176ebafd49964c
usb: host: xhci-plat: add clock support

Some platforms (such as the Armada 38x ones) can gate the clock of
their USB controller. This patch adds the support for one clock in
xhci-plat, by enabling it during probe and disabling it on remove.

To achieve this, it adds a 'struct clk *' member in xhci_hcd. While
only used for now in xhci-plat, it might be used by other drivers in
the future. Moreover, the xhci_hcd structure already holds other
members such as msix_count and msix_entries, which are MSI-X specific,
and therefore only used by xhci-pci.

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Felipe Balbi <balbi@ti.com>
Acked-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 4718c177405112386a977fd9f1cba5fd6aa82315)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/usb/host/xhci-plat.c
drivers/usb/host/xhci.h