#include <linux/clk-provider.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include "clk.h"
#include "clk-pll.h"
#include <dt-bindings/clock/s5pv210.h>
#define APLL_LOCK …
#define MPLL_LOCK …
#define EPLL_LOCK …
#define VPLL_LOCK …
#define APLL_CON0 …
#define APLL_CON1 …
#define MPLL_CON …
#define EPLL_CON0 …
#define EPLL_CON1 …
#define VPLL_CON …
#define CLK_SRC0 …
#define CLK_SRC1 …
#define CLK_SRC2 …
#define CLK_SRC3 …
#define CLK_SRC4 …
#define CLK_SRC5 …
#define CLK_SRC6 …
#define CLK_SRC_MASK0 …
#define CLK_SRC_MASK1 …
#define CLK_DIV0 …
#define CLK_DIV1 …
#define CLK_DIV2 …
#define CLK_DIV3 …
#define CLK_DIV4 …
#define CLK_DIV5 …
#define CLK_DIV6 …
#define CLK_DIV7 …
#define CLK_GATE_MAIN0 …
#define CLK_GATE_MAIN1 …
#define CLK_GATE_MAIN2 …
#define CLK_GATE_PERI0 …
#define CLK_GATE_PERI1 …
#define CLK_GATE_SCLK0 …
#define CLK_GATE_SCLK1 …
#define CLK_GATE_IP0 …
#define CLK_GATE_IP1 …
#define CLK_GATE_IP2 …
#define CLK_GATE_IP3 …
#define CLK_GATE_IP4 …
#define CLK_GATE_BLOCK …
#define CLK_GATE_IP5 …
#define CLK_OUT …
#define MISC …
#define OM_STAT …
enum { … };
enum { … };
static void __iomem *reg_base;
static unsigned long s5pv210_clk_regs[] __initdata = …;
static const char *const fin_pll_p[] __initconst = …;
static const char *const mout_apll_p[] __initconst = …;
static const char *const mout_mpll_p[] __initconst = …;
static const char *const mout_epll_p[] __initconst = …;
static const char *const mout_vpllsrc_p[] __initconst = …;
static const char *const mout_vpll_p[] __initconst = …;
static const char *const mout_group1_p[] __initconst = …;
static const char *const mout_group2_p[] __initconst = …;
static const char *const mout_audio0_p[] __initconst = …;
static const char *const mout_audio1_p[] __initconst = …;
static const char *const mout_audio2_p[] __initconst = …;
static const char *const mout_spdif_p[] __initconst = …;
static const char *const mout_group3_p[] __initconst = …;
static const char *const mout_group4_p[] __initconst = …;
static const char *const mout_flash_p[] __initconst = …;
static const char *const mout_dac_p[] __initconst = …;
static const char *const mout_hdmi_p[] __initconst = …;
static const char *const mout_mixer_p[] __initconst = …;
static const char *const mout_vpll_6442_p[] __initconst = …;
static const char *const mout_mixer_6442_p[] __initconst = …;
static const char *const mout_d0sync_6442_p[] __initconst = …;
static const char *const mout_d1sync_6442_p[] __initconst = …;
static const char *const mout_group2_6442_p[] __initconst = …;
static const char *const mout_audio0_6442_p[] __initconst = …;
static const char *const mout_audio1_6442_p[] __initconst = …;
static const char *const mout_clksel_p[] __initconst = …;
static const char *const mout_clksel_6442_p[] __initconst = …;
static const char *const mout_clkout_p[] __initconst = …;
static const struct samsung_fixed_factor_clock ffactor_clks[] __initconst = …;
static const struct samsung_mux_clock early_mux_clks[] __initconst = …;
static const struct samsung_mux_clock mux_clks[] __initconst = …;
static const struct samsung_mux_clock s5pv210_mux_clks[] __initconst = …;
static const struct samsung_mux_clock s5p6442_mux_clks[] __initconst = …;
static const struct samsung_fixed_rate_clock s5pv210_frate_clks[] __initconst = …;
static const struct samsung_fixed_rate_clock s5p6442_frate_clks[] __initconst = …;
static const struct samsung_div_clock div_clks[] __initconst = …;
static const struct samsung_div_clock s5pv210_div_clks[] __initconst = …;
static const struct samsung_div_clock s5p6442_div_clks[] __initconst = …;
static const struct samsung_gate_clock gate_clks[] __initconst = …;
static const struct samsung_gate_clock s5pv210_gate_clks[] __initconst = …;
static const struct samsung_gate_clock s5p6442_gate_clks[] __initconst = …;
static const struct samsung_clock_alias s5pv210_aliases[] __initconst = …;
static const struct samsung_pll_clock s5pv210_pll_clks[] __initconst = …;
static const struct samsung_pll_clock s5p6442_pll_clks[] __initconst = …;
static void __init __s5pv210_clk_init(struct device_node *np,
unsigned long xxti_f,
unsigned long xusbxti_f,
bool is_s5p6442)
{ … }
static void __init s5pv210_clk_dt_init(struct device_node *np)
{ … }
CLK_OF_DECLARE(s5pv210_clk, "samsung,s5pv210-clock", s5pv210_clk_dt_init);
static void __init s5p6442_clk_dt_init(struct device_node *np)
{ … }
CLK_OF_DECLARE(s5p6442_clk, "samsung,s5p6442-clock", s5p6442_clk_dt_init);