18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Au1000/Au1500/Au1100 I2S controller driver for ASoC
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * (c) 2011 Manuel Lauss <manuel.lauss@googlemail.com>
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * Note: clock supplied to the I2S controller must be 256x samplerate.
88c2ecf20Sopenharmony_ci */
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#include <linux/init.h>
118c2ecf20Sopenharmony_ci#include <linux/module.h>
128c2ecf20Sopenharmony_ci#include <linux/slab.h>
138c2ecf20Sopenharmony_ci#include <linux/suspend.h>
148c2ecf20Sopenharmony_ci#include <sound/core.h>
158c2ecf20Sopenharmony_ci#include <sound/pcm.h>
168c2ecf20Sopenharmony_ci#include <sound/initval.h>
178c2ecf20Sopenharmony_ci#include <sound/soc.h>
188c2ecf20Sopenharmony_ci#include <asm/mach-au1x00/au1000.h>
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci#include "psc.h"
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ci#define I2S_RXTX	0x00
238c2ecf20Sopenharmony_ci#define I2S_CFG		0x04
248c2ecf20Sopenharmony_ci#define I2S_ENABLE	0x08
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ci#define CFG_XU		(1 << 25)	/* tx underflow */
278c2ecf20Sopenharmony_ci#define CFG_XO		(1 << 24)
288c2ecf20Sopenharmony_ci#define CFG_RU		(1 << 23)
298c2ecf20Sopenharmony_ci#define CFG_RO		(1 << 22)
308c2ecf20Sopenharmony_ci#define CFG_TR		(1 << 21)
318c2ecf20Sopenharmony_ci#define CFG_TE		(1 << 20)
328c2ecf20Sopenharmony_ci#define CFG_TF		(1 << 19)
338c2ecf20Sopenharmony_ci#define CFG_RR		(1 << 18)
348c2ecf20Sopenharmony_ci#define CFG_RF		(1 << 17)
358c2ecf20Sopenharmony_ci#define CFG_ICK		(1 << 12)	/* clock invert */
368c2ecf20Sopenharmony_ci#define CFG_PD		(1 << 11)	/* set to make I2SDIO INPUT */
378c2ecf20Sopenharmony_ci#define CFG_LB		(1 << 10)	/* loopback */
388c2ecf20Sopenharmony_ci#define CFG_IC		(1 << 9)	/* word select invert */
398c2ecf20Sopenharmony_ci#define CFG_FM_I2S	(0 << 7)	/* I2S format */
408c2ecf20Sopenharmony_ci#define CFG_FM_LJ	(1 << 7)	/* left-justified */
418c2ecf20Sopenharmony_ci#define CFG_FM_RJ	(2 << 7)	/* right-justified */
428c2ecf20Sopenharmony_ci#define CFG_FM_MASK	(3 << 7)
438c2ecf20Sopenharmony_ci#define CFG_TN		(1 << 6)	/* tx fifo en */
448c2ecf20Sopenharmony_ci#define CFG_RN		(1 << 5)	/* rx fifo en */
458c2ecf20Sopenharmony_ci#define CFG_SZ_8	(0x08)
468c2ecf20Sopenharmony_ci#define CFG_SZ_16	(0x10)
478c2ecf20Sopenharmony_ci#define CFG_SZ_18	(0x12)
488c2ecf20Sopenharmony_ci#define CFG_SZ_20	(0x14)
498c2ecf20Sopenharmony_ci#define CFG_SZ_24	(0x18)
508c2ecf20Sopenharmony_ci#define CFG_SZ_MASK	(0x1f)
518c2ecf20Sopenharmony_ci#define EN_D		(1 << 1)	/* DISable */
528c2ecf20Sopenharmony_ci#define EN_CE		(1 << 0)	/* clock enable */
538c2ecf20Sopenharmony_ci
548c2ecf20Sopenharmony_ci/* only limited by clock generator and board design */
558c2ecf20Sopenharmony_ci#define AU1XI2SC_RATES \
568c2ecf20Sopenharmony_ci	SNDRV_PCM_RATE_CONTINUOUS
578c2ecf20Sopenharmony_ci
588c2ecf20Sopenharmony_ci#define AU1XI2SC_FMTS \
598c2ecf20Sopenharmony_ci	(SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_U8 |		\
608c2ecf20Sopenharmony_ci	SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S16_BE |	\
618c2ecf20Sopenharmony_ci	SNDRV_PCM_FMTBIT_U16_LE | SNDRV_PCM_FMTBIT_U16_BE |	\
628c2ecf20Sopenharmony_ci	SNDRV_PCM_FMTBIT_S18_3LE | SNDRV_PCM_FMTBIT_U18_3LE |	\
638c2ecf20Sopenharmony_ci	SNDRV_PCM_FMTBIT_S18_3BE | SNDRV_PCM_FMTBIT_U18_3BE |	\
648c2ecf20Sopenharmony_ci	SNDRV_PCM_FMTBIT_S20_3LE | SNDRV_PCM_FMTBIT_U20_3LE |	\
658c2ecf20Sopenharmony_ci	SNDRV_PCM_FMTBIT_S20_3BE | SNDRV_PCM_FMTBIT_U20_3BE |	\
668c2ecf20Sopenharmony_ci	SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S24_BE |	\
678c2ecf20Sopenharmony_ci	SNDRV_PCM_FMTBIT_U24_LE | SNDRV_PCM_FMTBIT_U24_BE |	\
688c2ecf20Sopenharmony_ci	0)
698c2ecf20Sopenharmony_ci
708c2ecf20Sopenharmony_cistatic inline unsigned long RD(struct au1xpsc_audio_data *ctx, int reg)
718c2ecf20Sopenharmony_ci{
728c2ecf20Sopenharmony_ci	return __raw_readl(ctx->mmio + reg);
738c2ecf20Sopenharmony_ci}
748c2ecf20Sopenharmony_ci
758c2ecf20Sopenharmony_cistatic inline void WR(struct au1xpsc_audio_data *ctx, int reg, unsigned long v)
768c2ecf20Sopenharmony_ci{
778c2ecf20Sopenharmony_ci	__raw_writel(v, ctx->mmio + reg);
788c2ecf20Sopenharmony_ci	wmb();
798c2ecf20Sopenharmony_ci}
808c2ecf20Sopenharmony_ci
818c2ecf20Sopenharmony_cistatic int au1xi2s_set_fmt(struct snd_soc_dai *cpu_dai, unsigned int fmt)
828c2ecf20Sopenharmony_ci{
838c2ecf20Sopenharmony_ci	struct au1xpsc_audio_data *ctx = snd_soc_dai_get_drvdata(cpu_dai);
848c2ecf20Sopenharmony_ci	unsigned long c;
858c2ecf20Sopenharmony_ci	int ret;
868c2ecf20Sopenharmony_ci
878c2ecf20Sopenharmony_ci	ret = -EINVAL;
888c2ecf20Sopenharmony_ci	c = ctx->cfg;
898c2ecf20Sopenharmony_ci
908c2ecf20Sopenharmony_ci	c &= ~CFG_FM_MASK;
918c2ecf20Sopenharmony_ci	switch (fmt & SND_SOC_DAIFMT_FORMAT_MASK) {
928c2ecf20Sopenharmony_ci	case SND_SOC_DAIFMT_I2S:
938c2ecf20Sopenharmony_ci		c |= CFG_FM_I2S;
948c2ecf20Sopenharmony_ci		break;
958c2ecf20Sopenharmony_ci	case SND_SOC_DAIFMT_MSB:
968c2ecf20Sopenharmony_ci		c |= CFG_FM_RJ;
978c2ecf20Sopenharmony_ci		break;
988c2ecf20Sopenharmony_ci	case SND_SOC_DAIFMT_LSB:
998c2ecf20Sopenharmony_ci		c |= CFG_FM_LJ;
1008c2ecf20Sopenharmony_ci		break;
1018c2ecf20Sopenharmony_ci	default:
1028c2ecf20Sopenharmony_ci		goto out;
1038c2ecf20Sopenharmony_ci	}
1048c2ecf20Sopenharmony_ci
1058c2ecf20Sopenharmony_ci	c &= ~(CFG_IC | CFG_ICK);		/* IB-IF */
1068c2ecf20Sopenharmony_ci	switch (fmt & SND_SOC_DAIFMT_INV_MASK) {
1078c2ecf20Sopenharmony_ci	case SND_SOC_DAIFMT_NB_NF:
1088c2ecf20Sopenharmony_ci		c |= CFG_IC | CFG_ICK;
1098c2ecf20Sopenharmony_ci		break;
1108c2ecf20Sopenharmony_ci	case SND_SOC_DAIFMT_NB_IF:
1118c2ecf20Sopenharmony_ci		c |= CFG_IC;
1128c2ecf20Sopenharmony_ci		break;
1138c2ecf20Sopenharmony_ci	case SND_SOC_DAIFMT_IB_NF:
1148c2ecf20Sopenharmony_ci		c |= CFG_ICK;
1158c2ecf20Sopenharmony_ci		break;
1168c2ecf20Sopenharmony_ci	case SND_SOC_DAIFMT_IB_IF:
1178c2ecf20Sopenharmony_ci		break;
1188c2ecf20Sopenharmony_ci	default:
1198c2ecf20Sopenharmony_ci		goto out;
1208c2ecf20Sopenharmony_ci	}
1218c2ecf20Sopenharmony_ci
1228c2ecf20Sopenharmony_ci	/* I2S controller only supports master */
1238c2ecf20Sopenharmony_ci	switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) {
1248c2ecf20Sopenharmony_ci	case SND_SOC_DAIFMT_CBS_CFS:	/* CODEC slave */
1258c2ecf20Sopenharmony_ci		break;
1268c2ecf20Sopenharmony_ci	default:
1278c2ecf20Sopenharmony_ci		goto out;
1288c2ecf20Sopenharmony_ci	}
1298c2ecf20Sopenharmony_ci
1308c2ecf20Sopenharmony_ci	ret = 0;
1318c2ecf20Sopenharmony_ci	ctx->cfg = c;
1328c2ecf20Sopenharmony_ciout:
1338c2ecf20Sopenharmony_ci	return ret;
1348c2ecf20Sopenharmony_ci}
1358c2ecf20Sopenharmony_ci
1368c2ecf20Sopenharmony_cistatic int au1xi2s_trigger(struct snd_pcm_substream *substream,
1378c2ecf20Sopenharmony_ci			   int cmd, struct snd_soc_dai *dai)
1388c2ecf20Sopenharmony_ci{
1398c2ecf20Sopenharmony_ci	struct au1xpsc_audio_data *ctx = snd_soc_dai_get_drvdata(dai);
1408c2ecf20Sopenharmony_ci	int stype = SUBSTREAM_TYPE(substream);
1418c2ecf20Sopenharmony_ci
1428c2ecf20Sopenharmony_ci	switch (cmd) {
1438c2ecf20Sopenharmony_ci	case SNDRV_PCM_TRIGGER_START:
1448c2ecf20Sopenharmony_ci	case SNDRV_PCM_TRIGGER_RESUME:
1458c2ecf20Sopenharmony_ci		/* power up */
1468c2ecf20Sopenharmony_ci		WR(ctx, I2S_ENABLE, EN_D | EN_CE);
1478c2ecf20Sopenharmony_ci		WR(ctx, I2S_ENABLE, EN_CE);
1488c2ecf20Sopenharmony_ci		ctx->cfg |= (stype == PCM_TX) ? CFG_TN : CFG_RN;
1498c2ecf20Sopenharmony_ci		WR(ctx, I2S_CFG, ctx->cfg);
1508c2ecf20Sopenharmony_ci		break;
1518c2ecf20Sopenharmony_ci	case SNDRV_PCM_TRIGGER_STOP:
1528c2ecf20Sopenharmony_ci	case SNDRV_PCM_TRIGGER_SUSPEND:
1538c2ecf20Sopenharmony_ci		ctx->cfg &= ~((stype == PCM_TX) ? CFG_TN : CFG_RN);
1548c2ecf20Sopenharmony_ci		WR(ctx, I2S_CFG, ctx->cfg);
1558c2ecf20Sopenharmony_ci		WR(ctx, I2S_ENABLE, EN_D);		/* power off */
1568c2ecf20Sopenharmony_ci		break;
1578c2ecf20Sopenharmony_ci	default:
1588c2ecf20Sopenharmony_ci		return -EINVAL;
1598c2ecf20Sopenharmony_ci	}
1608c2ecf20Sopenharmony_ci
1618c2ecf20Sopenharmony_ci	return 0;
1628c2ecf20Sopenharmony_ci}
1638c2ecf20Sopenharmony_ci
1648c2ecf20Sopenharmony_cistatic unsigned long msbits_to_reg(int msbits)
1658c2ecf20Sopenharmony_ci{
1668c2ecf20Sopenharmony_ci	switch (msbits) {
1678c2ecf20Sopenharmony_ci	case 8:
1688c2ecf20Sopenharmony_ci		return CFG_SZ_8;
1698c2ecf20Sopenharmony_ci	case 16:
1708c2ecf20Sopenharmony_ci		return CFG_SZ_16;
1718c2ecf20Sopenharmony_ci	case 18:
1728c2ecf20Sopenharmony_ci		return CFG_SZ_18;
1738c2ecf20Sopenharmony_ci	case 20:
1748c2ecf20Sopenharmony_ci		return CFG_SZ_20;
1758c2ecf20Sopenharmony_ci	case 24:
1768c2ecf20Sopenharmony_ci		return CFG_SZ_24;
1778c2ecf20Sopenharmony_ci	}
1788c2ecf20Sopenharmony_ci	return 0;
1798c2ecf20Sopenharmony_ci}
1808c2ecf20Sopenharmony_ci
1818c2ecf20Sopenharmony_cistatic int au1xi2s_hw_params(struct snd_pcm_substream *substream,
1828c2ecf20Sopenharmony_ci			     struct snd_pcm_hw_params *params,
1838c2ecf20Sopenharmony_ci			     struct snd_soc_dai *dai)
1848c2ecf20Sopenharmony_ci{
1858c2ecf20Sopenharmony_ci	struct au1xpsc_audio_data *ctx = snd_soc_dai_get_drvdata(dai);
1868c2ecf20Sopenharmony_ci	unsigned long v;
1878c2ecf20Sopenharmony_ci
1888c2ecf20Sopenharmony_ci	v = msbits_to_reg(params->msbits);
1898c2ecf20Sopenharmony_ci	if (!v)
1908c2ecf20Sopenharmony_ci		return -EINVAL;
1918c2ecf20Sopenharmony_ci
1928c2ecf20Sopenharmony_ci	ctx->cfg &= ~CFG_SZ_MASK;
1938c2ecf20Sopenharmony_ci	ctx->cfg |= v;
1948c2ecf20Sopenharmony_ci	return 0;
1958c2ecf20Sopenharmony_ci}
1968c2ecf20Sopenharmony_ci
1978c2ecf20Sopenharmony_cistatic int au1xi2s_startup(struct snd_pcm_substream *substream,
1988c2ecf20Sopenharmony_ci			   struct snd_soc_dai *dai)
1998c2ecf20Sopenharmony_ci{
2008c2ecf20Sopenharmony_ci	struct au1xpsc_audio_data *ctx = snd_soc_dai_get_drvdata(dai);
2018c2ecf20Sopenharmony_ci	snd_soc_dai_set_dma_data(dai, substream, &ctx->dmaids[0]);
2028c2ecf20Sopenharmony_ci	return 0;
2038c2ecf20Sopenharmony_ci}
2048c2ecf20Sopenharmony_ci
2058c2ecf20Sopenharmony_cistatic const struct snd_soc_dai_ops au1xi2s_dai_ops = {
2068c2ecf20Sopenharmony_ci	.startup	= au1xi2s_startup,
2078c2ecf20Sopenharmony_ci	.trigger	= au1xi2s_trigger,
2088c2ecf20Sopenharmony_ci	.hw_params	= au1xi2s_hw_params,
2098c2ecf20Sopenharmony_ci	.set_fmt	= au1xi2s_set_fmt,
2108c2ecf20Sopenharmony_ci};
2118c2ecf20Sopenharmony_ci
2128c2ecf20Sopenharmony_cistatic struct snd_soc_dai_driver au1xi2s_dai_driver = {
2138c2ecf20Sopenharmony_ci	.symmetric_rates	= 1,
2148c2ecf20Sopenharmony_ci	.playback = {
2158c2ecf20Sopenharmony_ci		.rates		= AU1XI2SC_RATES,
2168c2ecf20Sopenharmony_ci		.formats	= AU1XI2SC_FMTS,
2178c2ecf20Sopenharmony_ci		.channels_min	= 2,
2188c2ecf20Sopenharmony_ci		.channels_max	= 2,
2198c2ecf20Sopenharmony_ci	},
2208c2ecf20Sopenharmony_ci	.capture = {
2218c2ecf20Sopenharmony_ci		.rates		= AU1XI2SC_RATES,
2228c2ecf20Sopenharmony_ci		.formats	= AU1XI2SC_FMTS,
2238c2ecf20Sopenharmony_ci		.channels_min	= 2,
2248c2ecf20Sopenharmony_ci		.channels_max	= 2,
2258c2ecf20Sopenharmony_ci	},
2268c2ecf20Sopenharmony_ci	.ops = &au1xi2s_dai_ops,
2278c2ecf20Sopenharmony_ci};
2288c2ecf20Sopenharmony_ci
2298c2ecf20Sopenharmony_cistatic const struct snd_soc_component_driver au1xi2s_component = {
2308c2ecf20Sopenharmony_ci	.name		= "au1xi2s",
2318c2ecf20Sopenharmony_ci};
2328c2ecf20Sopenharmony_ci
2338c2ecf20Sopenharmony_cistatic int au1xi2s_drvprobe(struct platform_device *pdev)
2348c2ecf20Sopenharmony_ci{
2358c2ecf20Sopenharmony_ci	struct resource *iores, *dmares;
2368c2ecf20Sopenharmony_ci	struct au1xpsc_audio_data *ctx;
2378c2ecf20Sopenharmony_ci
2388c2ecf20Sopenharmony_ci	ctx = devm_kzalloc(&pdev->dev, sizeof(*ctx), GFP_KERNEL);
2398c2ecf20Sopenharmony_ci	if (!ctx)
2408c2ecf20Sopenharmony_ci		return -ENOMEM;
2418c2ecf20Sopenharmony_ci
2428c2ecf20Sopenharmony_ci	iores = platform_get_resource(pdev, IORESOURCE_MEM, 0);
2438c2ecf20Sopenharmony_ci	if (!iores)
2448c2ecf20Sopenharmony_ci		return -ENODEV;
2458c2ecf20Sopenharmony_ci
2468c2ecf20Sopenharmony_ci	if (!devm_request_mem_region(&pdev->dev, iores->start,
2478c2ecf20Sopenharmony_ci				     resource_size(iores),
2488c2ecf20Sopenharmony_ci				     pdev->name))
2498c2ecf20Sopenharmony_ci		return -EBUSY;
2508c2ecf20Sopenharmony_ci
2518c2ecf20Sopenharmony_ci	ctx->mmio = devm_ioremap(&pdev->dev, iores->start,
2528c2ecf20Sopenharmony_ci					 resource_size(iores));
2538c2ecf20Sopenharmony_ci	if (!ctx->mmio)
2548c2ecf20Sopenharmony_ci		return -EBUSY;
2558c2ecf20Sopenharmony_ci
2568c2ecf20Sopenharmony_ci	dmares = platform_get_resource(pdev, IORESOURCE_DMA, 0);
2578c2ecf20Sopenharmony_ci	if (!dmares)
2588c2ecf20Sopenharmony_ci		return -EBUSY;
2598c2ecf20Sopenharmony_ci	ctx->dmaids[SNDRV_PCM_STREAM_PLAYBACK] = dmares->start;
2608c2ecf20Sopenharmony_ci
2618c2ecf20Sopenharmony_ci	dmares = platform_get_resource(pdev, IORESOURCE_DMA, 1);
2628c2ecf20Sopenharmony_ci	if (!dmares)
2638c2ecf20Sopenharmony_ci		return -EBUSY;
2648c2ecf20Sopenharmony_ci	ctx->dmaids[SNDRV_PCM_STREAM_CAPTURE] = dmares->start;
2658c2ecf20Sopenharmony_ci
2668c2ecf20Sopenharmony_ci	platform_set_drvdata(pdev, ctx);
2678c2ecf20Sopenharmony_ci
2688c2ecf20Sopenharmony_ci	return snd_soc_register_component(&pdev->dev, &au1xi2s_component,
2698c2ecf20Sopenharmony_ci					  &au1xi2s_dai_driver, 1);
2708c2ecf20Sopenharmony_ci}
2718c2ecf20Sopenharmony_ci
2728c2ecf20Sopenharmony_cistatic int au1xi2s_drvremove(struct platform_device *pdev)
2738c2ecf20Sopenharmony_ci{
2748c2ecf20Sopenharmony_ci	struct au1xpsc_audio_data *ctx = platform_get_drvdata(pdev);
2758c2ecf20Sopenharmony_ci
2768c2ecf20Sopenharmony_ci	snd_soc_unregister_component(&pdev->dev);
2778c2ecf20Sopenharmony_ci
2788c2ecf20Sopenharmony_ci	WR(ctx, I2S_ENABLE, EN_D);	/* clock off, disable */
2798c2ecf20Sopenharmony_ci
2808c2ecf20Sopenharmony_ci	return 0;
2818c2ecf20Sopenharmony_ci}
2828c2ecf20Sopenharmony_ci
2838c2ecf20Sopenharmony_ci#ifdef CONFIG_PM
2848c2ecf20Sopenharmony_cistatic int au1xi2s_drvsuspend(struct device *dev)
2858c2ecf20Sopenharmony_ci{
2868c2ecf20Sopenharmony_ci	struct au1xpsc_audio_data *ctx = dev_get_drvdata(dev);
2878c2ecf20Sopenharmony_ci
2888c2ecf20Sopenharmony_ci	WR(ctx, I2S_ENABLE, EN_D);	/* clock off, disable */
2898c2ecf20Sopenharmony_ci
2908c2ecf20Sopenharmony_ci	return 0;
2918c2ecf20Sopenharmony_ci}
2928c2ecf20Sopenharmony_ci
2938c2ecf20Sopenharmony_cistatic int au1xi2s_drvresume(struct device *dev)
2948c2ecf20Sopenharmony_ci{
2958c2ecf20Sopenharmony_ci	return 0;
2968c2ecf20Sopenharmony_ci}
2978c2ecf20Sopenharmony_ci
2988c2ecf20Sopenharmony_cistatic const struct dev_pm_ops au1xi2sc_pmops = {
2998c2ecf20Sopenharmony_ci	.suspend	= au1xi2s_drvsuspend,
3008c2ecf20Sopenharmony_ci	.resume		= au1xi2s_drvresume,
3018c2ecf20Sopenharmony_ci};
3028c2ecf20Sopenharmony_ci
3038c2ecf20Sopenharmony_ci#define AU1XI2SC_PMOPS (&au1xi2sc_pmops)
3048c2ecf20Sopenharmony_ci
3058c2ecf20Sopenharmony_ci#else
3068c2ecf20Sopenharmony_ci
3078c2ecf20Sopenharmony_ci#define AU1XI2SC_PMOPS NULL
3088c2ecf20Sopenharmony_ci
3098c2ecf20Sopenharmony_ci#endif
3108c2ecf20Sopenharmony_ci
3118c2ecf20Sopenharmony_cistatic struct platform_driver au1xi2s_driver = {
3128c2ecf20Sopenharmony_ci	.driver	= {
3138c2ecf20Sopenharmony_ci		.name	= "alchemy-i2sc",
3148c2ecf20Sopenharmony_ci		.pm	= AU1XI2SC_PMOPS,
3158c2ecf20Sopenharmony_ci	},
3168c2ecf20Sopenharmony_ci	.probe		= au1xi2s_drvprobe,
3178c2ecf20Sopenharmony_ci	.remove		= au1xi2s_drvremove,
3188c2ecf20Sopenharmony_ci};
3198c2ecf20Sopenharmony_ci
3208c2ecf20Sopenharmony_cimodule_platform_driver(au1xi2s_driver);
3218c2ecf20Sopenharmony_ci
3228c2ecf20Sopenharmony_ciMODULE_LICENSE("GPL");
3238c2ecf20Sopenharmony_ciMODULE_DESCRIPTION("Au1000/1500/1100 I2S ASoC driver");
3248c2ecf20Sopenharmony_ciMODULE_AUTHOR("Manuel Lauss");
325