linux/drivers/clk/mediatek/clk-mtk.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2014 MediaTek Inc.
 * Author: James Liao <[email protected]>
 */

#include <linux/bitops.h>
#include <linux/clk-provider.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/mfd/syscon.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#include <linux/slab.h>

#include "clk-mtk.h"
#include "clk-gate.h"
#include "clk-mux.h"

const struct mtk_gate_regs cg_regs_dummy =;
EXPORT_SYMBOL_GPL();

static int mtk_clk_dummy_enable(struct clk_hw *hw)
{}

static void mtk_clk_dummy_disable(struct clk_hw *hw) {}

const struct clk_ops mtk_clk_dummy_ops =;
EXPORT_SYMBOL_GPL();

static void mtk_init_clk_data(struct clk_hw_onecell_data *clk_data,
			      unsigned int clk_num)
{}

struct clk_hw_onecell_data *mtk_devm_alloc_clk_data(struct device *dev,
						    unsigned int clk_num)
{}
EXPORT_SYMBOL_GPL();

struct clk_hw_onecell_data *mtk_alloc_clk_data(unsigned int clk_num)
{}
EXPORT_SYMBOL_GPL();

void mtk_free_clk_data(struct clk_hw_onecell_data *clk_data)
{}
EXPORT_SYMBOL_GPL();

int mtk_clk_register_fixed_clks(const struct mtk_fixed_clk *clks, int num,
				struct clk_hw_onecell_data *clk_data)
{}
EXPORT_SYMBOL_GPL();

void mtk_clk_unregister_fixed_clks(const struct mtk_fixed_clk *clks, int num,
				   struct clk_hw_onecell_data *clk_data)
{}
EXPORT_SYMBOL_GPL();

int mtk_clk_register_factors(const struct mtk_fixed_factor *clks, int num,
			     struct clk_hw_onecell_data *clk_data)
{}
EXPORT_SYMBOL_GPL();

void mtk_clk_unregister_factors(const struct mtk_fixed_factor *clks, int num,
				struct clk_hw_onecell_data *clk_data)
{}
EXPORT_SYMBOL_GPL();

static struct clk_hw *mtk_clk_register_composite(struct device *dev,
		const struct mtk_composite *mc, void __iomem *base, spinlock_t *lock)
{}

static void mtk_clk_unregister_composite(struct clk_hw *hw)
{}

int mtk_clk_register_composites(struct device *dev,
				const struct mtk_composite *mcs, int num,
				void __iomem *base, spinlock_t *lock,
				struct clk_hw_onecell_data *clk_data)
{}
EXPORT_SYMBOL_GPL();

void mtk_clk_unregister_composites(const struct mtk_composite *mcs, int num,
				   struct clk_hw_onecell_data *clk_data)
{}
EXPORT_SYMBOL_GPL();

int mtk_clk_register_dividers(struct device *dev,
			      const struct mtk_clk_divider *mcds, int num,
			      void __iomem *base, spinlock_t *lock,
			      struct clk_hw_onecell_data *clk_data)
{}
EXPORT_SYMBOL_GPL();

void mtk_clk_unregister_dividers(const struct mtk_clk_divider *mcds, int num,
				 struct clk_hw_onecell_data *clk_data)
{}
EXPORT_SYMBOL_GPL();

static int __mtk_clk_simple_probe(struct platform_device *pdev,
				  struct device_node *node)
{}

static void __mtk_clk_simple_remove(struct platform_device *pdev,
				   struct device_node *node)
{}

int mtk_clk_pdev_probe(struct platform_device *pdev)
{}
EXPORT_SYMBOL_GPL();

int mtk_clk_simple_probe(struct platform_device *pdev)
{}
EXPORT_SYMBOL_GPL();

void mtk_clk_pdev_remove(struct platform_device *pdev)
{}
EXPORT_SYMBOL_GPL();

void mtk_clk_simple_remove(struct platform_device *pdev)
{}
EXPORT_SYMBOL_GPL();

MODULE_LICENSE();