2 * Copyright (c) 2013, The Linux Foundation. All rights reserved.
4 * This software is licensed under the terms of the GNU General Public
5 * License version 2, as published by the Free Software Foundation, and
6 * may be copied, distributed, and modified under those terms.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
14 #ifndef __QCOM_CLK_PLL_H__
15 #define __QCOM_CLK_PLL_H__
17 #include <linux/clk-provider.h>
18 #include "clk-regmap.h"
21 * struct clk_pll - phase locked loop (PLL)
25 * @config_reg: config register
26 * @mode_reg: mode register
27 * @status_reg: status register
28 * @status_bit: ANDed with @status_reg to determine if PLL is enabled
29 * @hw: handle between common and hardware-specific interfaces
40 struct clk_regmap clkr
;
43 extern const struct clk_ops clk_pll_ops
;
44 extern const struct clk_ops clk_pll_vote_ops
;
46 #define to_clk_pll(_hw) container_of(to_clk_regmap(_hw), struct clk_pll, clkr)
63 void clk_pll_configure_sr_hpm_lp(struct clk_pll
*pll
, struct regmap
*regmap
,
64 const struct pll_config
*config
, bool fsm_mode
);