Lines Matching refs:phy
43 struct dwc2_usbotg_phy *phy = in otg_phy_init() local
55 writel((readl(&phy->phypwr) in otg_phy_init()
57 &~FORCE_SUSPEND_0), &phy->phypwr); in otg_phy_init()
59 writel((readl(&phy->phypwr) &~(OTG_DISABLE_0 | ANALOG_PWRDOWN) in otg_phy_init()
60 &~FORCE_SUSPEND_0), &phy->phypwr); in otg_phy_init()
63 writel((readl(&phy->phyclk) & ~(EXYNOS4X12_ID_PULLUP0 | in otg_phy_init()
65 &phy->phyclk); /* PLL 24Mhz */ in otg_phy_init()
67 writel((readl(&phy->phyclk) & ~(ID_PULLUP0 | COMMON_ON_N0)) | in otg_phy_init()
68 CLK_SEL_24MHZ, &phy->phyclk); /* PLL 24Mhz */ in otg_phy_init()
70 writel((readl(&phy->rstcon) &~(LINK_SW_RST | PHYLNK_SW_RST)) in otg_phy_init()
71 | PHY_SW_RST0, &phy->rstcon); in otg_phy_init()
73 writel(readl(&phy->rstcon) in otg_phy_init()
74 &~(PHY_SW_RST0 | LINK_SW_RST | PHYLNK_SW_RST), &phy->rstcon); in otg_phy_init()
81 struct dwc2_usbotg_phy *phy = in otg_phy_off() local
85 writel(PHY_SW_RST0, &phy->rstcon); in otg_phy_off()
87 writel(readl(&phy->phypwr) &~PHY_SW_RST0, &phy->rstcon); in otg_phy_off()
90 writel(readl(&phy->phypwr) | OTG_DISABLE_0 | ANALOG_PWRDOWN in otg_phy_off()
91 | FORCE_SUSPEND_0, &phy->phypwr); in otg_phy_off()
95 writel((readl(&phy->phyclk) & ~(ID_PULLUP0 | COMMON_ON_N0)), in otg_phy_off()
96 &phy->phyclk); in otg_phy_off()