Linux 4.19.133
[linux/fpc-iii.git] / drivers / clk / meson / meson-aoclk.h
blobab2819e889228f3eabc7779649f5cb21f1aedbdc
1 /* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
2 /*
3 * Copyright (c) 2017 BayLibre, SAS
4 * Author: Neil Armstrong <narmstrong@baylibre.com>
6 * Copyright (c) 2018 Amlogic, inc.
7 * Author: Qiufang Dai <qiufang.dai@amlogic.com>
8 * Author: Yixun Lan <yixun.lan@amlogic.com>
9 */
11 #ifndef __MESON_AOCLK_H__
12 #define __MESON_AOCLK_H__
14 #include <linux/platform_device.h>
15 #include <linux/reset-controller.h>
16 #include "clk-regmap.h"
18 struct meson_aoclk_data {
19 const unsigned int reset_reg;
20 const int num_reset;
21 const unsigned int *reset;
22 int num_clks;
23 struct clk_regmap **clks;
24 const struct clk_hw_onecell_data *hw_data;
27 struct meson_aoclk_reset_controller {
28 struct reset_controller_dev reset;
29 const struct meson_aoclk_data *data;
30 struct regmap *regmap;
33 int meson_aoclkc_probe(struct platform_device *pdev);
34 #endif