ASoC: fsl_micfil: Add support for i.MX93 platform
authorChancel Liu <chancel.liu@nxp.com>
Fri, 28 Oct 2022 08:27:49 +0000 (16:27 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 1 Nov 2022 12:15:39 +0000 (12:15 +0000)
Add compatible string and specific soc data to support MICFIL on i.MX93
platform.

Signed-off-by: Chancel Liu <chancel.liu@nxp.com>
Acked-by: Shengjiu Wang <shengjiu.wang@gmail.com>
Link: https://lore.kernel.org/r/20221028082750.991822-3-chancel.liu@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_micfil.c

index eeaa75fb9196ac8a40e9ca9bca7c282161907c1c..b8a9504441dfb6d06f2682f25a0c6cb8300eb08c 100644 (file)
@@ -82,9 +82,18 @@ static struct fsl_micfil_soc_data fsl_micfil_imx8mp = {
        .formats = SNDRV_PCM_FMTBIT_S32_LE,
 };
 
+static struct fsl_micfil_soc_data fsl_micfil_imx93 = {
+       .imx = true,
+       .fifos = 8,
+       .fifo_depth = 32,
+       .dataline =  0xf,
+       .formats = SNDRV_PCM_FMTBIT_S32_LE,
+};
+
 static const struct of_device_id fsl_micfil_dt_ids[] = {
        { .compatible = "fsl,imx8mm-micfil", .data = &fsl_micfil_imx8mm },
        { .compatible = "fsl,imx8mp-micfil", .data = &fsl_micfil_imx8mp },
+       { .compatible = "fsl,imx93-micfil", .data = &fsl_micfil_imx93 },
        {}
 };
 MODULE_DEVICE_TABLE(of, fsl_micfil_dt_ids);