Lines Matching +full:clk +full:- +full:source
1 // SPDX-License-Identifier: GPL-2.0-only
6 #include <linux/clk-provider.h>
10 #include "clk.h"
17 return sync->rate; in clk_sync_source_recalc_rate()
25 if (rate > sync->max_rate) in clk_sync_source_round_rate()
26 return -EINVAL; in clk_sync_source_round_rate()
36 sync->rate = rate; in clk_sync_source_set_rate()
46 struct clk *tegra_clk_register_sync_source(const char *name, in tegra_clk_register_sync_source()
51 struct clk *clk; in tegra_clk_register_sync_source() local
55 pr_err("%s: could not allocate sync source clk\n", __func__); in tegra_clk_register_sync_source()
56 return ERR_PTR(-ENOMEM); in tegra_clk_register_sync_source()
59 sync->max_rate = max_rate; in tegra_clk_register_sync_source()
68 sync->hw.init = &init; in tegra_clk_register_sync_source()
70 clk = clk_register(NULL, &sync->hw); in tegra_clk_register_sync_source()
71 if (IS_ERR(clk)) in tegra_clk_register_sync_source()
74 return clk; in tegra_clk_register_sync_source()