MLK-19565-1: ASoC: fsl_rpmsg_i2s: support rpmsg on imx8qm

On imx8qm mek, the cs42888 is connected with i2c in cm41 domain,
but wm8960 is connected with i2c1, which is not in m4 domain.
So we only need to eable rpmsg for cs42888.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
(cherry picked from commit 9d2368aef40e4d107e4deee1a2c7e191c1afe644)
(cherry picked from commit dd108f1dd8)
This commit is contained in:
Shengjiu Wang
2018-09-13 13:07:47 +08:00
committed by Leonard Crestez
parent e56bedf71a
commit bc828e6169
2 changed files with 9 additions and 0 deletions

View File

@ -8,6 +8,7 @@ Required properties:
- compatible : Compatible list, contains "fsl,imx7ulp-rpmsg-i2s".
"fsl,imx8mq-rpmsg-i2s", "fsl,imx8qxp-rpmsg-i2s"
"fsl,imx8qm-rpmsg-i2s"
- fsl,audioindex : This is an index indicating the audio device index in
the M4 side.

View File

@ -135,6 +135,7 @@ static const struct of_device_id fsl_rpmsg_i2s_ids[] = {
{ .compatible = "fsl,imx7ulp-rpmsg-i2s"},
{ .compatible = "fsl,imx8mq-rpmsg-i2s"},
{ .compatible = "fsl,imx8qxp-rpmsg-i2s"},
{ .compatible = "fsl,imx8qm-rpmsg-i2s"},
{ /* sentinel */ }
};
MODULE_DEVICE_TABLE(of, fsl_rpmsg_i2s_ids);
@ -221,6 +222,13 @@ static int fsl_rpmsg_i2s_probe(struct platform_device *pdev)
rpmsg_i2s->codec_cs42888 = 1 + (2 << 16);
}
if (of_device_is_compatible(pdev->dev.of_node,
"fsl,imx8qm-rpmsg-i2s")) {
rpmsg_i2s->codec_wm8960 = 0;
rpmsg_i2s->version = 1;
rpmsg_i2s->codec_cs42888 = 1 + (0 << 16);
}
if (of_device_is_compatible(pdev->dev.of_node,
"fsl,imx8mq-rpmsg-i2s")) {
rpmsg_i2s->codec_dummy = 0;