Lines Matching refs:usbcfg
1066 u32 usbcfg, ggpio, i2cctl; in dwc2_fs_phy_init() local
1076 usbcfg = dwc2_readl(hsotg, GUSBCFG); in dwc2_fs_phy_init()
1077 if (!(usbcfg & GUSBCFG_PHYSEL)) { in dwc2_fs_phy_init()
1078 usbcfg |= GUSBCFG_PHYSEL; in dwc2_fs_phy_init()
1079 dwc2_writel(hsotg, usbcfg, GUSBCFG); in dwc2_fs_phy_init()
1117 usbcfg = dwc2_readl(hsotg, GUSBCFG); in dwc2_fs_phy_init()
1118 usbcfg |= GUSBCFG_OTG_UTMI_FS_SEL; in dwc2_fs_phy_init()
1119 dwc2_writel(hsotg, usbcfg, GUSBCFG); in dwc2_fs_phy_init()
1136 u32 usbcfg, usbcfg_old; in dwc2_hs_phy_init() local
1142 usbcfg = dwc2_readl(hsotg, GUSBCFG); in dwc2_hs_phy_init()
1143 usbcfg_old = usbcfg; in dwc2_hs_phy_init()
1154 usbcfg |= GUSBCFG_ULPI_UTMI_SEL; in dwc2_hs_phy_init()
1155 usbcfg &= ~(GUSBCFG_PHYIF16 | GUSBCFG_DDRSEL); in dwc2_hs_phy_init()
1157 usbcfg |= GUSBCFG_DDRSEL; in dwc2_hs_phy_init()
1161 usbcfg |= (GUSBCFG_ULPI_INT_VBUS_IND | in dwc2_hs_phy_init()
1167 usbcfg &= ~(GUSBCFG_ULPI_UTMI_SEL | GUSBCFG_PHYIF16); in dwc2_hs_phy_init()
1169 usbcfg |= GUSBCFG_PHYIF16; in dwc2_hs_phy_init()
1173 usbcfg &= ~GUSBCFG_USBTRDTIM_MASK; in dwc2_hs_phy_init()
1175 usbcfg |= 5 << GUSBCFG_USBTRDTIM_SHIFT; in dwc2_hs_phy_init()
1177 usbcfg |= 9 << GUSBCFG_USBTRDTIM_SHIFT; in dwc2_hs_phy_init()
1185 if (usbcfg != usbcfg_old) { in dwc2_hs_phy_init()
1186 dwc2_writel(hsotg, usbcfg, GUSBCFG); in dwc2_hs_phy_init()
1202 u32 usbcfg; in dwc2_phy_init() local
1223 usbcfg = dwc2_readl(hsotg, GUSBCFG); in dwc2_phy_init()
1224 usbcfg |= GUSBCFG_ULPI_FS_LS; in dwc2_phy_init()
1225 usbcfg |= GUSBCFG_ULPI_CLK_SUSP_M; in dwc2_phy_init()
1226 dwc2_writel(hsotg, usbcfg, GUSBCFG); in dwc2_phy_init()
1228 usbcfg = dwc2_readl(hsotg, GUSBCFG); in dwc2_phy_init()
1229 usbcfg &= ~GUSBCFG_ULPI_FS_LS; in dwc2_phy_init()
1230 usbcfg &= ~GUSBCFG_ULPI_CLK_SUSP_M; in dwc2_phy_init()
1231 dwc2_writel(hsotg, usbcfg, GUSBCFG); in dwc2_phy_init()