]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commitdiff
ARM: tegra: don't hard-code USB ULPI PHY reset_gpio
authorStephen Warren <swarren@nvidia.com>
Thu, 12 Apr 2012 21:03:52 +0000 (15:03 -0600)
committerDaniel Solomon <daniels@nvidia.com>
Wed, 11 May 2016 00:42:35 +0000 (17:42 -0700)
Not all boards use GPIO_PV0 as the ULPI PHY reset signal. Instead of
hard-coding this GPIO into devices.c, make the board files set it
explicitly. This will allow the PHY code to differentiate between set and
unset values, and hence know when to read the value from device tree.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
arch/arm/mach-tegra/devices.h

index 138c642e59f4cec93143845d8e072df332b083e3..4f50527264956b0f28413e462b9afef024b00322 100644 (file)
 #include <linux/platform_device.h>
 #include <linux/platform_data/tegra_usb.h>
 
+#include <mach/usb_phy.h>
+
+extern struct tegra_ulpi_config tegra_ehci2_ulpi_phy_config;
+
 extern struct tegra_ehci_platform_data tegra_ehci1_pdata;
 extern struct tegra_ehci_platform_data tegra_ehci2_pdata;
 extern struct tegra_ehci_platform_data tegra_ehci3_pdata;