USB: ehci-platform: support EHCIs with transaction translator
Subsystems (3)
PATCH 1/1 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 <[email protected]>
---
Documentation/devicetree/bindings/usb/usb-ehci.txt | 2 ++ drivers/usb/host/ehci-platform.c | 4 ++++ 2 files changed, 6 insertions(+)
Documentation/devicetree/bindings/usb/usb-ehci.txt +2 -0
@@ -13,6 +13,8 @@ Optional properties: - big-endian-desc : boolean, set this for hcds with big-endian descriptors - big-endian : boolean, for hcds with big-endian-regs + big-endian-desc - needs-reset-on-resume : boolean, set this to force EHCI reset after resume + - has-transaction-translator : boolean, set this if EHCI have a Transaction + Translator built into the root hub. - clocks : a list of phandle + clock specifier pairs - phys : phandle + phy specifier pair - phy-names : "usb"
drivers/usb/host/ehci-platform.c +4 -0
@@ -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 ;
Signature · 1 line
1.8.0
Alan Stern
maintainerPATCH 1/1 USB: ehci-platform: support EHCIs with transaction translator
Quoted 31 lines · Joachim Eastwood
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 <[email protected]>---
Documentation/devicetree/bindings/usb/usb-ehci.txt | 2 ++ drivers/usb/host/ehci-platform.c | 4 ++++ 2 files changed, 6 insertions(+)Documentation/devicetree/bindings/usb/usb-ehci.txt +2
-0@@ -13,6 +13,8 @@ Optional properties: - big-endian-desc : boolean, set this for hcds with big-endian descriptors - big-endian : boolean, for hcds with big-endian-regs + big-endian-desc - needs-reset-on-resume : boolean, set this to force EHCI reset after resume + - has-transaction-translator : boolean, set this if EHCI have a Transaction + Translator built into the root hub. - clocks : a list of phandle + clock specifier pairs - phys : phandle + phy specifier pair - phy-names : "usb"drivers/usb/host/ehci-platform.c +0
-0
drivers/usb/host/ehci-platform.c static int ehci_platform_probe(struct platform_device *dev) · line 211
Quoted 10 lines
drivers/usb/host/ehci-platform.c +4
-0@@ -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 ;
Acked-by Alan Stern <[email protected]>