Lines Matching refs:layout
28 const struct clk_pcr_layout *layout; member
41 pmc_write(gck->base, gck->layout->offset, in clk_gck_enable()
42 (gck->id & gck->layout->pid_mask)); in clk_gck_enable()
43 pmc_update_bits(gck->base, gck->layout->offset, in clk_gck_enable()
44 gck->layout->cmd | AT91_PMC_PCR_GCKEN, in clk_gck_enable()
45 gck->layout->cmd | AT91_PMC_PCR_GCKEN); in clk_gck_enable()
54 pmc_write(gck->base, gck->layout->offset, in clk_gck_disable()
55 (gck->id & gck->layout->pid_mask)); in clk_gck_disable()
56 pmc_update_bits(gck->base, gck->layout->offset, in clk_gck_disable()
57 gck->layout->cmd | AT91_PMC_PCR_GCKEN, in clk_gck_disable()
58 gck->layout->cmd); in clk_gck_disable()
78 pmc_write(gck->base, gck->layout->offset, in clk_gck_set_parent()
79 (gck->id & gck->layout->pid_mask)); in clk_gck_set_parent()
80 pmc_update_bits(gck->base, gck->layout->offset, in clk_gck_set_parent()
81 gck->layout->gckcss_mask | gck->layout->cmd, in clk_gck_set_parent()
82 (index << (ffs(gck->layout->gckcss_mask) - 1)) | in clk_gck_set_parent()
83 gck->layout->cmd); in clk_gck_set_parent()
104 pmc_write(gck->base, gck->layout->offset, in clk_gck_set_rate()
105 (gck->id & gck->layout->pid_mask)); in clk_gck_set_rate()
106 pmc_update_bits(gck->base, gck->layout->offset, in clk_gck_set_rate()
107 AT91_PMC_PCR_GCKDIV_MASK | gck->layout->cmd, in clk_gck_set_rate()
109 gck->layout->cmd); in clk_gck_set_rate()
123 pmc_write(gck->base, gck->layout->offset, in clk_gck_get_rate()
124 (gck->id & gck->layout->pid_mask)); in clk_gck_get_rate()
125 pmc_read(gck->base, gck->layout->offset, &val); in clk_gck_get_rate()
143 const struct clk_pcr_layout *layout, in at91_clk_register_generic() argument
154 if (!base || !layout || !name || !parent_names || !num_parents || in at91_clk_register_generic()
165 gck->layout = layout; in at91_clk_register_generic()
173 pmc_write(gck->base, gck->layout->offset, in at91_clk_register_generic()
174 (gck->id & gck->layout->pid_mask)); in at91_clk_register_generic()
175 pmc_read(gck->base, gck->layout->offset, &val); in at91_clk_register_generic()
177 val = (val & gck->layout->gckcss_mask) >> in at91_clk_register_generic()
178 (ffs(gck->layout->gckcss_mask) - 1); in at91_clk_register_generic()