Home
last modified time | relevance | path

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

/drivers/clk/at91/
Dclk-programmable.c18 #define PROG_PRES(layout, pckr) ((pckr >> layout->pres_shift) & layout->pres_mask) argument
36 unsigned int pckr; in clk_programmable_recalc_rate() local
39 regmap_read(prog->regmap, AT91_PMC_PCKR(prog->id), &pckr); in clk_programmable_recalc_rate()
42 rate = parent_rate / (PROG_PRES(layout, pckr) + 1); in clk_programmable_recalc_rate()
44 rate = parent_rate >> PROG_PRES(layout, pckr); in clk_programmable_recalc_rate()
107 unsigned int pckr = index; in clk_programmable_set_parent() local
113 pckr = clk_mux_index_to_val(prog->mux_table, 0, index); in clk_programmable_set_parent()
119 pckr |= AT91_PMC_CSSMCK_MCK; in clk_programmable_set_parent()
122 regmap_update_bits(prog->regmap, AT91_PMC_PCKR(prog->id), mask, pckr); in clk_programmable_set_parent()
131 unsigned int pckr; in clk_programmable_get_parent() local
[all …]
Dpmc.c134 u32 pckr[PMC_MAX_PCKS]; member
197 regmap_read(pmcreg, AT91_PMC_PCKR(num), &pmc_cache.pckr[num]); in pmc_suspend()
242 regmap_write(pmcreg, AT91_PMC_PCKR(num), pmc_cache.pckr[num]); in pmc_resume()