Commit f0e5ea2c authored by Mark Brown's avatar Mark Brown

Add support for rpmsg sound card on i.MX93 platform

Merge series from Chancel Liu <chancel.liu@nxp.com>:

Support rpmsg sound card on i.MX93 platform.
parents 452f9672 60f38a59
...@@ -25,6 +25,7 @@ properties: ...@@ -25,6 +25,7 @@ properties:
- fsl,imx8mm-rpmsg-audio - fsl,imx8mm-rpmsg-audio
- fsl,imx8mp-rpmsg-audio - fsl,imx8mp-rpmsg-audio
- fsl,imx8ulp-rpmsg-audio - fsl,imx8ulp-rpmsg-audio
- fsl,imx93-rpmsg-audio
model: model:
$ref: /schemas/types.yaml#/definitions/string $ref: /schemas/types.yaml#/definitions/string
......
...@@ -170,12 +170,20 @@ static const struct fsl_rpmsg_soc_data imx8mp_data = { ...@@ -170,12 +170,20 @@ static const struct fsl_rpmsg_soc_data imx8mp_data = {
SNDRV_PCM_FMTBIT_S32_LE, SNDRV_PCM_FMTBIT_S32_LE,
}; };
static const struct fsl_rpmsg_soc_data imx93_data = {
.rates = SNDRV_PCM_RATE_16000 | SNDRV_PCM_RATE_32000 |
SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_96000,
.formats = SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE |
SNDRV_PCM_FMTBIT_S32_LE,
};
static const struct of_device_id fsl_rpmsg_ids[] = { static const struct of_device_id fsl_rpmsg_ids[] = {
{ .compatible = "fsl,imx7ulp-rpmsg-audio", .data = &imx7ulp_data}, { .compatible = "fsl,imx7ulp-rpmsg-audio", .data = &imx7ulp_data},
{ .compatible = "fsl,imx8mm-rpmsg-audio", .data = &imx8mm_data}, { .compatible = "fsl,imx8mm-rpmsg-audio", .data = &imx8mm_data},
{ .compatible = "fsl,imx8mn-rpmsg-audio", .data = &imx8mn_data}, { .compatible = "fsl,imx8mn-rpmsg-audio", .data = &imx8mn_data},
{ .compatible = "fsl,imx8mp-rpmsg-audio", .data = &imx8mp_data}, { .compatible = "fsl,imx8mp-rpmsg-audio", .data = &imx8mp_data},
{ .compatible = "fsl,imx8ulp-rpmsg-audio", .data = &imx7ulp_data}, { .compatible = "fsl,imx8ulp-rpmsg-audio", .data = &imx7ulp_data},
{ .compatible = "fsl,imx93-rpmsg-audio", .data = &imx93_data},
{ /* sentinel */ } { /* sentinel */ }
}; };
MODULE_DEVICE_TABLE(of, fsl_rpmsg_ids); MODULE_DEVICE_TABLE(of, fsl_rpmsg_ids);
......
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