Searched refs:pckr (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/clk/at91/ |
H A D | clk-programmable.c | 18 #define PROG_PRES(layout, pckr) ((pckr >> layout->pres_shift) & layout->pres_mask) argument 37 unsigned int pckr; in clk_programmable_recalc_rate() local 40 regmap_read(prog->regmap, AT91_PMC_PCKR(prog->id), &pckr); in clk_programmable_recalc_rate() 43 rate = parent_rate / (PROG_PRES(layout, pckr) + 1); in clk_programmable_recalc_rate() 45 rate = parent_rate >> PROG_PRES(layout, pckr); in clk_programmable_recalc_rate() 108 unsigned int pckr = index; in clk_programmable_set_parent() local 114 pckr = clk_mux_index_to_val(prog->mux_table, 0, index); in clk_programmable_set_parent() 120 pckr |= AT91_PMC_CSSMCK_MCK; in clk_programmable_set_parent() 123 regmap_update_bits(prog->regmap, AT91_PMC_PCKR(prog->id), mask, pckr); in clk_programmable_set_parent() 132 unsigned int pckr; in clk_programmable_get_parent() local [all …]
|