]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blame - drivers/clk/qcom/common.h
clk: qcom: Add IPQ8064 PLL required for USB
[mirror_ubuntu-jammy-kernel.git] / drivers / clk / qcom / common.h
CommitLineData
49fc825f
SB
1/*
2 * Copyright (c) 2014, The Linux Foundation. All rights reserved.
3 *
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.
7 *
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.
12 */
13#ifndef __QCOM_CLK_COMMON_H__
14#define __QCOM_CLK_COMMON_H__
15
16struct platform_device;
17struct regmap_config;
18struct clk_regmap;
19struct qcom_reset_map;
5b6b7490 20struct regmap;
49fc825f
SB
21
22struct qcom_cc_desc {
23 const struct regmap_config *config;
24 struct clk_regmap **clks;
25 size_t num_clks;
26 const struct qcom_reset_map *resets;
27 size_t num_resets;
28};
29
5b6b7490
SB
30extern struct regmap *qcom_cc_map(struct platform_device *pdev,
31 const struct qcom_cc_desc *desc);
32extern int qcom_cc_really_probe(struct platform_device *pdev,
33 const struct qcom_cc_desc *desc,
34 struct regmap *regmap);
49fc825f
SB
35extern int qcom_cc_probe(struct platform_device *pdev,
36 const struct qcom_cc_desc *desc);
37
38extern void qcom_cc_remove(struct platform_device *pdev);
39
40#endif