Loading...
Note: File does not exist in v3.1.
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _CLK_KUNIT_H
3#define _CLK_KUNIT_H
4
5struct clk;
6struct clk_hw;
7struct device;
8struct device_node;
9struct kunit;
10
11struct clk *
12clk_get_kunit(struct kunit *test, struct device *dev, const char *con_id);
13struct clk *
14of_clk_get_kunit(struct kunit *test, struct device_node *np, int index);
15
16struct clk *
17clk_hw_get_clk_kunit(struct kunit *test, struct clk_hw *hw, const char *con_id);
18struct clk *
19clk_hw_get_clk_prepared_enabled_kunit(struct kunit *test, struct clk_hw *hw,
20 const char *con_id);
21
22int clk_prepare_enable_kunit(struct kunit *test, struct clk *clk);
23
24int clk_hw_register_kunit(struct kunit *test, struct device *dev, struct clk_hw *hw);
25int of_clk_hw_register_kunit(struct kunit *test, struct device_node *node,
26 struct clk_hw *hw);
27
28int of_clk_add_hw_provider_kunit(struct kunit *test, struct device_node *np,
29 struct clk_hw *(*get)(struct of_phandle_args *clkspec, void *data),
30 void *data);
31
32#endif