linux/drivers/clk/starfive/clk-starfive-jh7110-stg.c

// SPDX-License-Identifier: GPL-2.0
/*
 * StarFive JH7110 System-Top-Group Clock Driver
 *
 * Copyright (C) 2022 Emil Renner Berthing <[email protected]>
 * Copyright (C) 2022 StarFive Technology Co., Ltd.
 */

#include <linux/clk-provider.h>
#include <linux/io.h>
#include <linux/platform_device.h>

#include <dt-bindings/clock/starfive,jh7110-crg.h>

#include "clk-starfive-jh7110.h"

/* external clocks */
#define JH7110_STGCLK_OSC
#define JH7110_STGCLK_HIFI4_CORE
#define JH7110_STGCLK_STG_AXIAHB
#define JH7110_STGCLK_USB_125M
#define JH7110_STGCLK_CPU_BUS
#define JH7110_STGCLK_HIFI4_AXI
#define JH7110_STGCLK_NOCSTG_BUS
#define JH7110_STGCLK_APB_BUS
#define JH7110_STGCLK_EXT_END

static const struct jh71x0_clk_data jh7110_stgclk_data[] =;

static struct clk_hw *jh7110_stgclk_get(struct of_phandle_args *clkspec, void *data)
{}

static int jh7110_stgcrg_probe(struct platform_device *pdev)
{}

static const struct of_device_id jh7110_stgcrg_match[] =;
MODULE_DEVICE_TABLE(of, jh7110_stgcrg_match);

static struct platform_driver jh7110_stgcrg_driver =;
module_platform_driver();

MODULE_AUTHOR();
MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();