Home
last modified time | relevance | path

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

/external/u-boot/drivers/clk/
Dclk_pic32.c93 u32 iclk, idiv, odiv, mult; in pic32_get_pll_rate() local
99 odiv = ((v >> 24) & PLLODIV_MASK); in pic32_get_pll_rate()
104 if (odiv < 2) in pic32_get_pll_rate()
105 odiv = 2; in pic32_get_pll_rate()
106 else if (odiv < 5) in pic32_get_pll_rate()
107 odiv = (1 << odiv); in pic32_get_pll_rate()
109 odiv = 32; in pic32_get_pll_rate()
111 return ((plliclk / idiv) * mult) / odiv; in pic32_get_pll_rate()
Dclk-hsdk-cgu.c186 u32 odiv; member
351 val |= cfg->odiv << CGU_PLL_CTRL_ODIV_SHIFT; in hsdk_pll_set_cfg()
373 u32 idiv, fbdiv, odiv; in pll_get() local
393 odiv = 1 << ((val & CGU_PLL_CTRL_ODIV_MASK) >> CGU_PLL_CTRL_ODIV_SHIFT); in pll_get()
396 do_div(rate, idiv * odiv); in pll_get()