Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
0002 /*
0003  * Copyright (c) 2017 BayLibre, SAS
0004  * Author: Neil Armstrong <narmstrong@baylibre.com>
0005  *
0006  * Copyright (c) 2018 Amlogic, inc.
0007  * Author: Qiufang Dai <qiufang.dai@amlogic.com>
0008  * Author: Yixun Lan <yixun.lan@amlogic.com>
0009  */
0010 
0011 #ifndef __MESON_AOCLK_H__
0012 #define __MESON_AOCLK_H__
0013 
0014 #include <linux/clk-provider.h>
0015 #include <linux/platform_device.h>
0016 #include <linux/regmap.h>
0017 #include <linux/reset-controller.h>
0018 
0019 #include "clk-regmap.h"
0020 
0021 struct meson_aoclk_data {
0022     const unsigned int          reset_reg;
0023     const int               num_reset;
0024     const unsigned int          *reset;
0025     const int               num_clks;
0026     struct clk_regmap           **clks;
0027     const struct clk_hw_onecell_data    *hw_data;
0028 };
0029 
0030 struct meson_aoclk_reset_controller {
0031     struct reset_controller_dev     reset;
0032     const struct meson_aoclk_data       *data;
0033     struct regmap               *regmap;
0034 };
0035 
0036 int meson_aoclkc_probe(struct platform_device *pdev);
0037 #endif