Lines Matching +full:fast +full:- +full:clk
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * clk-h32mx.c
7 * Alexandre Belloni <alexandre.belloni@free-electrons.com>
10 #include <linux/clk-provider.h>
12 #include <linux/clk/at91_pmc.h>
34 regmap_read(h32mxclk->regmap, AT91_PMC_MCKR, &mckr); in clk_sama5d4_h32mx_recalc_rate()
39 pr_warn("H32MX clock is too fast\n"); in clk_sama5d4_h32mx_recalc_rate()
54 if (rate - div < *parent_rate - rate) in clk_sama5d4_h32mx_round_rate()
67 return -EINVAL; in clk_sama5d4_h32mx_set_rate()
72 regmap_update_bits(h32mxclk->regmap, AT91_PMC_MCKR, in clk_sama5d4_h32mx_set_rate()
94 return ERR_PTR(-ENOMEM); in at91_clk_register_h32mx()
102 h32mxclk->hw.init = &init; in at91_clk_register_h32mx()
103 h32mxclk->regmap = regmap; in at91_clk_register_h32mx()
105 ret = clk_hw_register(NULL, &h32mxclk->hw); in at91_clk_register_h32mx()
111 return &h32mxclk->hw; in at91_clk_register_h32mx()