linux/drivers/clk/socfpga/clk-pll.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 *  Copyright 2011-2012 Calxeda, Inc.
 *  Copyright (C) 2012-2013 Altera Corporation <www.altera.com>
 *
 * Based from clk-highbank.c
 */
#include <linux/slab.h>
#include <linux/clk-provider.h>
#include <linux/io.h>
#include <linux/of.h>
#include <linux/of_address.h>

#include "clk.h"

/* Clock bypass bits */
#define MAINPLL_BYPASS
#define SDRAMPLL_BYPASS
#define SDRAMPLL_SRC_BYPASS
#define PERPLL_BYPASS
#define PERPLL_SRC_BYPASS

#define SOCFPGA_PLL_BG_PWRDWN
#define SOCFPGA_PLL_EXT_ENA
#define SOCFPGA_PLL_PWR_DOWN
#define SOCFPGA_PLL_DIVF_MASK
#define SOCFPGA_PLL_DIVF_SHIFT
#define SOCFPGA_PLL_DIVQ_MASK
#define SOCFPGA_PLL_DIVQ_SHIFT

#define CLK_MGR_PLL_CLK_SRC_SHIFT
#define CLK_MGR_PLL_CLK_SRC_MASK

#define to_socfpga_clk(p)

void __iomem *clk_mgr_base_addr;

static unsigned long clk_pll_recalc_rate(struct clk_hw *hwclk,
					 unsigned long parent_rate)
{}

static u8 clk_pll_get_parent(struct clk_hw *hwclk)
{}

static const struct clk_ops clk_pll_ops =;

static void __init __socfpga_pll_init(struct device_node *node,
				      const struct clk_ops *ops)
{}

void __init socfpga_pll_init(struct device_node *node)
{}