Home
last modified time | relevance | path

Searched refs:usbphy (Results 1 – 4 of 4) sorted by relevance

/drivers/phy/sunplus/
Dphy-sunplus-usb2.c78 static int update_disc_vol(struct sp_usbphy *usbphy) in update_disc_vol() argument
86 cell = nvmem_cell_get(usbphy->dev, disc_name); in update_disc_vol()
98 set = (set >> usbphy->disc_vol_addr_off) & J_DISC; in update_disc_vol()
104 val = readl(usbphy->phy_regs + CONFIG7); in update_disc_vol()
106 writel(val, usbphy->phy_regs + CONFIG7); in update_disc_vol()
113 struct sp_usbphy *usbphy = phy_get_drvdata(phy); in sp_uphy_init() local
117 ret = clk_prepare_enable(usbphy->phy_clk); in sp_uphy_init()
121 ret = reset_control_deassert(usbphy->rstc); in sp_uphy_init()
126 writel(HIGH_MASK_BITS | 0x4002, usbphy->moon4_regs + UPHY_CONTROL0); in sp_uphy_init()
127 writel(HIGH_MASK_BITS | 0x8747, usbphy->moon4_regs + UPHY_CONTROL1); in sp_uphy_init()
[all …]
/drivers/usb/host/
Dxhci-tegra.c297 struct usb_phy **usbphy; member
1407 return (tegra->usbphy[index] != NULL); in is_usb2_otg_phy()
1451 struct usb_phy *usbphy) in tegra_xusb_get_usb2_port() argument
1456 if (tegra->usbphy[i] && usbphy == tegra->usbphy[i]) in tegra_xusb_get_usb2_port()
1468 struct usb_phy *usbphy = (struct usb_phy *)data; in tegra_xhci_id_notify() local
1470 dev_dbg(tegra->dev, "%s(): action is %d", __func__, usbphy->last_event); in tegra_xhci_id_notify()
1472 if ((tegra->host_mode && usbphy->last_event == USB_EVENT_ID) || in tegra_xhci_id_notify()
1473 (!tegra->host_mode && usbphy->last_event != USB_EVENT_ID)) { in tegra_xhci_id_notify()
1479 tegra->otg_usb2_port = tegra_xusb_get_usb2_port(tegra, usbphy); in tegra_xhci_id_notify()
1481 tegra->host_mode = (usbphy->last_event == USB_EVENT_ID) ? true : false; in tegra_xhci_id_notify()
[all …]
/drivers/usb/gadget/udc/
Dtegra-xudc.c516 struct usb_phy **usbphy; member
785 struct usb_phy *usbphy) in tegra_xudc_get_phy_index() argument
790 if (xudc->usbphy[i] && usbphy == xudc->usbphy[i]) in tegra_xudc_get_phy_index()
799 struct usb_phy *usbphy) in tegra_xudc_update_data_role() argument
803 if ((xudc->device_mode && usbphy->last_event == USB_EVENT_VBUS) || in tegra_xudc_update_data_role()
804 (!xudc->device_mode && usbphy->last_event != USB_EVENT_VBUS)) { in tegra_xudc_update_data_role()
810 xudc->device_mode = (usbphy->last_event == USB_EVENT_VBUS) ? true : in tegra_xudc_update_data_role()
813 phy_index = tegra_xudc_get_phy_index(xudc, usbphy); in tegra_xudc_update_data_role()
820 xudc->curr_usbphy = usbphy; in tegra_xudc_update_data_role()
830 struct usb_phy *usbphy = (struct usb_phy *)data; in tegra_xudc_vbus_notify() local
[all …]
/drivers/reset/
DMakefile30 obj-$(CONFIG_RESET_RZG2L_USBPHY_CTRL) += reset-rzg2l-usbphy-ctrl.o