1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (c) 2014 MediaTek Inc.
4 * Author: James Liao <jamesjj.liao@mediatek.com>
7 #ifndef __DRV_CLK_MTK_PLL_H
8 #define __DRV_CLK_MTK_PLL_H
10 #include <linux/types.h>
13 struct clk_hw_onecell_data;
16 struct mtk_pll_div_table {
21 #define HAVE_RST_BAR BIT(0)
36 const struct clk_ops *ops;
45 const struct mtk_pll_div_table *div_table;
46 const char *parent_name;
48 u8 pll_en_bit; /* Assume 0, indicates BIT(0) by default */
51 int mtk_clk_register_plls(struct device_node *node,
52 const struct mtk_pll_data *plls, int num_plls,
53 struct clk_hw_onecell_data *clk_data);
54 void mtk_clk_unregister_plls(const struct mtk_pll_data *plls, int num_plls,
55 struct clk_hw_onecell_data *clk_data);
57 #endif /* __DRV_CLK_MTK_PLL_H */