linux/drivers/clk/starfive/clk-starfive-jh7100-audio.c

// SPDX-License-Identifier: GPL-2.0
/*
 * StarFive JH7100 Audio Clock Driver
 *
 * Copyright (C) 2021 Emil Renner Berthing <[email protected]>
 */

#include <linux/bits.h>
#include <linux/clk-provider.h>
#include <linux/device.h>
#include <linux/kernel.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/platform_device.h>

#include <dt-bindings/clock/starfive-jh7100-audio.h>

#include "clk-starfive-jh71x0.h"

/* external clocks */
#define JH7100_AUDCLK_AUDIO_SRC
#define JH7100_AUDCLK_AUDIO_12288
#define JH7100_AUDCLK_DOM7AHB_BUS
#define JH7100_AUDCLK_I2SADC_BCLK_IOPAD
#define JH7100_AUDCLK_I2SADC_LRCLK_IOPAD
#define JH7100_AUDCLK_I2SDAC_BCLK_IOPAD
#define JH7100_AUDCLK_I2SDAC_LRCLK_IOPAD
#define JH7100_AUDCLK_VAD_INTMEM

static const struct jh71x0_clk_data jh7100_audclk_data[] =;

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

static int jh7100_audclk_probe(struct platform_device *pdev)
{}

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

static struct platform_driver jh7100_audclk_driver =;
module_platform_driver();

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