xref: /linux/drivers/clk/mediatek/clk-cpumux.h (revision ebf68996de0ab250c5d520eb2291ab65643e9a1e)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Copyright (c) 2015 Linaro Ltd.
4  * Author: Pi-Cheng Chen <pi-cheng.chen@linaro.org>
5  */
6 
7 #ifndef __DRV_CLK_CPUMUX_H
8 #define __DRV_CLK_CPUMUX_H
9 
10 struct mtk_clk_cpumux {
11 	struct clk_hw	hw;
12 	struct regmap	*regmap;
13 	u32		reg;
14 	u32		mask;
15 	u8		shift;
16 };
17 
18 int mtk_clk_register_cpumuxes(struct device_node *node,
19 			      const struct mtk_composite *clks, int num,
20 			      struct clk_onecell_data *clk_data);
21 
22 #endif /* __DRV_CLK_CPUMUX_H */
23