Lines Matching refs:utmi

51 	struct clk_utmi *utmi = to_clk_utmi(clk);  in clk_utmi_enable()  local
84 if (utmi->regmap_sfr) { in clk_utmi_enable()
85 regmap_update_bits(utmi->regmap_sfr, AT91_SFR_UTMICKTRIM, in clk_utmi_enable()
92 pmc_update_bits(utmi->base, AT91_CKGR_UCKR, uckr, uckr); in clk_utmi_enable()
94 while (!clk_utmi_ready(utmi->base)) { in clk_utmi_enable()
104 struct clk_utmi *utmi = to_clk_utmi(clk); in clk_utmi_disable() local
106 pmc_update_bits(utmi->base, AT91_CKGR_UCKR, AT91_PMC_UPLLEN, 0); in clk_utmi_disable()
127 struct clk_utmi *utmi; in at91_clk_register_utmi() local
139 utmi = kzalloc(sizeof(*utmi), GFP_KERNEL); in at91_clk_register_utmi()
140 if (!utmi) in at91_clk_register_utmi()
143 utmi->base = base; in at91_clk_register_utmi()
144 utmi->regmap_sfr = syscon_get_regmap(syscon); in at91_clk_register_utmi()
145 if (!utmi->regmap_sfr) { in at91_clk_register_utmi()
146 kfree(utmi); in at91_clk_register_utmi()
150 clk = &utmi->clk; in at91_clk_register_utmi()
154 kfree(utmi); in at91_clk_register_utmi()
170 struct clk_utmi *utmi = to_clk_utmi(clk); in clk_utmi_sama7g5_enable() local
192 pmc_write(utmi->base, AT91_PMC_XTALF, val); in clk_utmi_sama7g5_enable()
205 struct clk_utmi *utmi; in at91_clk_sama7g5_register_utmi() local
212 utmi = kzalloc(sizeof(*utmi), GFP_KERNEL); in at91_clk_sama7g5_register_utmi()
213 if (!utmi) in at91_clk_sama7g5_register_utmi()
216 utmi->base = base; in at91_clk_sama7g5_register_utmi()
218 clk = &utmi->clk; in at91_clk_sama7g5_register_utmi()
222 kfree(utmi); in at91_clk_sama7g5_register_utmi()