Commit e5883322 authored by Charles Keepax's avatar Charles Keepax Committed by Mark Brown

ASoC: wm_adsp: Add CCM_CORE_RESET to Halo start core

When starting the Halo core it is advised to also write the core reset
bit, this ensures the part starts up in the appropriate state.  Omitting
this doesn't cause issues on most parts but cs40l25 requires it and
it is advised on all Halo parts.
Signed-off-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20210626155941.12251-2-ckeepax@opensource.cirrus.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent dd6fb8ff
...@@ -282,6 +282,7 @@ ...@@ -282,6 +282,7 @@
/* /*
* HALO_CCM_CORE_CONTROL * HALO_CCM_CORE_CONTROL
*/ */
#define HALO_CORE_RESET 0x00000200
#define HALO_CORE_EN 0x00000001 #define HALO_CORE_EN 0x00000001
/* /*
...@@ -3333,7 +3334,8 @@ static int wm_halo_start_core(struct wm_adsp *dsp) ...@@ -3333,7 +3334,8 @@ static int wm_halo_start_core(struct wm_adsp *dsp)
{ {
return regmap_update_bits(dsp->regmap, return regmap_update_bits(dsp->regmap,
dsp->base + HALO_CCM_CORE_CONTROL, dsp->base + HALO_CCM_CORE_CONTROL,
HALO_CORE_EN, HALO_CORE_EN); HALO_CORE_RESET | HALO_CORE_EN,
HALO_CORE_RESET | HALO_CORE_EN);
} }
static void wm_halo_stop_core(struct wm_adsp *dsp) static void wm_halo_stop_core(struct wm_adsp *dsp)
......
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