Skip to content

ASoC: SOF: imx8m: Use reset controller API to control the DSP#5394

Merged
dbaluta merged 1 commit intothesofproject:topic/sof-devfrom
dbaluta:add_reset_api
May 5, 2025
Merged

ASoC: SOF: imx8m: Use reset controller API to control the DSP#5394
dbaluta merged 1 commit intothesofproject:topic/sof-devfrom
dbaluta:add_reset_api

Conversation

@dbaluta
Copy link
Collaborator

@dbaluta dbaluta commented Apr 28, 2025

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.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request updates the DSP reset flow on i.MX8MP by switching from direct regmap bit manipulations to using the reset controller API for better probe ordering and abstraction.

  • Added the reset controller header and associated API calls
  • Replaced regmap_update_bits with reset_control_assert and reset_control_deassert
  • Updated the probe function to acquire the reset control resource

Comment on lines 172 to 173
"failed to get dsp runstall reset controll\n");

Copy link

Copilot AI Apr 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in error message: 'controll' should be changed to 'control'.

Suggested change
"failed to get dsp runstall reset controll\n");
"failed to get dsp runstall reset control\n");

Copilot uses AI. Check for mistakes.
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.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Copy link

@LaurentiuM1234 LaurentiuM1234 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested-by: Laurentiu Mihalcea laurentiu.mihalcea@nxp.com

@dbaluta
Copy link
Collaborator Author

dbaluta commented May 3, 2025

SOFCI TEST

@dbaluta dbaluta merged commit 1c2af39 into thesofproject:topic/sof-dev May 5, 2025
9 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants