diff options
author | Bing Song <bing.song@nxp.com> | 2020-07-09 13:54:58 +0800 |
---|---|---|
committer | Bing Song <bing.song@nxp.com> | 2020-07-10 16:48:12 +0800 |
commit | 3e26378f5315cf77a49e86b7658442ac42f2bd1a (patch) | |
tree | 9f0dade9aa063b6db16db1f845dc79e4b8b13a0a /sound/soc/fsl/fsl_dsp_audiomix.h | |
parent | 3e415d0fadc13d42b2d6ec75701d2c16a1777723 (diff) |
MLK-24365-11 dsp: wait DSP idle before close it.
Wait DSP to idle before gate OCRAM_A clock as FW code locate on
OCRAM_A when LPA. Or DSP will hang.
Signed-off-by: Bing Song <bing.song@nxp.com>
Diffstat (limited to 'sound/soc/fsl/fsl_dsp_audiomix.h')
-rw-r--r-- | sound/soc/fsl/fsl_dsp_audiomix.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/soc/fsl/fsl_dsp_audiomix.h b/sound/soc/fsl/fsl_dsp_audiomix.h index 40fdf0d30dfa..2920442b8a4e 100644 --- a/sound/soc/fsl/fsl_dsp_audiomix.h +++ b/sound/soc/fsl/fsl_dsp_audiomix.h @@ -13,12 +13,14 @@ #define AudioDSP_REG2 0x108 #define AudioDSP_REG3 0x10c -#define AudioDSP_REG2_RUNSTALL BIT(5) +#define AudioDSP_REG2_RUNSTALL BIT(5) +#define AudioDSP_REG2_PWAITMODE BIT(1) struct imx_audiomix_dsp_data; void imx_audiomix_dsp_start(struct imx_audiomix_dsp_data *data); void imx_audiomix_dsp_stall(struct imx_audiomix_dsp_data *data); void imx_audiomix_dsp_pid_set(struct imx_audiomix_dsp_data *data, u32 val); bool imx_audiomix_dsp_reset(struct imx_audiomix_dsp_data *data); +bool imx_audiomix_dsp_pwaitmode(struct imx_audiomix_dsp_data *data); #endif |