aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorJoachim Eastwood <manabian@gmail.com>2015-05-16 17:17:40 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-24 09:29:36 -0700
commit40f2f2a3255314fc826325f49add1a2fbfc811bd (patch)
treefff91466214ec45361cb1bf09bdf0ec0e932dddd /drivers/usb
parentdrivers:usb:fsl:Make fsl ehci drv an independent driver module (diff)
downloadlinux-dev-40f2f2a3255314fc826325f49add1a2fbfc811bd.tar.xz
linux-dev-40f2f2a3255314fc826325f49add1a2fbfc811bd.zip
USB: ehci-platform: support EHCIs with transaction translator
Some EHCI controllers have a Transaction Translator built into the root hub. Support this feature in device tree when using the ehci-platform driver by adding a feature flag for it. This is needed to get USB working on NXP LPC18xx/43xx platforms. Signed-off-by: Joachim Eastwood <manabian@gmail.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/host/ehci-platform.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci-platform.c b/drivers/usb/host/ehci-platform.c
index d8a75a51d6d4..ba07f16b13e0 100644
--- a/drivers/usb/host/ehci-platform.c
+++ b/drivers/usb/host/ehci-platform.c
@@ -202,6 +202,10 @@ static int ehci_platform_probe(struct platform_device *dev)
"needs-reset-on-resume"))
pdata->reset_on_resume = 1;
+ if (of_property_read_bool(dev->dev.of_node,
+ "has-transaction-translator"))
+ pdata->has_tt = 1;
+
priv->num_phys = of_count_phandle_with_args(dev->dev.of_node,
"phys", "#phy-cells");
priv->num_phys = priv->num_phys > 0 ? priv->num_phys : 1;