Home
last modified time | relevance | path

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

/openbmc/linux/drivers/phy/broadcom/
H A Dphy-bcm-ns-usb2.c36 u32 ref_clk_rate, usb2ctl, usb_pll_ndiv, usb_pll_pdiv; in bcm_ns_usb2_phy_init() local
53 usb2ctl = readl(usb2->base); in bcm_ns_usb2_phy_init()
55 usb2ctl = readl(usb2->dmu + BCMA_DMU_CRU_USB2_CONTROL); in bcm_ns_usb2_phy_init()
57 if (usb2ctl & BCMA_DMU_CRU_USB2_CONTROL_USB_PLL_PDIV_MASK) { in bcm_ns_usb2_phy_init()
58 usb_pll_pdiv = usb2ctl; in bcm_ns_usb2_phy_init()
75 usb2ctl &= ~BCMA_DMU_CRU_USB2_CONTROL_USB_PLL_NDIV_MASK; in bcm_ns_usb2_phy_init()
76 usb2ctl |= usb_pll_ndiv << BCMA_DMU_CRU_USB2_CONTROL_USB_PLL_NDIV_SHIFT; in bcm_ns_usb2_phy_init()
78 writel(usb2ctl, usb2->base); in bcm_ns_usb2_phy_init()
80 writel(usb2ctl, usb2->dmu + BCMA_DMU_CRU_USB2_CONTROL); in bcm_ns_usb2_phy_init()