linux/drivers/clk/clk-tps68470.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Clock driver for TPS68470 PMIC
 *
 * Copyright (c) 2021 Red Hat Inc.
 * Copyright (C) 2018 Intel Corporation
 *
 * Authors:
 *	Hans de Goede <[email protected]>
 *	Zaikuo Wang <[email protected]>
 *	Tianshu Qiu <[email protected]>
 *	Jian Xu Zheng <[email protected]>
 *	Yuning Pu <[email protected]>
 *	Antti Laakso <[email protected]>
 */

#include <linux/clk-provider.h>
#include <linux/clkdev.h>
#include <linux/kernel.h>
#include <linux/mfd/tps68470.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/platform_data/tps68470.h>
#include <linux/regmap.h>

#define TPS68470_CLK_NAME

#define to_tps68470_clkdata(clkd)

static struct tps68470_clkout_freqs {} clk_freqs[] =;

struct tps68470_clkdata {};

static int tps68470_clk_is_prepared(struct clk_hw *hw)
{}

static int tps68470_clk_prepare(struct clk_hw *hw)
{}

static void tps68470_clk_unprepare(struct clk_hw *hw)
{}

static unsigned long tps68470_clk_recalc_rate(struct clk_hw *hw, unsigned long parent_rate)
{}

/*
 * This returns the index of the clk_freqs[] cfg with the closest rate for
 * use in tps68470_clk_round_rate(). tps68470_clk_set_rate() checks that
 * the rate of the returned cfg is an exact match.
 */
static unsigned int tps68470_clk_cfg_lookup(unsigned long rate)
{}

static long tps68470_clk_round_rate(struct clk_hw *hw, unsigned long rate,
				    unsigned long *parent_rate)
{}

static int tps68470_clk_set_rate(struct clk_hw *hw, unsigned long rate,
				 unsigned long parent_rate)
{}

static const struct clk_ops tps68470_clk_ops =;

static int tps68470_clk_probe(struct platform_device *pdev)
{}

static struct platform_driver tps68470_clk_driver =;

/*
 * The ACPI tps68470 probe-ordering depends on the clk/gpio/regulator drivers
 * registering before the drivers for the camera-sensors which use them bind.
 * subsys_initcall() ensures this when the drivers are builtin.
 */
static int __init tps68470_clk_init(void)
{}
subsys_initcall(tps68470_clk_init);

static void __exit tps68470_clk_exit(void)
{}
module_exit(tps68470_clk_exit);

MODULE_ALIAS();
MODULE_DESCRIPTION();
MODULE_LICENSE();