Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
at v4.9 52 lines 1.7 kB view raw
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; 20struct regmap; 21struct freq_tbl; 22struct clk_hw; 23struct parent_map; 24 25struct qcom_cc_desc { 26 const struct regmap_config *config; 27 struct clk_regmap **clks; 28 size_t num_clks; 29 const struct qcom_reset_map *resets; 30 size_t num_resets; 31 struct gdsc **gdscs; 32 size_t num_gdscs; 33}; 34 35extern const struct freq_tbl *qcom_find_freq(const struct freq_tbl *f, 36 unsigned long rate); 37extern int qcom_find_src_index(struct clk_hw *hw, const struct parent_map *map, 38 u8 src); 39 40extern int qcom_cc_register_board_clk(struct device *dev, const char *path, 41 const char *name, unsigned long rate); 42extern int qcom_cc_register_sleep_clk(struct device *dev); 43 44extern struct regmap *qcom_cc_map(struct platform_device *pdev, 45 const struct qcom_cc_desc *desc); 46extern int qcom_cc_really_probe(struct platform_device *pdev, 47 const struct qcom_cc_desc *desc, 48 struct regmap *regmap); 49extern int qcom_cc_probe(struct platform_device *pdev, 50 const struct qcom_cc_desc *desc); 51 52#endif