Skip to content

Commit c133ec1

Browse files
dbalutamathieupoirier
authored andcommitted
reset: imx8mp-audiomix: Add support for DSP run/stall
We can Run/Stall the DSP via audio block control bits found in audiomix. Implement this functionality using the reset controller and use assert for Stall and deassert for Run. Reviewed-by: Peng Fan <[email protected]> Reviewed-by: Frank Li <[email protected]> Signed-off-by: Daniel Baluta <[email protected]> Reviewed-by: Philipp Zabel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mathieu Poirier <[email protected]>
1 parent 9fba663 commit c133ec1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/reset/reset-imx8mp-audiomix.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
#define IMX8MP_AUDIOMIX_EARC_RESET_MASK BIT(1)
1818
#define IMX8MP_AUDIOMIX_EARC_PHY_RESET_MASK BIT(2)
1919

20+
#define IMX8MP_AUDIOMIX_DSP_RUNSTALL_OFFSET 0x108
21+
#define IMX8MP_AUDIOMIX_DSP_RUNSTALL_MASK BIT(5)
22+
2023
struct imx8mp_reset_map {
2124
unsigned int offset;
2225
unsigned int mask;
@@ -34,6 +37,11 @@ static const struct imx8mp_reset_map reset_map[] = {
3437
.mask = IMX8MP_AUDIOMIX_EARC_PHY_RESET_MASK,
3538
.active_low = true,
3639
},
40+
[IMX8MP_AUDIOMIX_DSP_RUNSTALL] = {
41+
.offset = IMX8MP_AUDIOMIX_DSP_RUNSTALL_OFFSET,
42+
.mask = IMX8MP_AUDIOMIX_DSP_RUNSTALL_MASK,
43+
.active_low = false,
44+
},
3745
};
3846

3947
struct imx8mp_audiomix_reset {

0 commit comments

Comments
 (0)