Home
last modified time | relevance | path

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

/openbmc/linux/drivers/clk/at91/
H A Dclk-generated.c28 u32 gckdiv; member
51 FIELD_PREP(AT91_PMC_PCR_GCKDIV_MASK, gck->gckdiv) | in clk_generated_set()
63 __func__, gck->gckdiv, gck->parent_id); in clk_generated_enable()
105 return DIV_ROUND_CLOSEST(parent_rate, gck->gckdiv + 1); in clk_generated_recalc_rate()
260 gck->gckdiv = div - 1; in clk_generated_set_rate()
315 gck->gckdiv = FIELD_GET(AT91_PMC_PCR_GCKDIV_MASK, tmp); in clk_generated_startup()
/openbmc/u-boot/drivers/clk/at91/
H A Dclk-generated.c54 u32 tmp, gckdiv; in generic_clk_get_rate() local
62 gckdiv = (tmp >> AT91_PMC_PCR_GCKDIV_OFFSET) & AT91_PMC_PCR_GCKDIV_MASK; in generic_clk_get_rate()
69 clk_rate = clk_get_rate(&parent) / (gckdiv + 1); in generic_clk_get_rate()