• Home
  • Raw
  • Download

Lines Matching +full:cluster +full:- +full:mode

2  * USB cluster support for Armada 375 platform.
6 * Gregory CLEMENT <gregory.clement@free-electrons.com>
13 * USB3 controller. The USB cluster control register allows to manage
17 #include <dt-bindings/phy/phy.h>
42 return -ENODEV; in armada375_usb_phy_init()
44 reg = readl(cluster_phy->reg); in armada375_usb_phy_init()
45 if (cluster_phy->use_usb3) in armada375_usb_phy_init()
49 writel(reg, cluster_phy->reg); in armada375_usb_phy_init()
73 return ERR_PTR(-ENODEV); in armada375_usb_phy_xlate()
81 if (WARN_ON((cluster_phy->phy_provided != PHY_NONE) && in armada375_usb_phy_xlate()
82 (cluster_phy->phy_provided != args->args[0]))) { in armada375_usb_phy_xlate()
85 if (args->args[0] == PHY_TYPE_USB2) in armada375_usb_phy_xlate()
86 return ERR_PTR(-EBUSY); in armada375_usb_phy_xlate()
88 return ERR_PTR(-ENODEV); in armada375_usb_phy_xlate()
91 if (args->args[0] == PHY_TYPE_USB2) in armada375_usb_phy_xlate()
92 cluster_phy->use_usb3 = false; in armada375_usb_phy_xlate()
93 else if (args->args[0] == PHY_TYPE_USB3) in armada375_usb_phy_xlate()
94 cluster_phy->use_usb3 = true; in armada375_usb_phy_xlate()
96 dev_err(dev, "Invalid PHY mode\n"); in armada375_usb_phy_xlate()
97 return ERR_PTR(-ENODEV); in armada375_usb_phy_xlate()
100 /* Store which phy mode is used for next test */ in armada375_usb_phy_xlate()
101 cluster_phy->phy_provided = args->args[0]; in armada375_usb_phy_xlate()
103 return cluster_phy->phy; in armada375_usb_phy_xlate()
108 struct device *dev = &pdev->dev; in armada375_usb_phy_probe()
117 return -ENOMEM; in armada375_usb_phy_probe()
120 usb_cluster_base = devm_ioremap_resource(&pdev->dev, res); in armada375_usb_phy_probe()
130 cluster_phy->phy = phy; in armada375_usb_phy_probe()
131 cluster_phy->reg = usb_cluster_base; in armada375_usb_phy_probe()
136 phy_provider = devm_of_phy_provider_register(&pdev->dev, in armada375_usb_phy_probe()
142 { .compatible = "marvell,armada-375-usb-cluster", },
151 .name = "armada-375-usb-cluster",
156 MODULE_DESCRIPTION("Armada 375 USB cluster driver");
157 MODULE_AUTHOR("Gregory CLEMENT <gregory.clement@free-electrons.com>");