Skip to content

Commit a635d66

Browse files
TE-N-ShengjiuWangbroonie
authored andcommitted
ASoC: fsl_spdif: Add support for i.MX8ULP
On i.MX8ULP the spdif works with EDMA, so add compatible string and soc specific data for i.MX8ULP. Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> Link: https://lore.kernel.org/r/1631238562-27081-1-git-send-email-shengjiu.wang@nxp.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 815b55e commit a635d66

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

sound/soc/fsl/fsl_spdif.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,16 @@ static struct fsl_spdif_soc_data fsl_spdif_imx8mm = {
186186
.tx_formats = FSL_SPDIF_FORMATS_PLAYBACK,
187187
};
188188

189+
static struct fsl_spdif_soc_data fsl_spdif_imx8ulp = {
190+
.imx = true,
191+
.shared_root_clock = true,
192+
.raw_capture_mode = false,
193+
.interrupts = 1,
194+
.tx_burst = 2, /* Applied for EDMA */
195+
.rx_burst = 2, /* Applied for EDMA */
196+
.tx_formats = SNDRV_PCM_FMTBIT_S24_LE, /* Applied for EDMA */
197+
};
198+
189199
/* Check if clk is a root clock that does not share clock source with others */
190200
static inline bool fsl_spdif_can_set_clk_rate(struct fsl_spdif_priv *spdif, int clk)
191201
{
@@ -1560,6 +1570,7 @@ static const struct of_device_id fsl_spdif_dt_ids[] = {
15601570
{ .compatible = "fsl,imx6sx-spdif", .data = &fsl_spdif_imx6sx, },
15611571
{ .compatible = "fsl,imx8qm-spdif", .data = &fsl_spdif_imx8qm, },
15621572
{ .compatible = "fsl,imx8mm-spdif", .data = &fsl_spdif_imx8mm, },
1573+
{ .compatible = "fsl,imx8ulp-spdif", .data = &fsl_spdif_imx8ulp, },
15631574
{}
15641575
};
15651576
MODULE_DEVICE_TABLE(of, fsl_spdif_dt_ids);

0 commit comments

Comments
 (0)