summaryrefslogtreecommitdiff
path: root/sound/soc/sof/sof-of-dev.c
diff options
context:
space:
mode:
authorPaul Olaru <paul.olaru@nxp.com>2020-01-14 18:22:30 +0200
committerDaniel Baluta <daniel.baluta@nxp.com>2020-02-10 17:01:57 +0200
commitb7ecbc714922188546f07187621a1b8504ece9e1 (patch)
tree78a86349be2d4e3abca3fff8b30a3b6cd8bcc39b /sound/soc/sof/sof-of-dev.c
parent7364defe42bd15d322b472576ae44bcb74a7f2c0 (diff)
LF-537-13: sound: soc: sof: imx: Add i.MX8QM device descriptor
Add SOF device and DT descriptors for i.MX8QM platform. Signed-off-by: Paul Olaru <paul.olaru@nxp.com>
Diffstat (limited to 'sound/soc/sof/sof-of-dev.c')
-rw-r--r--sound/soc/sof/sof-of-dev.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sound/soc/sof/sof-of-dev.c b/sound/soc/sof/sof-of-dev.c
index ecd3b7c1c42f..259ee751d0fc 100644
--- a/sound/soc/sof/sof-of-dev.c
+++ b/sound/soc/sof/sof-of-dev.c
@@ -13,6 +13,7 @@
#include "ops.h"
extern struct snd_sof_dsp_ops sof_imx8_ops;
+extern struct snd_sof_dsp_ops sof_imx8x_ops;
/* platform specific devices */
#if IS_ENABLED(CONFIG_SND_SOC_SOF_IMX8)
@@ -24,6 +25,14 @@ static struct sof_dev_desc sof_of_imx8qxp_desc = {
.nocodec_tplg_filename = "sof-imx8-nocodec.tplg",
.ops = &sof_imx8x_ops,
};
+
+static struct sof_dev_desc sof_of_imx8qm_desc = {
+ .default_fw_path = "imx/sof",
+ .default_tplg_path = "imx/sof-tplg",
+ .default_fw_filename = "sof-imx8.ri",
+ .nocodec_tplg_filename = "sof-imx8-nocodec.tplg",
+ .ops = &sof_imx8_ops,
+};
#endif
static const struct dev_pm_ops sof_of_pm = {
@@ -159,6 +168,7 @@ static int sof_of_remove(struct platform_device *pdev)
static const struct of_device_id sof_of_ids[] = {
#if IS_ENABLED(CONFIG_SND_SOC_SOF_IMX8)
{ .compatible = "fsl,imx8qxp-dsp", .data = &sof_of_imx8qxp_desc},
+ { .compatible = "fsl,imx8qm-dsp", .data = &sof_of_imx8qm_desc},
#endif
{ }
};