Lines Matching refs:tegra_phy

859 static int utmi_phy_probe(struct tegra_usb_phy *tegra_phy,  in utmi_phy_probe()  argument
866 tegra_phy->is_ulpi_phy = false; in utmi_phy_probe()
874 tegra_phy->pad_regs = devm_ioremap(&pdev->dev, res->start, in utmi_phy_probe()
876 if (!tegra_phy->pad_regs) { in utmi_phy_probe()
881 tegra_phy->config = devm_kzalloc(&pdev->dev, sizeof(*config), in utmi_phy_probe()
883 if (!tegra_phy->config) in utmi_phy_probe()
886 config = tegra_phy->config; in utmi_phy_probe()
918 if (tegra_phy->soc_config->requires_extra_tuning_parameters) { in utmi_phy_probe()
973 struct tegra_usb_phy *tegra_phy = NULL; in tegra_usb_phy_probe() local
978 tegra_phy = devm_kzalloc(&pdev->dev, sizeof(*tegra_phy), GFP_KERNEL); in tegra_usb_phy_probe()
979 if (!tegra_phy) in tegra_usb_phy_probe()
987 tegra_phy->soc_config = match->data; in tegra_usb_phy_probe()
995 tegra_phy->regs = devm_ioremap(&pdev->dev, res->start, in tegra_usb_phy_probe()
997 if (!tegra_phy->regs) { in tegra_usb_phy_probe()
1002 tegra_phy->is_legacy_phy = in tegra_usb_phy_probe()
1008 err = utmi_phy_probe(tegra_phy, pdev); in tegra_usb_phy_probe()
1014 tegra_phy->is_ulpi_phy = true; in tegra_usb_phy_probe()
1016 tegra_phy->reset_gpio = in tegra_usb_phy_probe()
1018 if (!gpio_is_valid(tegra_phy->reset_gpio)) { in tegra_usb_phy_probe()
1020 tegra_phy->reset_gpio); in tegra_usb_phy_probe()
1021 return tegra_phy->reset_gpio; in tegra_usb_phy_probe()
1023 tegra_phy->config = NULL; in tegra_usb_phy_probe()
1032 tegra_phy->mode = usb_get_dr_mode(&pdev->dev); in tegra_usb_phy_probe()
1034 tegra_phy->mode = USB_DR_MODE_HOST; in tegra_usb_phy_probe()
1036 if (tegra_phy->mode == USB_DR_MODE_UNKNOWN) { in tegra_usb_phy_probe()
1043 tegra_phy->vbus = devm_regulator_get(&pdev->dev, "vbus"); in tegra_usb_phy_probe()
1044 if (IS_ERR(tegra_phy->vbus)) in tegra_usb_phy_probe()
1045 return PTR_ERR(tegra_phy->vbus); in tegra_usb_phy_probe()
1048 tegra_phy->vbus = ERR_PTR(-ENODEV); in tegra_usb_phy_probe()
1051 tegra_phy->u_phy.dev = &pdev->dev; in tegra_usb_phy_probe()
1052 err = tegra_usb_phy_init(tegra_phy); in tegra_usb_phy_probe()
1056 tegra_phy->u_phy.set_suspend = tegra_usb_phy_suspend; in tegra_usb_phy_probe()
1058 platform_set_drvdata(pdev, tegra_phy); in tegra_usb_phy_probe()
1060 err = usb_add_phy_dev(&tegra_phy->u_phy); in tegra_usb_phy_probe()
1062 tegra_usb_phy_close(tegra_phy); in tegra_usb_phy_probe()
1071 struct tegra_usb_phy *tegra_phy = platform_get_drvdata(pdev); in tegra_usb_phy_remove() local
1073 usb_remove_phy(&tegra_phy->u_phy); in tegra_usb_phy_remove()
1074 tegra_usb_phy_close(tegra_phy); in tegra_usb_phy_remove()