Linux 4.18.10
[linux/fpc-iii.git] / drivers / clk / mediatek / clk-cpumux.h
blobdddaad57454d65e410b4ad709c39f92434adc2d5
1 /*
2 * Copyright (c) 2015 Linaro Ltd.
3 * Author: Pi-Cheng Chen <pi-cheng.chen@linaro.org>
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
15 #ifndef __DRV_CLK_CPUMUX_H
16 #define __DRV_CLK_CPUMUX_H
18 struct mtk_clk_cpumux {
19 struct clk_hw hw;
20 struct regmap *regmap;
21 u32 reg;
22 u32 mask;
23 u8 shift;
26 int mtk_clk_register_cpumuxes(struct device_node *node,
27 const struct mtk_composite *clks, int num,
28 struct clk_onecell_data *clk_data);
30 #endif /* __DRV_CLK_CPUMUX_H */