#include <linux/kernel.h>
#include <linux/bitops.h>
#include <linux/err.h>
#include <linux/bug.h>
#include <linux/delay.h>
#include <linux/export.h>
#include <linux/clk-provider.h>
#include <linux/regmap.h>
#include <asm/div64.h>
#include "clk-pll.h"
#include "common.h"
#define PLL_OUTCTRL …
#define PLL_BYPASSNL …
#define PLL_RESET_N …
static int clk_pll_enable(struct clk_hw *hw)
{ … }
static void clk_pll_disable(struct clk_hw *hw)
{ … }
static unsigned long
clk_pll_recalc_rate(struct clk_hw *hw, unsigned long parent_rate)
{ … }
static const
struct pll_freq_tbl *find_freq(const struct pll_freq_tbl *f, unsigned long rate)
{ … }
static int
clk_pll_determine_rate(struct clk_hw *hw, struct clk_rate_request *req)
{ … }
static int
clk_pll_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long p_rate)
{ … }
const struct clk_ops clk_pll_ops = …;
EXPORT_SYMBOL_GPL(…);
static int wait_for_pll(struct clk_pll *pll)
{ … }
static int clk_pll_vote_enable(struct clk_hw *hw)
{ … }
const struct clk_ops clk_pll_vote_ops = …;
EXPORT_SYMBOL_GPL(…);
static void clk_pll_configure(struct clk_pll *pll, struct regmap *regmap,
const struct pll_config *config)
{ … }
void clk_pll_configure_sr(struct clk_pll *pll, struct regmap *regmap,
const struct pll_config *config, bool fsm_mode)
{ … }
EXPORT_SYMBOL_GPL(…);
void clk_pll_configure_sr_hpm_lp(struct clk_pll *pll, struct regmap *regmap,
const struct pll_config *config, bool fsm_mode)
{ … }
EXPORT_SYMBOL_GPL(…);
static int clk_pll_sr2_enable(struct clk_hw *hw)
{ … }
static int
clk_pll_sr2_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long prate)
{ … }
const struct clk_ops clk_pll_sr2_ops = …;
EXPORT_SYMBOL_GPL(…);