Home
last modified time | relevance | path

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

/openbmc/linux/drivers/clk/at91/
H A Dclk-usb.c49 u8 usbdiv; in at91sam9x5_clk_usb_recalc_rate() local
52 usbdiv = (usbr & AT91_PMC_OHCIUSBDIV) >> SAM9X5_USB_DIV_SHIFT; in at91sam9x5_clk_usb_recalc_rate()
54 return DIV_ROUND_CLOSEST(parent_rate, (usbdiv + 1)); in at91sam9x5_clk_usb_recalc_rate()
311 u8 usbdiv; in at91rm9200_clk_usb_recalc_rate() local
315 usbdiv = (pllbr & AT91_PMC_USBDIV) >> RM9200_USB_DIV_SHIFT; in at91rm9200_clk_usb_recalc_rate()
316 if (usb->divisors[usbdiv]) in at91rm9200_clk_usb_recalc_rate()
317 return parent_rate / usb->divisors[usbdiv]; in at91rm9200_clk_usb_recalc_rate()
/openbmc/u-boot/drivers/clk/at91/
H A Dclk-usb.c28 u32 tmp, usbdiv; in at91_usb_clk_get_rate() local
35 usbdiv = (tmp >> AT91_PMC_USB_DIV_OFFSET) & AT91_PMC_USB_DIV_MASK; in at91_usb_clk_get_rate()
41 return clk_get_rate(&source) / (usbdiv + 1); in at91_usb_clk_get_rate()