1
2
3
4
5
6
7
8
9
10
11 #ifndef __MESON_AOCLK_H__
12 #define __MESON_AOCLK_H__
13
14 #include <linux/clk-provider.h>
15 #include <linux/platform_device.h>
16 #include <linux/regmap.h>
17 #include <linux/reset-controller.h>
18
19 #include "clk-regmap.h"
20
21 struct meson_aoclk_data {
22 const unsigned int reset_reg;
23 const int num_reset;
24 const unsigned int *reset;
25 const int num_clks;
26 struct clk_regmap **clks;
27 const struct clk_hw_onecell_data *hw_data;
28 };
29
30 struct meson_aoclk_reset_controller {
31 struct reset_controller_dev reset;
32 const struct meson_aoclk_data *data;
33 struct regmap *regmap;
34 };
35
36 int meson_aoclkc_probe(struct platform_device *pdev);
37 #endif