diff options
Diffstat (limited to 'sound/soc/sof/sof-of-dev.c')
-rw-r--r-- | sound/soc/sof/sof-of-dev.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sound/soc/sof/sof-of-dev.c b/sound/soc/sof/sof-of-dev.c index d1a21edfa05d..36736e951d90 100644 --- a/sound/soc/sof/sof-of-dev.c +++ b/sound/soc/sof/sof-of-dev.c @@ -15,6 +15,7 @@ extern struct snd_sof_dsp_ops sof_imx8_ops; extern struct snd_sof_dsp_ops sof_imx8x_ops; extern struct snd_sof_dsp_ops sof_imx8m_ops; +extern struct snd_sof_dsp_ops sof_jh7110_ops; /* platform specific devices */ #if IS_ENABLED(CONFIG_SND_SOC_SOF_IMX8) @@ -44,6 +45,15 @@ static struct sof_dev_desc sof_of_imx8mp_desc = { .ops = &sof_imx8m_ops, }; #endif +#if IS_ENABLED(CONFIG_SND_SOC_SOF_STARFIVE) +static struct sof_dev_desc sof_of_vf2_desc = { + .default_fw_path = "sof", + .default_tplg_path = "sof", + .default_fw_filename = "sof-vf2.ri", + .nocodec_tplg_filename = "sof-vf2-nocodec.tplg", + .ops = &sof_jh7110_ops, +}; +#endif static const struct dev_pm_ops sof_of_pm = { .prepare = snd_sof_prepare, @@ -119,6 +129,9 @@ static const struct of_device_id sof_of_ids[] = { #if IS_ENABLED(CONFIG_SND_SOC_SOF_IMX8M) { .compatible = "fsl,imx8mp-dsp", .data = &sof_of_imx8mp_desc}, #endif +#if IS_ENABLED(CONFIG_SND_SOC_SOF_STARFIVE) + { .compatible = "starfive,vf2-dsp-v1", .data = &sof_of_vf2_desc}, +#endif { } }; MODULE_DEVICE_TABLE(of, sof_of_ids); |