Commit c4b8692a authored by Kevin Cernekee's avatar Kevin Cernekee Committed by Greg Kroah-Hartman

USB: ohci-platform: Expose no_big_frame_no and num_ports in DT

These quirks are currently set through platform_data; allow DT-based SoCs
to use them too.
Signed-off-by: default avatarKevin Cernekee <cernekee@gmail.com>
Acked-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a4760b34
...@@ -9,6 +9,8 @@ Optional properties: ...@@ -9,6 +9,8 @@ Optional properties:
- big-endian-regs : boolean, set this for hcds with big-endian registers - big-endian-regs : boolean, set this for hcds with big-endian registers
- big-endian-desc : boolean, set this for hcds with big-endian descriptors - big-endian-desc : boolean, set this for hcds with big-endian descriptors
- big-endian : boolean, for hcds with big-endian-regs + big-endian-desc - big-endian : boolean, for hcds with big-endian-regs + big-endian-desc
- no-big-frame-no : boolean, set if frame_no lives in bits [15:0] of HCCA
- num-ports : u32, to override the detected port count
- clocks : a list of phandle + clock specifier pairs - clocks : a list of phandle + clock specifier pairs
- phys : phandle + phy specifier pair - phys : phandle + phy specifier pair
- phy-names : "usb" - phy-names : "usb"
......
...@@ -175,6 +175,12 @@ static int ohci_platform_probe(struct platform_device *dev) ...@@ -175,6 +175,12 @@ static int ohci_platform_probe(struct platform_device *dev)
if (of_property_read_bool(dev->dev.of_node, "big-endian")) if (of_property_read_bool(dev->dev.of_node, "big-endian"))
ohci->flags |= OHCI_QUIRK_BE_MMIO | OHCI_QUIRK_BE_DESC; ohci->flags |= OHCI_QUIRK_BE_MMIO | OHCI_QUIRK_BE_DESC;
if (of_property_read_bool(dev->dev.of_node, "no-big-frame-no"))
ohci->flags |= OHCI_QUIRK_FRAME_NO;
of_property_read_u32(dev->dev.of_node, "num-ports",
&ohci->num_ports);
priv->phy = devm_phy_get(&dev->dev, "usb"); priv->phy = devm_phy_get(&dev->dev, "usb");
if (IS_ERR(priv->phy)) { if (IS_ERR(priv->phy)) {
err = PTR_ERR(priv->phy); err = PTR_ERR(priv->phy);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment