summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/fsl_dsp.h
diff options
context:
space:
mode:
authorDaniel Baluta <daniel.baluta@nxp.com>2019-09-04 14:09:28 +0300
committerZhang Peng <peng_zhang_8@nxp.com>2020-02-13 19:26:37 +0800
commitd9e26ed3a504763db970a9af2891d5ebda1d53f5 (patch)
tree7b4a0cc62391e257e7e0ac20285153ee2ca37d53 /sound/soc/fsl/fsl_dsp.h
parenta504bca19c74341d0f4576fc76c7ab65c6bc1038 (diff)
MLK-23255-3: ASoC: fsl_dsp: Add support i.MX8MP
1. Introduce new board type and compatible string in preparation for i.MX8MP board. 2. Add support configure and start DSP for i.MX8MP. 3. Add clocks for i.MX8MP, and do special process when suspend and resume because dsp haven't independent power. 4. Add special handle for i.MX8MP, because in imx8mp there is audiomix power domains, and only one power domain. Signed-off-by: Zhang Peng <peng_zhang_8@nxp.com> Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Diffstat (limited to 'sound/soc/fsl/fsl_dsp.h')
-rw-r--r--sound/soc/fsl/fsl_dsp.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/fsl/fsl_dsp.h b/sound/soc/fsl/fsl_dsp.h
index a66b083124ae..c731cd9a0e94 100644
--- a/sound/soc/fsl/fsl_dsp.h
+++ b/sound/soc/fsl/fsl_dsp.h
@@ -11,6 +11,7 @@
#include <linux/firmware/imx/ipc.h>
#include "fsl_dsp_proxy.h"
#include "fsl_dsp_platform.h"
+#include "fsl_dsp_audiomix.h"
#define FSL_DSP_COMP_NAME "fsl-dsp-component"
@@ -24,6 +25,7 @@ typedef void (*memset_func) (void *s, int c, size_t n);
enum {
DSP_IMX8QXP_TYPE = 0,
DSP_IMX8QM_TYPE,
+ DSP_IMX8MP_TYPE,
};
/* ...proxy client data */
@@ -71,6 +73,7 @@ struct fsl_dsp {
void __iomem *regs;
void __iomem *mu_base_virtaddr;
struct imx_sc_ipc *dsp_ipcHandle;
+ struct imx_audiomix_dsp_data *audiomix;
unsigned int dsp_mu_id;
int dsp_mu_init;
atomic_long_t refcnt;
@@ -110,6 +113,10 @@ struct fsl_dsp {
struct clk *asrc_mem_clk;
struct clk *asrc_ipg_clk;
struct clk *asrck_clk[4];
+ struct clk *dsp_ocrama_clk;
+ struct clk *dsp_root_clk;
+ struct clk *debug_clk;
+ struct clk *mu2_clk;
};
#define IRAM_OFFSET 0x10000