linux/drivers/clk/ingenic/jz4725b-cgu.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Ingenic JZ4725B SoC CGU driver
 *
 * Copyright (C) 2018 Paul Cercueil
 * Author: Paul Cercueil <[email protected]>
 */

#include <linux/clk-provider.h>
#include <linux/delay.h>
#include <linux/of.h>

#include <dt-bindings/clock/ingenic,jz4725b-cgu.h>

#include "cgu.h"
#include "pm.h"

/* CGU register offsets */
#define CGU_REG_CPCCR
#define CGU_REG_LCR
#define CGU_REG_CPPCR
#define CGU_REG_CLKGR
#define CGU_REG_OPCR
#define CGU_REG_I2SCDR
#define CGU_REG_LPCDR
#define CGU_REG_MSCCDR
#define CGU_REG_SSICDR
#define CGU_REG_CIMCDR

/* bits within the LCR register */
#define LCR_SLEEP

static struct ingenic_cgu *cgu;

static const s8 pll_od_encoding[4] =;

static const u8 jz4725b_cgu_cpccr_div_table[] =;

static const u8 jz4725b_cgu_pll_half_div_table[] =;

static const struct ingenic_cgu_clk_info jz4725b_cgu_clocks[] =;

static void __init jz4725b_cgu_init(struct device_node *np)
{}
CLK_OF_DECLARE_DRIVER(jz4725b_cgu, "ingenic,jz4725b-cgu", jz4725b_cgu_init);