Home
last modified time | relevance | path

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

/external/u-boot/drivers/clk/mvebu/
Darmada-37xx-tbg.c60 static unsigned int tbg_get_mult(void __iomem *reg, const struct tbg_def *ptbg) in tbg_get_mult() argument
66 return ((val >> ptbg->fbdiv_offset) & TBG_DIV_MASK) << 2; in tbg_get_mult()
69 static unsigned int tbg_get_div(void __iomem *reg, const struct tbg_def *ptbg) in tbg_get_div() argument
76 div = (val >> ptbg->refdiv_offset) & TBG_DIV_MASK; in tbg_get_div()
79 val = readl(reg + ptbg->vcodiv_reg); in tbg_get_div()
81 div *= 1 << ((val >> ptbg->vcodiv_offset) & TBG_DIV_MASK); in tbg_get_div()