diff options
author | Kevin Cernekee <cernekee@gmail.com> | 2014-10-11 14:10:48 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-03 18:38:17 -0500 |
commit | c4b8692a0520331a0ede604e20a0a52b96a98607 (patch) | |
tree | 79477563cc20a2fc229e91609f30cb653085c49b /drivers/usb | |
parent | a4760b3413732bccac2795b6aed28e2ff99c8ef4 (diff) |
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: Kevin Cernekee <cernekee@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/ohci-platform.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/usb/host/ohci-platform.c b/drivers/usb/host/ohci-platform.c index 4369299064c7..6fb03f88b51d 100644 --- a/drivers/usb/host/ohci-platform.c +++ b/drivers/usb/host/ohci-platform.c | |||
@@ -175,6 +175,12 @@ static int ohci_platform_probe(struct platform_device *dev) | |||
175 | if (of_property_read_bool(dev->dev.of_node, "big-endian")) | 175 | if (of_property_read_bool(dev->dev.of_node, "big-endian")) |
176 | ohci->flags |= OHCI_QUIRK_BE_MMIO | OHCI_QUIRK_BE_DESC; | 176 | ohci->flags |= OHCI_QUIRK_BE_MMIO | OHCI_QUIRK_BE_DESC; |
177 | 177 | ||
178 | if (of_property_read_bool(dev->dev.of_node, "no-big-frame-no")) | ||
179 | ohci->flags |= OHCI_QUIRK_FRAME_NO; | ||
180 | |||
181 | of_property_read_u32(dev->dev.of_node, "num-ports", | ||
182 | &ohci->num_ports); | ||
183 | |||
178 | priv->phy = devm_phy_get(&dev->dev, "usb"); | 184 | priv->phy = devm_phy_get(&dev->dev, "usb"); |
179 | if (IS_ERR(priv->phy)) { | 185 | if (IS_ERR(priv->phy)) { |
180 | err = PTR_ERR(priv->phy); | 186 | err = PTR_ERR(priv->phy); |