summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_dsp.c
diff options
context:
space:
mode:
authorDaniel Baluta <daniel.baluta@nxp.com>2018-12-14 19:15:07 +0200
committerDong Aisheng <aisheng.dong@nxp.com>2019-11-25 15:52:15 +0800
commitb35ac86e876b69efc85ebb97f7dca3a695762ef6 (patch)
treec314f22bb37242835193c2dd376c88ee6bae65bc /sound/soc/fsl/fsl_dsp.c
parentb9668d7af2016b052dd5ac7c8ccb64303935bb86 (diff)
MLK-20095-3: ASoC: fsl: Differentiate between QXP and QM
On QM the DSP is inside the VPU subsystem while in QXP it is inside the Audio DMA subsystem. For this reason there are "subtle" differences. Introduce new compatible string for QM to help us correctly configure the DSP depending on the board they run. dsp_mem_msg structure is shared with the DSP, so by introducing new member dsp_board_type we can let DSP know on which target it runs. Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com> Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Diffstat (limited to 'sound/soc/fsl/fsl_dsp.c')
-rw-r--r--sound/soc/fsl/fsl_dsp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/soc/fsl/fsl_dsp.c b/sound/soc/fsl/fsl_dsp.c
index fa238834385b..63c11db54f04 100644
--- a/sound/soc/fsl/fsl_dsp.c
+++ b/sound/soc/fsl/fsl_dsp.c
@@ -792,6 +792,11 @@ static int fsl_dsp_probe(struct platform_device *pdev)
if (!dsp_priv)
return -ENOMEM;
+ if (of_device_is_compatible(np, "fsl,imx8qxp-dsp"))
+ dsp_priv->dsp_board_type = DSP_IMX8QXP_TYPE;
+ else
+ dsp_priv->dsp_board_type = DSP_IMX8QM_TYPE;
+
dsp_priv->dev = &pdev->dev;
/* Get the addresses and IRQ */
@@ -1059,6 +1064,7 @@ static const struct dev_pm_ops fsl_dsp_pm = {
static const struct of_device_id fsl_dsp_ids[] = {
{ .compatible = "fsl,imx8qxp-dsp", },
+ { .compatible = "fsl,imx8qm-dsp", },
{}
};
MODULE_DEVICE_TABLE(of, fsl_dsp_ids);