#include <linux/clk.h>
#include <linux/clk-provider.h>
#include <linux/io.h>
#include <dt-bindings/clock/r7s9210-cpg-mssr.h>
#include "renesas-cpg-mssr.h"
#define CPG_FRQCR …
static u8 cpg_mode;
static const struct { … } ratio_tab[5] = …;
enum rz_clk_types { … };
enum clk_ids { … };
static struct cpg_core_clk r7s9210_early_core_clks[] = …;
static const struct mssr_mod_clk r7s9210_early_mod_clks[] __initconst = …;
static struct cpg_core_clk r7s9210_core_clks[] = …;
static const struct mssr_mod_clk r7s9210_mod_clks[] __initconst = …;
static void __init r7s9210_update_clk_table(struct clk *extal_clk,
void __iomem *base)
{ … }
static struct clk * __init rza2_cpg_clk_register(struct device *dev,
const struct cpg_core_clk *core, const struct cpg_mssr_info *info,
struct clk **clks, void __iomem *base,
struct raw_notifier_head *notifiers)
{ … }
const struct cpg_mssr_info r7s9210_cpg_mssr_info __initconst = …;
static void __init r7s9210_cpg_mssr_early_init(struct device_node *np)
{ … }
CLK_OF_DECLARE_DRIVER(cpg_mstp_clks, "renesas,r7s9210-cpg-mssr",
r7s9210_cpg_mssr_early_init);