]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: ehci-tegra: Add vbus_gpio to platform data
authorStephen Warren <swarren@nvidia.com>
Fri, 16 Mar 2012 22:06:07 +0000 (16:06 -0600)
committerStephen Warren <swarren@nvidia.com>
Tue, 10 Apr 2012 19:36:31 +0000 (13:36 -0600)
commit505867499df19696864accd5676797599859a82e
tree90ee555eb2fdf0b7df5c7185d65e10c9907f7471
parenta57be237f6aa7ed747c29fd4b89ea4d0c2898b4f
usb: ehci-tegra: Add vbus_gpio to platform data

Add a vbus_gpio field to platform data. This mirrors the device tree
property nvidia,vbus-gpio. This makes the VBUS GPIO handling identical
between booting with board files and device tree; the driver always does
it.

This removes the need for board files to request and initialize the GPIO
early during their boot process, perhaps even before the GPIO driver is
ready to process the request.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: linux-usb@vger.kernel.org
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-tegra/devices.c
drivers/usb/host/ehci-tegra.c
include/linux/platform_data/tegra_usb.h