1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (c) 2013, The Linux Foundation. All rights reserved.
6 #ifndef __QCOM_CLK_PLL_H__
7 #define __QCOM_CLK_PLL_H__
9 #include <linux/clk-provider.h>
10 #include "clk-regmap.h"
13 * struct pll_freq_tbl - PLL frequency table
17 * @ibits: internal values
28 * struct clk_pll - phase locked loop (PLL)
32 * @config_reg: config register
33 * @mode_reg: mode register
34 * @status_reg: status register
35 * @status_bit: ANDed with @status_reg to determine if PLL is enabled
36 * @freq_tbl: PLL frequency table
37 * @hw: handle between common and hardware-specific interfaces
50 const struct pll_freq_tbl
*freq_tbl
;
52 struct clk_regmap clkr
;
55 extern const struct clk_ops clk_pll_ops
;
56 extern const struct clk_ops clk_pll_vote_ops
;
57 extern const struct clk_ops clk_pll_sr2_ops
;
59 #define to_clk_pll(_hw) container_of(to_clk_regmap(_hw), struct clk_pll, clkr)
76 void clk_pll_configure_sr(struct clk_pll
*pll
, struct regmap
*regmap
,
77 const struct pll_config
*config
, bool fsm_mode
);
78 void clk_pll_configure_sr_hpm_lp(struct clk_pll
*pll
, struct regmap
*regmap
,
79 const struct pll_config
*config
, bool fsm_mode
);