18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright (c) 2015 Linaro Ltd. 48c2ecf20Sopenharmony_ci * Author: Pi-Cheng Chen <pi-cheng.chen@linaro.org> 58c2ecf20Sopenharmony_ci */ 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci#ifndef __DRV_CLK_CPUMUX_H 88c2ecf20Sopenharmony_ci#define __DRV_CLK_CPUMUX_H 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_cistruct mtk_clk_cpumux { 118c2ecf20Sopenharmony_ci struct clk_hw hw; 128c2ecf20Sopenharmony_ci struct regmap *regmap; 138c2ecf20Sopenharmony_ci u32 reg; 148c2ecf20Sopenharmony_ci u32 mask; 158c2ecf20Sopenharmony_ci u8 shift; 168c2ecf20Sopenharmony_ci}; 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ciint mtk_clk_register_cpumuxes(struct device_node *node, 198c2ecf20Sopenharmony_ci const struct mtk_composite *clks, int num, 208c2ecf20Sopenharmony_ci struct clk_onecell_data *clk_data); 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci#endif /* __DRV_CLK_CPUMUX_H */ 23