| xj | b04a402 | 2021-11-25 15:01:52 +0800 | [diff] [blame] | 1 | /* | 
 | 2 |  * Copyright (c) 2015 Linaro Ltd. | 
 | 3 |  * Author: Pi-Cheng Chen <pi-cheng.chen@linaro.org> | 
 | 4 |  * | 
 | 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. | 
 | 8 |  * | 
 | 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. | 
 | 13 |  */ | 
 | 14 |  | 
 | 15 | #ifndef __DRV_CLK_CPUMUX_H | 
 | 16 | #define __DRV_CLK_CPUMUX_H | 
 | 17 |  | 
 | 18 | struct mtk_clk_cpumux { | 
 | 19 | 	struct clk_hw	hw; | 
 | 20 | 	struct regmap	*regmap; | 
 | 21 | 	u32		reg; | 
 | 22 | 	u32		mask; | 
 | 23 | 	u8		shift; | 
 | 24 | }; | 
 | 25 |  | 
 | 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); | 
 | 29 |  | 
 | 30 | #endif /* __DRV_CLK_CPUMUX_H */ |