]> 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>
Fri, 13 Apr 2012 15:42:33 +0000 (09:42 -0600)
commite57247b1f2e65038456a31a7919089fa4f6b855f
tree31d00ed6f68cc4168f7720cfe7c319cf4d9ae6db
parent4fd55dd2d3af8ed58b785d6e08a075dbfa01a5fb
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