ASoC: SOF: imx8m: Use reset controller API to control the DSP
authorDaniel Baluta <daniel.baluta@nxp.com>
Mon, 5 May 2025 11:42:51 +0000 (14:42 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 5 May 2025 23:48:15 +0000 (08:48 +0900)
commita71b261c19a455f7f8e560b4ddfac44d3150ae39
treefca34346b20e918440ccfeb5bb02faedc2a2c666
parent02ca7898185fcbfc5890f0a8e42664bcd95d94a1
ASoC: SOF: imx8m: Use reset controller API to control the DSP

DSP on i.MX8MP doesn't have a direct reset line so according to hardware
design team in order to handle assert/deassert/reset functionality we
need to use a combination of control bits from two modules. Audio block
control module for Run/Stall control of the DSP and DAP module in order
to do software reset.

In a first step, for i.MX8MP we are switching on using the reset
controller API to handle the DSP Run/Stall bits i.MX8MP. This comes with
the advantage of offering a better probe ordering and a more natural way
of abstracting the Audio block control bits.

Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
Tested-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Link: https://patch.msgid.link/20250505114251.57018-1-daniel.baluta@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/imx/imx8.c