linux/sound/soc/hisilicon/hi6210-i2s.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * linux/sound/soc/m8m/hi6210_i2s.c - I2S IP driver
 *
 * Copyright (C) 2015 Linaro, Ltd
 * Author: Andy Green <[email protected]>
 *
 * This driver only deals with S2 interface (BT)
 */

#include <linux/init.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/delay.h>
#include <linux/clk.h>
#include <linux/jiffies.h>
#include <linux/io.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/dmaengine_pcm.h>
#include <sound/initval.h>
#include <sound/soc.h>
#include <linux/interrupt.h>
#include <linux/reset.h>
#include <linux/of_address.h>
#include <linux/of_irq.h>
#include <linux/mfd/syscon.h>
#include <linux/reset-controller.h>

#include "hi6210-i2s.h"

struct hi6210_i2s {};

#define SC_PERIPH_CLKEN1
#define SC_PERIPH_CLKDIS1

#define SC_PERIPH_CLKEN3
#define SC_PERIPH_CLKDIS3

#define SC_PERIPH_CLKEN12
#define SC_PERIPH_CLKDIS12

#define SC_PERIPH_RSTEN1
#define SC_PERIPH_RSTDIS1
#define SC_PERIPH_RSTSTAT1

#define SC_PERIPH_RSTEN2
#define SC_PERIPH_RSTDIS2
#define SC_PERIPH_RSTSTAT2

#define SOC_PMCTRL_BBPPLLALIAS

enum {};

static inline void hi6210_write_reg(struct hi6210_i2s *i2s, int reg, u32 val)
{}

static inline u32 hi6210_read_reg(struct hi6210_i2s *i2s, int reg)
{}

static int hi6210_i2s_startup(struct snd_pcm_substream *substream,
			      struct snd_soc_dai *cpu_dai)
{}

static void hi6210_i2s_shutdown(struct snd_pcm_substream *substream,
				struct snd_soc_dai *cpu_dai)
{}

static void hi6210_i2s_txctrl(struct snd_soc_dai *cpu_dai, int on)
{}

static void hi6210_i2s_rxctrl(struct snd_soc_dai *cpu_dai, int on)
{}

static int hi6210_i2s_set_fmt(struct snd_soc_dai *cpu_dai, unsigned int fmt)
{}

static int hi6210_i2s_hw_params(struct snd_pcm_substream *substream,
			    struct snd_pcm_hw_params *params,
			    struct snd_soc_dai *cpu_dai)
{}

static int hi6210_i2s_trigger(struct snd_pcm_substream *substream, int cmd,
			  struct snd_soc_dai *cpu_dai)
{}

static int hi6210_i2s_dai_probe(struct snd_soc_dai *dai)
{}


static const struct snd_soc_dai_ops hi6210_i2s_dai_ops =;

static const struct snd_soc_dai_driver hi6210_i2s_dai_init =;

static const struct snd_soc_component_driver hi6210_i2s_i2s_comp =;

static int hi6210_i2s_probe(struct platform_device *pdev)
{}

static const struct of_device_id hi6210_i2s_dt_ids[] =;

MODULE_DEVICE_TABLE(of, hi6210_i2s_dt_ids);

static struct platform_driver hi6210_i2s_driver =;

module_platform_driver();

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