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