xref: /openbmc/linux/drivers/clk/qcom/clk-regmap-divider.h (revision f933d383df6b42e3262426d35593f18ff21aad57)
14116076eSJosh Cartwright /*
24116076eSJosh Cartwright  * Copyright (c) 2014, The Linux Foundation. All rights reserved.
34116076eSJosh Cartwright  *
44116076eSJosh Cartwright  * This software is licensed under the terms of the GNU General Public
54116076eSJosh Cartwright  * License version 2, as published by the Free Software Foundation, and
64116076eSJosh Cartwright  * may be copied, distributed, and modified under those terms.
74116076eSJosh Cartwright  *
84116076eSJosh Cartwright  * This program is distributed in the hope that it will be useful,
94116076eSJosh Cartwright  * but WITHOUT ANY WARRANTY; without even the implied warranty of
104116076eSJosh Cartwright  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
114116076eSJosh Cartwright  * GNU General Public License for more details.
124116076eSJosh Cartwright  */
134116076eSJosh Cartwright 
144116076eSJosh Cartwright #ifndef __QCOM_CLK_REGMAP_DIVIDER_H__
154116076eSJosh Cartwright #define __QCOM_CLK_REGMAP_DIVIDER_H__
164116076eSJosh Cartwright 
174116076eSJosh Cartwright #include <linux/clk-provider.h>
184116076eSJosh Cartwright #include "clk-regmap.h"
194116076eSJosh Cartwright 
204116076eSJosh Cartwright struct clk_regmap_div {
214116076eSJosh Cartwright 	u32			reg;
224116076eSJosh Cartwright 	u32			shift;
234116076eSJosh Cartwright 	u32			width;
244116076eSJosh Cartwright 	struct clk_regmap	clkr;
254116076eSJosh Cartwright };
264116076eSJosh Cartwright 
274116076eSJosh Cartwright extern const struct clk_ops clk_regmap_div_ops;
28*f933d383SAbhishek Sahu extern const struct clk_ops clk_regmap_div_ro_ops;
294116076eSJosh Cartwright 
304116076eSJosh Cartwright #endif
31