1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2019 BayLibre, SAS.
4 * Author: Jerome Brunet <jbrunet@baylibre.com>
7 #ifndef __MESON_CLK_PLL_H
8 #define __MESON_CLK_PLL_H
10 #include <linux/clk-provider.h>
11 #include <linux/regmap.h>
14 struct pll_params_table
{
19 struct pll_mult_range
{
24 #define PLL_PARAMS(_m, _n) \
30 #define CLK_MESON_PLL_ROUND_CLOSEST BIT(0)
32 struct meson_clk_pll_data
{
39 const struct reg_sequence
*init_regs
;
40 unsigned int init_count
;
41 const struct pll_params_table
*table
;
42 const struct pll_mult_range
*range
;
46 extern const struct clk_ops meson_clk_pll_ro_ops
;
47 extern const struct clk_ops meson_clk_pll_ops
;
48 extern const struct clk_ops meson_clk_pcie_pll_ops
;
50 #endif /* __MESON_CLK_PLL_H */