Lines Matching refs:tegra_phy

956 static int utmi_phy_probe(struct tegra_usb_phy *tegra_phy,  in utmi_phy_probe()  argument
963 tegra_phy->is_ulpi_phy = false; in utmi_phy_probe()
975 tegra_phy->pad_regs = devm_ioremap(&pdev->dev, res->start, in utmi_phy_probe()
977 if (!tegra_phy->pad_regs) { in utmi_phy_probe()
982 tegra_phy->config = devm_kzalloc(&pdev->dev, sizeof(*config), in utmi_phy_probe()
984 if (!tegra_phy->config) in utmi_phy_probe()
987 config = tegra_phy->config; in utmi_phy_probe()
1019 if (tegra_phy->soc_config->requires_extra_tuning_parameters) { in utmi_phy_probe()
1073 struct tegra_usb_phy *tegra_phy; in tegra_usb_phy_probe() local
1081 tegra_phy = devm_kzalloc(&pdev->dev, sizeof(*tegra_phy), GFP_KERNEL); in tegra_usb_phy_probe()
1082 if (!tegra_phy) in tegra_usb_phy_probe()
1085 tegra_phy->soc_config = of_device_get_match_data(&pdev->dev); in tegra_usb_phy_probe()
1097 tegra_phy->regs = devm_ioremap(&pdev->dev, res->start, in tegra_usb_phy_probe()
1099 if (!tegra_phy->regs) { in tegra_usb_phy_probe()
1104 tegra_phy->is_legacy_phy = in tegra_usb_phy_probe()
1108 tegra_phy->mode = usb_get_dr_mode(&pdev->dev); in tegra_usb_phy_probe()
1110 tegra_phy->mode = USB_DR_MODE_HOST; in tegra_usb_phy_probe()
1112 if (tegra_phy->mode == USB_DR_MODE_UNKNOWN) { in tegra_usb_phy_probe()
1118 tegra_phy->vbus = devm_regulator_get(&pdev->dev, "vbus"); in tegra_usb_phy_probe()
1119 if (IS_ERR(tegra_phy->vbus)) in tegra_usb_phy_probe()
1120 return PTR_ERR(tegra_phy->vbus); in tegra_usb_phy_probe()
1122 tegra_phy->pll_u = devm_clk_get(&pdev->dev, "pll_u"); in tegra_usb_phy_probe()
1123 err = PTR_ERR_OR_ZERO(tegra_phy->pll_u); in tegra_usb_phy_probe()
1132 err = utmi_phy_probe(tegra_phy, pdev); in tegra_usb_phy_probe()
1136 tegra_phy->pad_clk = devm_clk_get(&pdev->dev, "utmi-pads"); in tegra_usb_phy_probe()
1137 err = PTR_ERR_OR_ZERO(tegra_phy->pad_clk); in tegra_usb_phy_probe()
1152 tegra_phy->pad_rst = reset; in tegra_usb_phy_probe()
1156 tegra_phy->is_ulpi_phy = true; in tegra_usb_phy_probe()
1158 tegra_phy->clk = devm_clk_get(&pdev->dev, "ulpi-link"); in tegra_usb_phy_probe()
1159 err = PTR_ERR_OR_ZERO(tegra_phy->clk); in tegra_usb_phy_probe()
1176 tegra_phy->reset_gpio = gpiod; in tegra_usb_phy_probe()
1185 tegra_phy->ulpi = phy; in tegra_usb_phy_probe()
1186 tegra_phy->ulpi->io_priv = tegra_phy->regs + ULPI_VIEWPORT; in tegra_usb_phy_probe()
1195 tegra_phy->u_phy.dev = &pdev->dev; in tegra_usb_phy_probe()
1196 tegra_phy->u_phy.init = tegra_usb_phy_init; in tegra_usb_phy_probe()
1197 tegra_phy->u_phy.shutdown = tegra_usb_phy_shutdown; in tegra_usb_phy_probe()
1198 tegra_phy->u_phy.set_suspend = tegra_usb_phy_set_suspend; in tegra_usb_phy_probe()
1200 platform_set_drvdata(pdev, tegra_phy); in tegra_usb_phy_probe()
1202 return usb_add_phy_dev(&tegra_phy->u_phy); in tegra_usb_phy_probe()
1207 struct tegra_usb_phy *tegra_phy = platform_get_drvdata(pdev); in tegra_usb_phy_remove() local
1209 usb_remove_phy(&tegra_phy->u_phy); in tegra_usb_phy_remove()