| /OK3568_Linux_fs/kernel/drivers/usb/phy/ |
| H A D | phy.c | 33 struct usb_phy *phy; 45 static struct usb_phy *__usb_find_phy(struct list_head *list, in __usb_find_phy() 48 struct usb_phy *phy = NULL; in __usb_find_phy() 60 static struct usb_phy *__of_usb_find_phy(struct device_node *node) in __of_usb_find_phy() 62 struct usb_phy *phy; in __of_usb_find_phy() 77 static void usb_phy_set_default_current(struct usb_phy *usb_phy) in usb_phy_set_default_current() argument 79 usb_phy->chg_cur.sdp_min = DEFAULT_SDP_CUR_MIN; in usb_phy_set_default_current() 80 usb_phy->chg_cur.sdp_max = DEFAULT_SDP_CUR_MAX; in usb_phy_set_default_current() 81 usb_phy->chg_cur.dcp_min = DEFAULT_DCP_CUR_MIN; in usb_phy_set_default_current() 82 usb_phy->chg_cur.dcp_max = DEFAULT_DCP_CUR_MAX; in usb_phy_set_default_current() [all …]
|
| H A D | Kconfig | 7 config USB_PHY config 17 select USB_PHY 27 select USB_PHY 36 select USB_PHY 59 select USB_PHY 72 select USB_PHY 95 select USB_PHY 98 internal transceiver via the usb_phy interface, and 116 select USB_PHY 132 select 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-jz4770.c | 100 void (*usb_phy_init)(struct usb_phy *phy); 106 struct usb_phy phy; 119 static inline struct jz4770_phy *phy_to_jz4770_phy(struct usb_phy *phy) in phy_to_jz4770_phy() 157 static int ingenic_usb_phy_init(struct usb_phy *phy) in ingenic_usb_phy_init() 186 static void ingenic_usb_phy_shutdown(struct usb_phy *phy) in ingenic_usb_phy_shutdown() 199 static void jz4770_usb_phy_init(struct usb_phy *phy) in jz4770_usb_phy_init() 211 static void jz4780_usb_phy_init(struct usb_phy *phy) in jz4780_usb_phy_init() 224 static void x1000_usb_phy_init(struct usb_phy *phy) in x1000_usb_phy_init() 238 static void x1830_usb_phy_init(struct usb_phy *phy) in x1830_usb_phy_init() 313 priv->otg.usb_phy = &priv->phy; in jz4770_phy_probe()
|
| 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() 99 struct usb_phy *phy; in isp1301_probe()
|
| /OK3568_Linux_fs/kernel/include/linux/usb/ |
| H A D | phy.h | 67 struct usb_phy; 74 int (*read)(struct usb_phy *x, u32 reg); 75 int (*write)(struct usb_phy *x, u32 val, u32 reg); 89 struct usb_phy { struct 127 int (*init)(struct usb_phy *x); argument 128 void (*shutdown)(struct usb_phy *x); argument 131 int (*set_vbus)(struct usb_phy *x, int on); argument 134 int (*set_power)(struct usb_phy *x, argument 138 int (*set_suspend)(struct usb_phy *x, argument 146 int (*set_wakeup)(struct usb_phy *x, bool enabled); argument [all …]
|
| H A D | tegra_usb_phy.h | 76 struct usb_phy *ulpi; 77 struct usb_phy u_phy; 85 void tegra_usb_phy_preresume(struct usb_phy *phy); 87 void tegra_usb_phy_postresume(struct usb_phy *phy); 89 void tegra_ehci_phy_restore_start(struct usb_phy *phy, 92 void tegra_ehci_phy_restore_end(struct usb_phy *phy);
|
| H A D | ulpi.h | 56 struct usb_phy *otg_ulpi_create(struct usb_phy_io_ops *ops, 59 struct usb_phy *devm_otg_ulpi_create(struct device *dev, 63 static inline struct usb_phy *otg_ulpi_create(struct usb_phy_io_ops *ops, in otg_ulpi_create() 69 static inline struct usb_phy *devm_otg_ulpi_create(struct device *dev, in devm_otg_ulpi_create()
|
| /OK3568_Linux_fs/kernel/drivers/phy/broadcom/ |
| H A D | phy-brcm-usb-init-synopsys.c | 61 /* Register definitions for the USB_PHY block in 7211b0 */ 228 void __iomem *usb_phy = params->regs[BRCM_REGS_USB_PHY]; in usb_init_common_7211b0() local 242 brcm_usb_writel(0, usb_phy + USB_PHY_IDDQ); in usb_init_common_7211b0() 243 reg = brcm_usb_readl(usb_phy + USB_PHY_PLL_CTL); in usb_init_common_7211b0() 245 brcm_usb_writel(reg, usb_phy + USB_PHY_PLL_CTL); in usb_init_common_7211b0() 248 reg = brcm_usb_readl(usb_phy + USB_PHY_UTMI_CTL_1); in usb_init_common_7211b0() 250 brcm_usb_writel(reg, usb_phy + USB_PHY_UTMI_CTL_1); in usb_init_common_7211b0() 257 brcm_usb_writel(reg, usb_phy + USB_PHY_PLL_LDO_CTL); in usb_init_common_7211b0() 261 reg = brcm_usb_readl(usb_phy + USB_PHY_STATUS); in usb_init_common_7211b0() 268 reg = brcm_usb_readl(usb_phy + USB_PHY_UTMI_CTL_1); in usb_init_common_7211b0() [all …]
|
| /OK3568_Linux_fs/u-boot/arch/powerpc/cpu/mpc85xx/ |
| H A D | cpu_init.c | 65 void usb_single_source_clk_configure(struct ccsr_usb_phy *usb_phy) in usb_single_source_clk_configure() argument 71 clrbits_be32(&usb_phy->pllprg[1], in usb_single_source_clk_configure() 73 setbits_be32(&usb_phy->pllprg[1], in usb_single_source_clk_configure() 82 void fsl_erratum_a006261_workaround(struct ccsr_usb_phy __iomem *usb_phy) in fsl_erratum_a006261_workaround() argument 85 u32 xcvrprg = in_be32(&usb_phy->port1.xcvrprg); in fsl_erratum_a006261_workaround() 92 out_be32(&usb_phy->port1.xcvrprg, xcvrprg); in fsl_erratum_a006261_workaround() 94 xcvrprg = in_be32(&usb_phy->port2.xcvrprg); in fsl_erratum_a006261_workaround() 100 out_be32(&usb_phy->port2.xcvrprg, xcvrprg); in fsl_erratum_a006261_workaround() 104 u32 status = in_be32(&usb_phy->status1); in fsl_erratum_a006261_workaround() 114 setbits_be32(&usb_phy->config1, in fsl_erratum_a006261_workaround() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/phy/rockchip/ |
| H A D | phy-rockchip-inno-usb3.c | 149 struct usb_phy usb_phy; member 256 atomic_notifier_call_chain(&u3phy->usb_phy.notifier, 0, NULL); in rockchip_u3phy_usb2_only_write() 278 atomic_notifier_call_chain(&u3phy->usb_phy.notifier, 0, NULL); in rockchip_u3phy_usb2_only_write() 785 static int rockchip_u3phy_on_init(struct usb_phy *usb_phy) in rockchip_u3phy_on_init() argument 788 container_of(usb_phy, struct rockchip_u3phy, usb_phy); in rockchip_u3phy_on_init() 794 static void rockchip_u3phy_on_shutdown(struct usb_phy *usb_phy) in rockchip_u3phy_on_shutdown() argument 797 container_of(usb_phy, struct rockchip_u3phy, usb_phy); in rockchip_u3phy_on_shutdown() 807 static int rockchip_u3phy_on_disconnect(struct usb_phy *usb_phy, in rockchip_u3phy_on_disconnect() argument 811 container_of(usb_phy, struct rockchip_u3phy, usb_phy); in rockchip_u3phy_on_disconnect() 817 atomic_notifier_call_chain(&usb_phy->notifier, 0, NULL); in rockchip_u3phy_on_disconnect() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/chipidea/ |
| H A D | usbmisc_imx.c | 685 struct usb_phy *usb_phy = data->usb_phy; in imx7d_charger_secondary_detection() local 719 usb_phy->chg_type = DCP_TYPE; in imx7d_charger_secondary_detection() 722 usb_phy->chg_type = CDP_TYPE; in imx7d_charger_secondary_detection() 799 struct usb_phy *usb_phy = data->usb_phy; in imx7d_charger_primary_detection() local 819 usb_phy->chg_type = SDP_TYPE; in imx7d_charger_primary_detection() 836 struct usb_phy *usb_phy = data->usb_phy; in imx7d_charger_detection() local 868 if (!ret && usb_phy->chg_type != SDP_TYPE) in imx7d_charger_detection() 1068 struct usb_phy *usb_phy; in imx_usbmisc_charger_detection() local 1075 usb_phy = data->usb_phy; in imx_usbmisc_charger_detection() 1085 usb_phy->chg_state = USB_CHARGER_ABSENT; in imx_usbmisc_charger_detection() [all …]
|
| H A D | core.c | 305 * _ci_usb_phy_init: initialize phy taking in account both phy and usb_phy 326 ret = usb_phy_init(ci->usb_phy); in _ci_usb_phy_init() 333 * _ci_usb_phy_exit: deinitialize phy taking in account both phy and usb_phy 346 usb_phy_shutdown(ci->usb_phy); in ci_usb_phy_exit() 1035 } else if (ci->platdata->usb_phy) { in ci_hdrc_probe() 1036 ci->usb_phy = ci->platdata->usb_phy; in ci_hdrc_probe() 1050 ci->usb_phy = devm_usb_get_phy_by_phandle(dev->parent, in ci_hdrc_probe() 1053 if (PTR_ERR(ci->usb_phy) == -EPROBE_DEFER) { in ci_hdrc_probe() 1056 } else if (IS_ERR(ci->usb_phy)) { in ci_hdrc_probe() 1057 ci->usb_phy = NULL; in ci_hdrc_probe() [all …]
|
| /OK3568_Linux_fs/kernel/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 | 33 struct usb_phy *usb_phy; member 586 charger->usb_phy = devm_usb_get_phy(dev, USB_PHY_TYPE_USB2); in da9150_charger_probe() 587 if (!IS_ERR_OR_NULL(charger->usb_phy)) { in da9150_charger_probe() 590 usb_register_notifier(charger->usb_phy, &charger->otg_nb); in da9150_charger_probe() 624 if (!IS_ERR_OR_NULL(charger->usb_phy)) in da9150_charger_probe() 625 usb_unregister_notifier(charger->usb_phy, &charger->otg_nb); in da9150_charger_probe() 663 if (!IS_ERR_OR_NULL(charger->usb_phy)) in da9150_charger_remove() 664 usb_unregister_notifier(charger->usb_phy, &charger->otg_nb); in da9150_charger_remove()
|
| /OK3568_Linux_fs/kernel/drivers/usb/musb/ |
| H A D | mediatek.c | 43 struct platform_device *usb_phy; member 45 struct usb_phy *xceiv; 512 glue->usb_phy = usb_phy_generic_register(); in mtk_musb_probe() 513 if (IS_ERR(glue->usb_phy)) { in mtk_musb_probe() 515 PTR_ERR(glue->usb_phy)); in mtk_musb_probe() 516 return PTR_ERR(glue->usb_phy); in mtk_musb_probe() 556 usb_phy_generic_unregister(glue->usb_phy); in mtk_musb_probe() 563 struct platform_device *usb_phy = glue->usb_phy; in mtk_musb_remove() local 566 usb_phy_generic_unregister(usb_phy); in mtk_musb_remove()
|
| /OK3568_Linux_fs/kernel/drivers/usb/host/ |
| H A D | ohci-omap.c | 171 otg_start_hnp(hcd->usb_phy->otg); in start_hnp() 174 hcd->usb_phy->otg->state = OTG_STATE_A_SUSPEND; in start_hnp() 212 hcd->usb_phy = usb_get_phy(USB_PHY_TYPE_USB2); in ohci_omap_reset() 213 if (!IS_ERR_OR_NULL(hcd->usb_phy)) { in ohci_omap_reset() 214 int status = otg_set_host(hcd->usb_phy->otg, in ohci_omap_reset() 217 hcd->usb_phy->label, status); in ohci_omap_reset() 219 usb_put_phy(hcd->usb_phy); in ohci_omap_reset() 417 if (!IS_ERR_OR_NULL(hcd->usb_phy)) { in ohci_hcd_omap_remove() 418 (void) otg_set_host(hcd->usb_phy->otg, 0); in ohci_hcd_omap_remove() 419 usb_put_phy(hcd->usb_phy); in ohci_hcd_omap_remove()
|
| H A D | ehci-tegra.c | 193 tegra_usb_phy_postresume(hcd->usb_phy); in tegra_ehci_hub_control() 246 tegra_usb_phy_preresume(hcd->usb_phy); in tegra_ehci_hub_control() 391 struct usb_phy *u_phy; in tegra_ehci_probe() 449 hcd->usb_phy = u_phy; in tegra_ehci_probe() 467 err = usb_phy_init(hcd->usb_phy); in tegra_ehci_probe() 501 usb_phy_shutdown(hcd->usb_phy); in tegra_ehci_probe() 516 otg_set_host(hcd->usb_phy->otg, NULL); in tegra_ehci_remove() 517 usb_phy_shutdown(hcd->usb_phy); in tegra_ehci_remove()
|
| /OK3568_Linux_fs/kernel/drivers/phy/qualcomm/ |
| H A D | phy-qcom-ipq806x-usb.c | 114 struct usb_phy { struct 137 static inline void usb_phy_write_readback(struct usb_phy *phy_dwc3, in usb_phy_write_readback() argument 180 static int usb_ss_write_phycreg(struct usb_phy *phy_dwc3, in usb_ss_write_phycreg() 217 static int usb_ss_read_phycreg(struct usb_phy *phy_dwc3, in usb_ss_read_phycreg() 258 struct usb_phy *phy_dwc3 = phy_get_drvdata(phy); in qcom_ipq806x_usb_hs_phy_init() 297 struct usb_phy *phy_dwc3 = phy_get_drvdata(phy); in qcom_ipq806x_usb_hs_phy_exit() 307 struct usb_phy *phy_dwc3 = phy_get_drvdata(phy); in qcom_ipq806x_usb_ss_phy_init() 438 struct usb_phy *phy_dwc3 = phy_get_drvdata(phy); in qcom_ipq806x_usb_ss_phy_exit() 490 struct usb_phy *phy_dwc3; in qcom_ipq806x_usb_phy_probe()
|
| /OK3568_Linux_fs/kernel/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";
|
| /OK3568_Linux_fs/kernel/drivers/phy/tegra/ |
| H A D | xusb.c | 558 usb_remove_phy(&port->usb_phy); in tegra_xusb_port_unregister() 601 usb_phy_set_event(&port->usb_phy, to_usb_phy_event(role)); in tegra_xusb_usb_phy_work() 606 atomic_notifier_call_chain(&port->usb_phy.notifier, 0, &port->usb_phy); in tegra_xusb_usb_phy_work() 624 struct tegra_xusb_port *port = container_of(otg->usb_phy, in tegra_xusb_set_peripheral() 626 usb_phy); in tegra_xusb_set_peripheral() 636 struct tegra_xusb_port *port = container_of(otg->usb_phy, in tegra_xusb_set_host() 638 usb_phy); in tegra_xusb_set_host() 679 port->usb_phy.otg = devm_kzalloc(&port->dev, sizeof(struct usb_otg), in tegra_xusb_setup_usb_role_switch() 681 if (!port->usb_phy.otg) in tegra_xusb_setup_usb_role_switch() 690 port->usb_phy.dev = &lane->pad->lanes[port->index]->dev; in tegra_xusb_setup_usb_role_switch() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/phy/ |
| H A D | sti_usb_phy.c | 61 static int sti_usb_phy_init(struct phy *usb_phy) in sti_usb_phy_init() argument 63 struct udevice *dev = usb_phy->dev; in sti_usb_phy_init() 80 static int sti_usb_phy_exit(struct phy *usb_phy) in sti_usb_phy_exit() argument 82 struct udevice *dev = usb_phy->dev; in sti_usb_phy_exit()
|
| /OK3568_Linux_fs/kernel/drivers/phy/ |
| H A D | phy-lgm-usb.c | 44 struct usb_phy phy; 68 static int phy_init(struct usb_phy *phy) in phy_init() 99 static void phy_shutdown(struct usb_phy *phy) in phy_shutdown() 118 static int phy_set_vbus(struct usb_phy *phy, int on) in phy_set_vbus() 191 struct usb_phy *phy; in phy_probe()
|