/openbmc/linux/drivers/usb/phy/ |
H A D | phy.c | 33 struct usb_phy *phy; 51 static struct usb_phy *__usb_find_phy(struct list_head *list, in __usb_find_phy() 54 struct usb_phy *phy = NULL; in __usb_find_phy() 66 static struct usb_phy *__of_usb_find_phy(struct device_node *node) in __of_usb_find_phy() 68 struct usb_phy *phy; in __of_usb_find_phy() 83 static struct usb_phy *__device_to_usb_phy(const struct device *dev) in __device_to_usb_phy() 85 struct usb_phy *usb_phy; in __device_to_usb_phy() local 87 list_for_each_entry(usb_phy, &phy_list, head) { in __device_to_usb_phy() 88 if (usb_phy->dev == dev) in __device_to_usb_phy() 89 return usb_phy; in __device_to_usb_phy() [all …]
|
H A D | phy-ulpi.c | 42 static int ulpi_set_otg_flags(struct usb_phy *phy) in ulpi_set_otg_flags() 66 static int ulpi_set_fc_flags(struct usb_phy *phy) in ulpi_set_fc_flags() 108 static int ulpi_set_ic_flags(struct usb_phy *phy) in ulpi_set_ic_flags() 127 static int ulpi_set_flags(struct usb_phy *phy) in ulpi_set_flags() 142 static int ulpi_check_integrity(struct usb_phy *phy) in ulpi_check_integrity() 168 static int ulpi_init(struct usb_phy *phy) in ulpi_init() 201 struct usb_phy *phy = otg->usb_phy; in ulpi_set_host() 227 struct usb_phy *phy = otg->usb_phy; in ulpi_set_vbus() 243 static void otg_ulpi_init(struct usb_phy *phy, struct usb_otg *otg, in otg_ulpi_init() 253 otg->usb_phy = phy; in otg_ulpi_init() [all …]
|
H A D | phy-generic.h | 10 struct usb_phy phy; 22 int usb_gen_phy_init(struct usb_phy *phy); 23 void usb_gen_phy_shutdown(struct usb_phy *phy);
|
H A D | phy-isp1301.c | 19 struct usb_phy phy; 56 static int isp1301_phy_init(struct usb_phy *phy) in isp1301_phy_init() 83 static int isp1301_phy_set_vbus(struct usb_phy *phy, int on) in isp1301_phy_set_vbus() 98 struct usb_phy *phy; in isp1301_probe()
|
/openbmc/linux/include/linux/usb/ |
H A D | phy.h | 66 struct usb_phy; 73 int (*read)(struct usb_phy *x, u32 reg); 74 int (*write)(struct usb_phy *x, u32 val, u32 reg); 88 struct usb_phy { struct 126 int (*init)(struct usb_phy *x); argument 127 void (*shutdown)(struct usb_phy *x); argument 130 int (*set_vbus)(struct usb_phy *x, int on); argument 133 int (*set_power)(struct usb_phy *x, argument 137 int (*set_suspend)(struct usb_phy *x, argument 145 int (*set_wakeup)(struct usb_phy *x, bool enabled); argument [all …]
|
H A D | tegra_usb_phy.h | 71 struct usb_phy *ulpi; 72 struct usb_phy u_phy; 82 void tegra_usb_phy_preresume(struct usb_phy *phy); 84 void tegra_usb_phy_postresume(struct usb_phy *phy); 86 void tegra_ehci_phy_restore_start(struct usb_phy *phy, 89 void tegra_ehci_phy_restore_end(struct usb_phy *phy);
|
H A D | ulpi.h | 52 struct usb_phy *otg_ulpi_create(struct usb_phy_io_ops *ops, 55 struct usb_phy *devm_otg_ulpi_create(struct device *dev, 59 static inline struct usb_phy *otg_ulpi_create(struct usb_phy_io_ops *ops, in otg_ulpi_create() 65 static inline struct usb_phy *devm_otg_ulpi_create(struct device *dev, in devm_otg_ulpi_create()
|
/openbmc/u-boot/drivers/phy/allwinner/ |
H A D | phy-sun4i-usb.c | 131 struct sun4i_usb_phy_plat *usb_phy; member 139 struct sun4i_usb_phy_plat *usb_phy = &phy_data->usb_phy[phy->id]; in sun4i_usb_phy_write() local 140 u32 temp, usbc_bit = BIT(usb_phy->id * 2); in sun4i_usb_phy_write() 184 struct sun4i_usb_phy_plat *usb_phy = &data->usb_phy[phy->id]; in sun4i_usb_phy_passby() local 187 if (!usb_phy->pmu) in sun4i_usb_phy_passby() 194 if (data->cfg->type == sun8i_a83t_phy && usb_phy->id == 2) in sun4i_usb_phy_passby() 198 reg_value = readl(usb_phy->pmu); in sun4i_usb_phy_passby() 205 writel(reg_value, usb_phy->pmu); in sun4i_usb_phy_passby() 211 struct sun4i_usb_phy_plat *usb_phy = &data->usb_phy[phy->id]; in sun4i_usb_phy_power_on() local 218 usb_phy->power_on_count++; in sun4i_usb_phy_power_on() [all …]
|
/openbmc/linux/drivers/phy/broadcom/ |
H A D | phy-brcm-usb-init-synopsys.c | 246 void __iomem *usb_phy = params->regs[BRCM_REGS_USB_PHY]; in usb_init_common_7211b0() local 260 brcm_usb_writel(0, usb_phy + USB_PHY_IDDQ); in usb_init_common_7211b0() 261 reg = brcm_usb_readl(usb_phy + USB_PHY_PLL_CTL); in usb_init_common_7211b0() 263 brcm_usb_writel(reg, usb_phy + USB_PHY_PLL_CTL); in usb_init_common_7211b0() 266 reg = brcm_usb_readl(usb_phy + USB_PHY_UTMI_CTL_1); in usb_init_common_7211b0() 268 brcm_usb_writel(reg, usb_phy + USB_PHY_UTMI_CTL_1); in usb_init_common_7211b0() 272 reg = brcm_usb_readl(usb_phy + USB_PHY_PLL_CTL); in usb_init_common_7211b0() 274 brcm_usb_writel(reg, usb_phy + USB_PHY_PLL_CTL); in usb_init_common_7211b0() 280 brcm_usb_writel(reg, usb_phy + USB_PHY_PLL_LDO_CTL); in usb_init_common_7211b0() 284 reg = brcm_usb_readl(usb_phy + USB_PHY_STATUS); in usb_init_common_7211b0() [all …]
|
/openbmc/u-boot/drivers/phy/ |
H A D | omap-usb2-phy.c | 97 static int omap_usb_phy_power(struct phy *usb_phy, bool on) in omap_usb_phy_power() argument 99 struct udevice *dev = usb_phy->dev; in omap_usb_phy_power() 124 static int omap_usb2_phy_init(struct phy *usb_phy) in omap_usb2_phy_init() argument 126 struct udevice *dev = usb_phy->dev; in omap_usb2_phy_init() 147 static int omap_usb2_phy_power_on(struct phy *usb_phy) in omap_usb2_phy_power_on() argument 149 return omap_usb_phy_power(usb_phy, true); in omap_usb2_phy_power_on() 152 static int omap_usb2_phy_power_off(struct phy *usb_phy) in omap_usb2_phy_power_off() argument 154 return omap_usb_phy_power(usb_phy, false); in omap_usb2_phy_power_off() 157 static int omap_usb2_phy_exit(struct phy *usb_phy) in omap_usb2_phy_exit() argument 159 return omap_usb_phy_power(usb_phy, false); in omap_usb2_phy_exit()
|
H A D | sti_usb_phy.c | 60 static int sti_usb_phy_init(struct phy *usb_phy) in sti_usb_phy_init() argument 62 struct udevice *dev = usb_phy->dev; in sti_usb_phy_init() 79 static int sti_usb_phy_exit(struct phy *usb_phy) in sti_usb_phy_exit() argument 81 struct udevice *dev = usb_phy->dev; in sti_usb_phy_exit()
|
/openbmc/u-boot/arch/powerpc/cpu/mpc85xx/ |
H A D | cpu_init.c | 63 void usb_single_source_clk_configure(struct ccsr_usb_phy *usb_phy) in usb_single_source_clk_configure() argument 69 clrbits_be32(&usb_phy->pllprg[1], in usb_single_source_clk_configure() 71 setbits_be32(&usb_phy->pllprg[1], in usb_single_source_clk_configure() 80 void fsl_erratum_a006261_workaround(struct ccsr_usb_phy __iomem *usb_phy) in fsl_erratum_a006261_workaround() argument 83 u32 xcvrprg = in_be32(&usb_phy->port1.xcvrprg); in fsl_erratum_a006261_workaround() 90 out_be32(&usb_phy->port1.xcvrprg, xcvrprg); in fsl_erratum_a006261_workaround() 92 xcvrprg = in_be32(&usb_phy->port2.xcvrprg); in fsl_erratum_a006261_workaround() 98 out_be32(&usb_phy->port2.xcvrprg, xcvrprg); in fsl_erratum_a006261_workaround() 102 u32 status = in_be32(&usb_phy->status1); in fsl_erratum_a006261_workaround() 112 setbits_be32(&usb_phy->config1, in fsl_erratum_a006261_workaround() [all …]
|
/openbmc/linux/drivers/usb/host/ |
H A D | ohci-omap.c | 77 otg_start_hnp(hcd->usb_phy->otg); in start_hnp() 80 hcd->usb_phy->otg->state = OTG_STATE_A_SUSPEND; in start_hnp() 111 hcd->usb_phy = usb_get_phy(USB_PHY_TYPE_USB2); in ohci_omap_reset() 112 if (!IS_ERR_OR_NULL(hcd->usb_phy)) { in ohci_omap_reset() 113 int status = otg_set_host(hcd->usb_phy->otg, in ohci_omap_reset() 116 hcd->usb_phy->label, status); in ohci_omap_reset() 118 usb_put_phy(hcd->usb_phy); in ohci_omap_reset() 332 if (!IS_ERR_OR_NULL(hcd->usb_phy)) { in ohci_hcd_omap_remove() 333 (void) otg_set_host(hcd->usb_phy->otg, 0); in ohci_hcd_omap_remove() 334 usb_put_phy(hcd->usb_phy); in ohci_hcd_omap_remove()
|
H A D | xhci-plat.c | 266 hcd->usb_phy = devm_usb_get_phy_by_phandle(sysdev, "usb-phy", 0); in xhci_plat_probe() 267 if (IS_ERR(hcd->usb_phy)) { in xhci_plat_probe() 268 ret = PTR_ERR(hcd->usb_phy); in xhci_plat_probe() 271 hcd->usb_phy = NULL; in xhci_plat_probe() 273 ret = usb_phy_init(hcd->usb_phy); in xhci_plat_probe() 300 xhci->shared_hcd->usb_phy = devm_usb_get_phy_by_phandle(sysdev, in xhci_plat_probe() 302 if (IS_ERR(xhci->shared_hcd->usb_phy)) { in xhci_plat_probe() 303 xhci->shared_hcd->usb_phy = NULL; in xhci_plat_probe() 305 ret = usb_phy_init(xhci->shared_hcd->usb_phy); in xhci_plat_probe() 344 usb_phy_shutdown(hcd->usb_phy); in xhci_plat_probe() [all …]
|
/openbmc/u-boot/arch/arm/cpu/armv7/ls102xa/ |
H A D | soc.c | 98 void __iomem *usb_phy = (void __iomem *)USB_PHY_BASE; in erratum_a009007() local 100 out_le16(usb_phy + USB_PHY_RX_OVRD_IN_HI, USB_PHY_RX_EQ_VAL_1); in erratum_a009007() 101 out_le16(usb_phy + USB_PHY_RX_OVRD_IN_HI, USB_PHY_RX_EQ_VAL_2); in erratum_a009007() 102 out_le16(usb_phy + USB_PHY_RX_OVRD_IN_HI, USB_PHY_RX_EQ_VAL_3); in erratum_a009007() 103 out_le16(usb_phy + USB_PHY_RX_OVRD_IN_HI, USB_PHY_RX_EQ_VAL_4); in erratum_a009007()
|
/openbmc/linux/drivers/power/supply/ |
H A D | sc2731_charger.c | 57 struct usb_phy *usb_phy; member 446 if (info->usb_phy->chg_state != USB_CHARGER_PRESENT) in sc2731_charger_detect_status() 449 usb_phy_get_charger_current(info->usb_phy, &min, &max); in sc2731_charger_detect_status() 496 info->usb_phy = devm_usb_get_phy_by_phandle(&pdev->dev, "phys", 0); in sc2731_charger_probe() 497 if (IS_ERR(info->usb_phy)) { in sc2731_charger_probe() 499 return PTR_ERR(info->usb_phy); in sc2731_charger_probe() 503 ret = usb_register_notifier(info->usb_phy, &info->usb_notify); in sc2731_charger_probe() 518 usb_unregister_notifier(info->usb_phy, &info->usb_notify); in sc2731_charger_remove()
|
H A D | da9150-charger.c | 31 struct usb_phy *usb_phy; member 579 charger->usb_phy = devm_usb_get_phy(dev, USB_PHY_TYPE_USB2); in da9150_charger_probe() 580 if (!IS_ERR_OR_NULL(charger->usb_phy)) { in da9150_charger_probe() 583 usb_register_notifier(charger->usb_phy, &charger->otg_nb); in da9150_charger_probe() 617 if (!IS_ERR_OR_NULL(charger->usb_phy)) in da9150_charger_probe() 618 usb_unregister_notifier(charger->usb_phy, &charger->otg_nb); in da9150_charger_probe() 656 if (!IS_ERR_OR_NULL(charger->usb_phy)) in da9150_charger_remove() 657 usb_unregister_notifier(charger->usb_phy, &charger->otg_nb); in da9150_charger_remove()
|
/openbmc/linux/drivers/usb/chipidea/ |
H A D | usbmisc_imx.c | 699 struct usb_phy *usb_phy = data->usb_phy; in imx7d_charger_secondary_detection() local 733 usb_phy->chg_type = DCP_TYPE; in imx7d_charger_secondary_detection() 736 usb_phy->chg_type = CDP_TYPE; in imx7d_charger_secondary_detection() 813 struct usb_phy *usb_phy = data->usb_phy; in imx7d_charger_primary_detection() local 833 usb_phy->chg_type = SDP_TYPE; in imx7d_charger_primary_detection() 850 struct usb_phy *usb_phy = data->usb_phy; in imx7d_charger_detection() local 882 if (!ret && usb_phy->chg_type != SDP_TYPE) in imx7d_charger_detection() 1136 struct usb_phy *usb_phy; in imx_usbmisc_charger_detection() local 1143 usb_phy = data->usb_phy; in imx_usbmisc_charger_detection() 1153 usb_phy->chg_state = USB_CHARGER_ABSENT; in imx_usbmisc_charger_detection() [all …]
|
H A D | ci.h | 258 struct usb_phy *usb_phy; member 294 if (ci->usb_phy) { in ci_role_start() 296 usb_phy_set_event(ci->usb_phy, USB_EVENT_ID); in ci_role_start() 299 usb_phy_set_event(ci->usb_phy, USB_EVENT_NONE); in ci_role_start() 316 if (ci->usb_phy) in ci_role_stop() 317 usb_phy_set_event(ci->usb_phy, USB_EVENT_NONE); in ci_role_stop()
|
H A D | core.c | 333 ret = usb_phy_init(ci->usb_phy); in _ci_usb_phy_init() 353 usb_phy_shutdown(ci->usb_phy); in ci_usb_phy_exit() 1095 } else if (ci->platdata->usb_phy) { in ci_hdrc_probe() 1096 ci->usb_phy = ci->platdata->usb_phy; in ci_hdrc_probe() 1110 ci->usb_phy = devm_usb_get_phy_by_phandle(dev->parent, in ci_hdrc_probe() 1113 if (PTR_ERR(ci->usb_phy) == -EPROBE_DEFER) { in ci_hdrc_probe() 1116 } else if (IS_ERR(ci->usb_phy)) { in ci_hdrc_probe() 1117 ci->usb_phy = NULL; in ci_hdrc_probe() 1122 if (!ci->phy && !ci->usb_phy) { in ci_hdrc_probe() 1123 ci->usb_phy = devm_usb_get_phy(dev->parent, in ci_hdrc_probe() [all …]
|
/openbmc/linux/drivers/phy/qualcomm/ |
H A D | phy-qcom-ipq806x-usb.c | 118 struct usb_phy { struct 142 static inline void usb_phy_write_readback(struct usb_phy *phy_dwc3, in usb_phy_write_readback() argument 175 static int usb_ss_write_phycreg(struct usb_phy *phy_dwc3, in usb_ss_write_phycreg() 213 static int usb_ss_read_phycreg(struct usb_phy *phy_dwc3, in usb_ss_read_phycreg() 254 struct usb_phy *phy_dwc3 = phy_get_drvdata(phy); in qcom_ipq806x_usb_hs_phy_init() 293 struct usb_phy *phy_dwc3 = phy_get_drvdata(phy); in qcom_ipq806x_usb_hs_phy_exit() 303 struct usb_phy *phy_dwc3 = phy_get_drvdata(phy); in qcom_ipq806x_usb_ss_phy_init() 434 struct usb_phy *phy_dwc3 = phy_get_drvdata(phy); in qcom_ipq806x_usb_ss_phy_exit() 486 struct usb_phy *phy_dwc3; in qcom_ipq806x_usb_phy_probe()
|
/openbmc/linux/drivers/usb/musb/ |
H A D | mediatek.c | 46 struct platform_device *usb_phy; member 48 struct usb_phy *xceiv; 462 glue->usb_phy = usb_phy_generic_register(); in mtk_musb_probe() 463 if (IS_ERR(glue->usb_phy)) { in mtk_musb_probe() 465 PTR_ERR(glue->usb_phy)); in mtk_musb_probe() 466 return PTR_ERR(glue->usb_phy); in mtk_musb_probe() 508 usb_phy_generic_unregister(glue->usb_phy); in mtk_musb_probe() 515 struct platform_device *usb_phy = glue->usb_phy; in mtk_musb_remove() local 518 usb_phy_generic_unregister(usb_phy); in mtk_musb_remove()
|
/openbmc/linux/Documentation/devicetree/bindings/phy/ |
H A D | phy-da8xx-usb.txt | 21 usb_phy: usb-phy { 30 phys = <&usb_phy 0>; 38 phys = <&usb_phy 1>;
|
H A D | pistachio-usb-phy.txt | 10 - clock-names: Must include "usb_phy". 21 usb_phy: usb-phy { 24 clock-names = "usb_phy";
|
/openbmc/linux/drivers/phy/tegra/ |
H A D | xusb.c | 570 usb_remove_phy(&port->usb_phy); in tegra_xusb_port_unregister() 571 port->usb_phy.dev->driver = NULL; in tegra_xusb_port_unregister() 614 usb_phy_set_event(&port->usb_phy, to_usb_phy_event(role)); in tegra_xusb_usb_phy_work() 619 atomic_notifier_call_chain(&port->usb_phy.notifier, 0, &port->usb_phy); in tegra_xusb_usb_phy_work() 637 struct tegra_xusb_port *port = container_of(otg->usb_phy, in tegra_xusb_set_peripheral() 639 usb_phy); in tegra_xusb_set_peripheral() 649 struct tegra_xusb_port *port = container_of(otg->usb_phy, in tegra_xusb_set_host() 651 usb_phy); in tegra_xusb_set_host() 696 port->usb_phy.otg = devm_kzalloc(&port->dev, sizeof(struct usb_otg), in tegra_xusb_setup_usb_role_switch() 698 if (!port->usb_phy.otg) in tegra_xusb_setup_usb_role_switch() [all …]
|