summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_rpmsg.h
diff options
context:
space:
mode:
authorShengjiu Wang <shengjiu.wang@nxp.com>2021-08-27 14:00:38 +0800
committerMark Brown <broonie@kernel.org>2021-09-13 01:59:15 +0100
commitb7bbbf01362720a8066e3f6d880cae6d63fc92f6 (patch)
tree38201c67ac1ee1dc41cd96ac270a5e345a0e8597 /sound/soc/fsl/fsl_rpmsg.h
parent6e8cc4ddce82820b287343bfefee21113da0cdad (diff)
ASoC: fsl_rpmsg: add soc specific data structure
Each platform has different supported rates and formats, so add soc specific data for each platform. This soc specific data is attached with compatible string. Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> Reviewed-by: Fabio Estevam <festevam@gmail.com> Link: https://lore.kernel.org/r/1630044038-19036-1-git-send-email-shengjiu.wang@nxp.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/fsl/fsl_rpmsg.h')
-rw-r--r--sound/soc/fsl/fsl_rpmsg.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/sound/soc/fsl/fsl_rpmsg.h b/sound/soc/fsl/fsl_rpmsg.h
index 4f5b49eb18d8..b04086fbf828 100644
--- a/sound/soc/fsl/fsl_rpmsg.h
+++ b/sound/soc/fsl/fsl_rpmsg.h
@@ -7,6 +7,16 @@
#define __FSL_RPMSG_H
/*
+ * struct fsl_rpmsg_soc_data
+ * @rates: supported rates
+ * @formats: supported formats
+ */
+struct fsl_rpmsg_soc_data {
+ int rates;
+ u64 formats;
+};
+
+/*
* struct fsl_rpmsg - rpmsg private data
*
* @ipg: ipg clock for cpu dai (SAI)
@@ -15,6 +25,7 @@
* @pll8k: parent clock for multiple of 8kHz frequency
* @pll11k: parent clock for multiple of 11kHz frequency
* @card_pdev: Platform_device pointer to register a sound card
+ * @soc_data: soc specific data
* @mclk_streams: Active streams that are using baudclk
* @force_lpa: force enable low power audio routine if condition satisfy
* @enable_lpa: enable low power audio routine according to dts setting
@@ -27,6 +38,7 @@ struct fsl_rpmsg {
struct clk *pll8k;
struct clk *pll11k;
struct platform_device *card_pdev;
+ const struct fsl_rpmsg_soc_data *soc_data;
unsigned int mclk_streams;
int force_lpa;
int enable_lpa;