Lines Matching refs:usbcfg
980 u32 usbcfg, ggpio, i2cctl; in dwc2_fs_phy_init() local
990 usbcfg = dwc2_readl(hsotg, GUSBCFG); in dwc2_fs_phy_init()
991 if (!(usbcfg & GUSBCFG_PHYSEL)) { in dwc2_fs_phy_init()
992 usbcfg |= GUSBCFG_PHYSEL; in dwc2_fs_phy_init()
993 dwc2_writel(hsotg, usbcfg, GUSBCFG); in dwc2_fs_phy_init()
1031 usbcfg = dwc2_readl(hsotg, GUSBCFG); in dwc2_fs_phy_init()
1032 usbcfg |= GUSBCFG_OTG_UTMI_FS_SEL; in dwc2_fs_phy_init()
1033 dwc2_writel(hsotg, usbcfg, GUSBCFG); in dwc2_fs_phy_init()
1050 u32 usbcfg, usbcfg_old; in dwc2_hs_phy_init() local
1056 usbcfg = dwc2_readl(hsotg, GUSBCFG); in dwc2_hs_phy_init()
1057 usbcfg_old = usbcfg; in dwc2_hs_phy_init()
1068 usbcfg |= GUSBCFG_ULPI_UTMI_SEL; in dwc2_hs_phy_init()
1069 usbcfg &= ~(GUSBCFG_PHYIF16 | GUSBCFG_DDRSEL); in dwc2_hs_phy_init()
1071 usbcfg |= GUSBCFG_DDRSEL; in dwc2_hs_phy_init()
1075 usbcfg |= (GUSBCFG_ULPI_INT_VBUS_IND | in dwc2_hs_phy_init()
1081 usbcfg &= ~(GUSBCFG_ULPI_UTMI_SEL | GUSBCFG_PHYIF16); in dwc2_hs_phy_init()
1083 usbcfg |= GUSBCFG_PHYIF16; in dwc2_hs_phy_init()
1090 if (usbcfg != usbcfg_old) { in dwc2_hs_phy_init()
1091 dwc2_writel(hsotg, usbcfg, GUSBCFG); in dwc2_hs_phy_init()
1107 u32 usbcfg; in dwc2_set_turnaround_time() local
1112 usbcfg = dwc2_readl(hsotg, GUSBCFG); in dwc2_set_turnaround_time()
1114 usbcfg &= ~GUSBCFG_USBTRDTIM_MASK; in dwc2_set_turnaround_time()
1116 usbcfg |= 5 << GUSBCFG_USBTRDTIM_SHIFT; in dwc2_set_turnaround_time()
1118 usbcfg |= 9 << GUSBCFG_USBTRDTIM_SHIFT; in dwc2_set_turnaround_time()
1120 dwc2_writel(hsotg, usbcfg, GUSBCFG); in dwc2_set_turnaround_time()
1125 u32 usbcfg; in dwc2_phy_init() local
1150 usbcfg = dwc2_readl(hsotg, GUSBCFG); in dwc2_phy_init()
1151 usbcfg |= GUSBCFG_ULPI_FS_LS; in dwc2_phy_init()
1152 usbcfg |= GUSBCFG_ULPI_CLK_SUSP_M; in dwc2_phy_init()
1153 dwc2_writel(hsotg, usbcfg, GUSBCFG); in dwc2_phy_init()
1155 usbcfg = dwc2_readl(hsotg, GUSBCFG); in dwc2_phy_init()
1156 usbcfg &= ~GUSBCFG_ULPI_FS_LS; in dwc2_phy_init()
1157 usbcfg &= ~GUSBCFG_ULPI_CLK_SUSP_M; in dwc2_phy_init()
1158 dwc2_writel(hsotg, usbcfg, GUSBCFG); in dwc2_phy_init()