linux/drivers/clk/qcom/common.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
 */

#include <linux/export.h>
#include <linux/module.h>
#include <linux/regmap.h>
#include <linux/platform_device.h>
#include <linux/clk-provider.h>
#include <linux/interconnect-clk.h>
#include <linux/reset-controller.h>
#include <linux/of.h>

#include "common.h"
#include "clk-rcg.h"
#include "clk-regmap.h"
#include "reset.h"
#include "gdsc.h"

struct qcom_cc {};

const
struct freq_tbl *qcom_find_freq(const struct freq_tbl *f, unsigned long rate)
{}
EXPORT_SYMBOL_GPL();

const struct freq_multi_tbl *qcom_find_freq_multi(const struct freq_multi_tbl *f,
						  unsigned long rate)
{}
EXPORT_SYMBOL_GPL();

const struct freq_tbl *qcom_find_freq_floor(const struct freq_tbl *f,
					    unsigned long rate)
{}
EXPORT_SYMBOL_GPL();

int qcom_find_src_index(struct clk_hw *hw, const struct parent_map *map, u8 src)
{}
EXPORT_SYMBOL_GPL();

int qcom_find_cfg_index(struct clk_hw *hw, const struct parent_map *map, u8 cfg)
{}
EXPORT_SYMBOL_GPL();

struct regmap *
qcom_cc_map(struct platform_device *pdev, const struct qcom_cc_desc *desc)
{}
EXPORT_SYMBOL_GPL();

void
qcom_pll_set_fsm_mode(struct regmap *map, u32 reg, u8 bias_count, u8 lock_count)
{}
EXPORT_SYMBOL_GPL();

static void qcom_cc_gdsc_unregister(void *data)
{}

/*
 * Backwards compatibility with old DTs. Register a pass-through factor 1/1
 * clock to translate 'path' clk into 'name' clk and register the 'path'
 * clk as a fixed rate clock if it isn't present.
 */
static int _qcom_cc_register_board_clk(struct device *dev, const char *path,
				       const char *name, unsigned long rate,
				       bool add_factor)
{}

int qcom_cc_register_board_clk(struct device *dev, const char *path,
			       const char *name, unsigned long rate)
{}
EXPORT_SYMBOL_GPL();

int qcom_cc_register_sleep_clk(struct device *dev)
{}
EXPORT_SYMBOL_GPL();

/* Drop 'protected-clocks' from the list of clocks to register */
static void qcom_cc_drop_protected(struct device *dev, struct qcom_cc *cc)
{}

static struct clk_hw *qcom_cc_clk_hw_get(struct of_phandle_args *clkspec,
					 void *data)
{}

static int qcom_cc_icc_register(struct device *dev,
				const struct qcom_cc_desc *desc)
{}

int qcom_cc_really_probe(struct device *dev,
			 const struct qcom_cc_desc *desc, struct regmap *regmap)
{}
EXPORT_SYMBOL_GPL();

int qcom_cc_probe(struct platform_device *pdev, const struct qcom_cc_desc *desc)
{}
EXPORT_SYMBOL_GPL();

int qcom_cc_probe_by_index(struct platform_device *pdev, int index,
			   const struct qcom_cc_desc *desc)
{}
EXPORT_SYMBOL_GPL();

MODULE_LICENSE();
MODULE_DESCRIPTION();