Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/clk/at91/
Dclk-programmable.c25 #define PROG_PRES(layout, pckr) ((pckr >> layout->pres_shift) & PROG_PRES_MASK) argument
47 unsigned int pckr; in clk_programmable_recalc_rate() local
49 regmap_read(prog->regmap, AT91_PMC_PCKR(prog->id), &pckr); in clk_programmable_recalc_rate()
51 return parent_rate >> PROG_PRES(prog->layout, pckr); in clk_programmable_recalc_rate()
102 unsigned int pckr = index; in clk_programmable_set_parent() local
111 pckr |= AT91_PMC_CSSMCK_MCK; in clk_programmable_set_parent()
114 regmap_update_bits(prog->regmap, AT91_PMC_PCKR(prog->id), mask, pckr); in clk_programmable_set_parent()
123 unsigned int pckr; in clk_programmable_get_parent() local
126 regmap_read(prog->regmap, AT91_PMC_PCKR(prog->id), &pckr); in clk_programmable_get_parent()
128 ret = pckr & layout->css_mask; in clk_programmable_get_parent()
[all …]
Dpmc.c71 u32 pckr[PMC_MAX_PCKS]; member
134 regmap_read(pmcreg, AT91_PMC_PCKR(num), &pmc_cache.pckr[num]); in pmc_suspend()
179 regmap_write(pmcreg, AT91_PMC_PCKR(num), pmc_cache.pckr[num]); in pmc_resume()