Loading...
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright (c) 2014, The Linux Foundation. All rights reserved.
4 */
5
6#ifndef __QCOM_CLK_REGMAP_DIVIDER_H__
7#define __QCOM_CLK_REGMAP_DIVIDER_H__
8
9#include <linux/clk-provider.h>
10#include "clk-regmap.h"
11
12struct clk_regmap_div {
13 u32 reg;
14 u32 shift;
15 u32 width;
16 struct clk_regmap clkr;
17};
18
19extern const struct clk_ops clk_regmap_div_ops;
20extern const struct clk_ops clk_regmap_div_ro_ops;
21
22#endif
1/*
2 * Copyright (c) 2014, The Linux Foundation. All rights reserved.
3 *
4 * This software is licensed under the terms of the GNU General Public
5 * License version 2, as published by the Free Software Foundation, and
6 * may be copied, distributed, and modified under those terms.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 */
13
14#ifndef __QCOM_CLK_REGMAP_DIVIDER_H__
15#define __QCOM_CLK_REGMAP_DIVIDER_H__
16
17#include <linux/clk-provider.h>
18#include "clk-regmap.h"
19
20struct clk_regmap_div {
21 u32 reg;
22 u32 shift;
23 u32 width;
24 struct clk_regmap clkr;
25};
26
27extern const struct clk_ops clk_regmap_div_ops;
28
29#endif