diff mbox series

[2/3] ASoC: fsl_micfil: Add support for i.MX93 platform

Message ID 20221028082750.991822-3-chancel.liu@nxp.com (mailing list archive)
State Accepted
Commit a10a52541f644a1fdf8876d474f31a54c4142ccc
Headers show
Series Add support for MICFIL on i.MX93 platform | expand

Commit Message

Chancel Liu Oct. 28, 2022, 8:27 a.m. UTC
Add compatible string and specific soc data to support MICFIL on i.MX93
platform.

Signed-off-by: Chancel Liu <chancel.liu@nxp.com>
---
 sound/soc/fsl/fsl_micfil.c | 9 +++++++++
 1 file changed, 9 insertions(+)

Comments

Shengjiu Wang Nov. 1, 2022, 5:44 a.m. UTC | #1
On Fri, Oct 28, 2022 at 4:28 PM Chancel Liu <chancel.liu@nxp.com> wrote:

> 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>

Best regards
wang shengjiu

> ---
>  sound/soc/fsl/fsl_micfil.c | 9 +++++++++
>  1 file changed, 9 insertions(+)
>
> diff --git a/sound/soc/fsl/fsl_micfil.c b/sound/soc/fsl/fsl_micfil.c
> index eeaa75fb9196..b8a9504441df 100644
> --- a/sound/soc/fsl/fsl_micfil.c
> +++ b/sound/soc/fsl/fsl_micfil.c
> @@ -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);
> --
> 2.25.1
>
>
diff mbox series

Patch

diff --git a/sound/soc/fsl/fsl_micfil.c b/sound/soc/fsl/fsl_micfil.c
index eeaa75fb9196..b8a9504441df 100644
--- a/sound/soc/fsl/fsl_micfil.c
+++ b/sound/soc/fsl/fsl_micfil.c
@@ -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);