Commit f831ebf2 authored by Paul Olaru's avatar Paul Olaru Committed by Mark Brown

ASoC: SOF: Add i.MX8QM device descriptor

Add SOF device and DT descriptors for i.MX8QM platform.
Signed-off-by: default avatarPaul Olaru <paul.olaru@nxp.com>
Signed-off-by: default avatarDaniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200210095817.13226-4-daniel.baluta@oss.nxp.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent acfa5202
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#include "ops.h" #include "ops.h"
extern struct snd_sof_dsp_ops sof_imx8_ops; extern struct snd_sof_dsp_ops sof_imx8_ops;
extern struct snd_sof_dsp_ops sof_imx8x_ops;
/* platform specific devices */ /* platform specific devices */
#if IS_ENABLED(CONFIG_SND_SOC_SOF_IMX8) #if IS_ENABLED(CONFIG_SND_SOC_SOF_IMX8)
...@@ -23,6 +24,14 @@ static struct sof_dev_desc sof_of_imx8qxp_desc = { ...@@ -23,6 +24,14 @@ static struct sof_dev_desc sof_of_imx8qxp_desc = {
.nocodec_tplg_filename = "sof-imx8-nocodec.tplg", .nocodec_tplg_filename = "sof-imx8-nocodec.tplg",
.ops = &sof_imx8x_ops, .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 #endif
static const struct dev_pm_ops sof_of_pm = { static const struct dev_pm_ops sof_of_pm = {
...@@ -103,6 +112,7 @@ static int sof_of_remove(struct platform_device *pdev) ...@@ -103,6 +112,7 @@ static int sof_of_remove(struct platform_device *pdev)
static const struct of_device_id sof_of_ids[] = { static const struct of_device_id sof_of_ids[] = {
#if IS_ENABLED(CONFIG_SND_SOC_SOF_IMX8) #if IS_ENABLED(CONFIG_SND_SOC_SOF_IMX8)
{ .compatible = "fsl,imx8qxp-dsp", .data = &sof_of_imx8qxp_desc}, { .compatible = "fsl,imx8qxp-dsp", .data = &sof_of_imx8qxp_desc},
{ .compatible = "fsl,imx8qm-dsp", .data = &sof_of_imx8qm_desc},
#endif #endif
{ } { }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment