Searched refs:usbphy (Results 1 – 4 of 4) sorted by relevance
78 static int update_disc_vol(struct sp_usbphy *usbphy) in update_disc_vol() argument86 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() local117 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 …]
297 struct usb_phy **usbphy; member1407 return (tegra->usbphy[index] != NULL); in is_usb2_otg_phy()1451 struct usb_phy *usbphy) in tegra_xusb_get_usb2_port() argument1456 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() local1470 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 …]
516 struct usb_phy **usbphy; member785 struct usb_phy *usbphy) in tegra_xudc_get_phy_index() argument790 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() argument803 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 …]
30 obj-$(CONFIG_RESET_RZG2L_USBPHY_CTRL) += reset-rzg2l-usbphy-ctrl.o