All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Baluta <daniel.baluta@nxp.com>
To: broonie@kernel.org
Cc: l.stach@pengutronix.de, mihai.serban@gmail.com,
	alsa-devel@alsa-project.org, timur@kernel.org,
	shengjiu.wang@nxp.com, angus@akkea.ca, tiwai@suse.com,
	nicoleotsuka@gmail.com, linux-imx@nxp.com, kernel@pengutronix.de,
	festevam@gmail.com, linux-kernel@vger.kernel.org,
	devicetree@vger.kernel.org, robh@kernel.org,
	Daniel Baluta <daniel.baluta@nxp.com>
Subject: [PATCH v3 4/5] ASoC: fsl_sai: Add support for imx7ulp/imx8mq
Date: Tue,  6 Aug 2019 18:12:13 +0300	[thread overview]
Message-ID: <20190806151214.6783-5-daniel.baluta@nxp.com> (raw)
In-Reply-To: <20190806151214.6783-1-daniel.baluta@nxp.com>

SAI module on imx7ulp/imx8m features 2 new registers (VERID and PARAM)
at the beginning of register address space.

On imx7ulp FIFOs can held up to 16 x 32 bit samples.
On imx8mq FIFOs can held up to 128 x 32 bit samples.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
---
 sound/soc/fsl/fsl_sai.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c
index 291f414c41c6..857438146dae 100644
--- a/sound/soc/fsl/fsl_sai.c
+++ b/sound/soc/fsl/fsl_sai.c
@@ -1021,10 +1021,24 @@ static const struct fsl_sai_soc_data fsl_sai_imx6sx_data = {
 	.reg_offset = 0,
 };
 
+static const struct fsl_sai_soc_data fsl_sai_imx7ulp_data = {
+	.use_imx_pcm = true,
+	.fifo_depth = 16,
+	.reg_offset = 8,
+};
+
+static const struct fsl_sai_soc_data fsl_sai_imx8mq_data = {
+	.use_imx_pcm = true,
+	.fifo_depth = 128,
+	.reg_offset = 8,
+};
+
 static const struct of_device_id fsl_sai_ids[] = {
 	{ .compatible = "fsl,vf610-sai", .data = &fsl_sai_vf610_data },
 	{ .compatible = "fsl,imx6sx-sai", .data = &fsl_sai_imx6sx_data },
 	{ .compatible = "fsl,imx6ul-sai", .data = &fsl_sai_imx6sx_data },
+	{ .compatible = "fsl,imx7ulp-sai", .data = &fsl_sai_imx7ulp_data },
+	{ .compatible = "fsl,imx8mq-sai", .data = &fsl_sai_imx8mq_data },
 	{ /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, fsl_sai_ids);
-- 
2.17.1


  parent reply	other threads:[~2019-08-06 15:12 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-06 15:12 [PATCH v3 0/5] Add support for new SAI IP version Daniel Baluta
2019-08-06 15:12 ` [PATCH v3 1/5] ASoC: fsl_sai: Add registers definition for multiple datalines Daniel Baluta
2019-08-07  1:16   ` Nicolin Chen
2019-08-07 13:30   ` Applied "ASoC: fsl_sai: Add registers definition for multiple datalines" to the asoc tree Mark Brown
2019-08-07 13:30     ` Mark Brown
2019-08-06 15:12 ` [PATCH v3 2/5] ASoC: fsl_sai: Update Tx/Rx channel enable mask Daniel Baluta
2019-08-07  1:17   ` Nicolin Chen
2019-08-07 13:30   ` Applied "ASoC: fsl_sai: Update Tx/Rx channel enable mask" to the asoc tree Mark Brown
2019-08-07 13:30     ` Mark Brown
2019-08-06 15:12 ` [PATCH v3 3/5] ASoC: fsl_sai: Add support for SAI new version Daniel Baluta
2019-08-07  1:40   ` Nicolin Chen
2019-08-07 13:30   ` Applied "ASoC: fsl_sai: Add support for SAI new version" to the asoc tree Mark Brown
2019-08-07 13:30     ` Mark Brown
2019-08-06 15:12 ` Daniel Baluta [this message]
2019-08-07 13:30   ` Applied "ASoC: fsl_sai: Add support for imx7ulp/imx8mq" " Mark Brown
2019-08-07 13:30     ` Mark Brown
2019-08-06 15:12 ` [PATCH v3 5/5] ASoC: dt-bindings: Introduce compatible strings for 7ULP and 8MQ Daniel Baluta
2019-08-07  1:42   ` Nicolin Chen
2019-08-07 13:30   ` Applied "ASoC: dt-bindings: Introduce compatible strings for 7ULP and 8MQ" to the asoc tree Mark Brown
2019-08-07 13:30     ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190806151214.6783-5-daniel.baluta@nxp.com \
    --to=daniel.baluta@nxp.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=angus@akkea.ca \
    --cc=broonie@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=festevam@gmail.com \
    --cc=kernel@pengutronix.de \
    --cc=l.stach@pengutronix.de \
    --cc=linux-imx@nxp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mihai.serban@gmail.com \
    --cc=nicoleotsuka@gmail.com \
    --cc=robh@kernel.org \
    --cc=shengjiu.wang@nxp.com \
    --cc=timur@kernel.org \
    --cc=tiwai@suse.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.