mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-26 13:58:21 +07:00

This patch adds debug support for imx platforms. This is important in order to gather information about the state of the DSP in case of an oops and the reason for the oops. This is done by checking if a message with a panic code has been placed in the debug box, in the imx8_dsp_handle_request function from sof/imx. If positive, the function imx8_dump, added in common, will be called. The first step is to gather information about the registers, filename, line number and stack by calling the imx8_get_registers, added in common. Then the information will be printed to the console by calling the get_status function. Signed-off-by: Iulian Olaru <iulianolaru249@yahoo.com> Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com> Reviewed-by: Daniel Baluta <daniel.baluta@gmail.com> Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Link: https://lore.kernel.org/r/20200917105633.2579047-2-kai.vehmanen@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
62 lines
1.8 KiB
Plaintext
62 lines
1.8 KiB
Plaintext
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
|
|
|
|
config SND_SOC_SOF_IMX_TOPLEVEL
|
|
bool "SOF support for NXP i.MX audio DSPs"
|
|
depends on ARM64|| COMPILE_TEST
|
|
depends on SND_SOC_SOF_OF
|
|
help
|
|
This adds support for Sound Open Firmware for NXP i.MX platforms.
|
|
Say Y if you have such a device.
|
|
If unsure select "N".
|
|
|
|
if SND_SOC_SOF_IMX_TOPLEVEL
|
|
|
|
config SND_SOC_SOF_IMX_OF
|
|
def_tristate SND_SOC_SOF_OF
|
|
select SND_SOC_SOF_IMX8 if SND_SOC_SOF_IMX8_SUPPORT
|
|
select SND_SOC_SOF_IMX8M if SND_SOC_SOF_IMX8M_SUPPORT
|
|
help
|
|
This option is not user-selectable but automagically handled by
|
|
'select' statements at a higher level
|
|
|
|
config SND_SOC_SOF_IMX_COMMON
|
|
tristate
|
|
help
|
|
This option is not user-selectable but automagically handled by
|
|
'select' statements at a higher level.
|
|
|
|
config SND_SOC_SOF_IMX8_SUPPORT
|
|
bool "SOF support for i.MX8"
|
|
depends on IMX_SCU=y || IMX_SCU=SND_SOC_SOF_IMX_OF
|
|
depends on IMX_DSP=y || IMX_DSP=SND_SOC_SOF_IMX_OF
|
|
help
|
|
This adds support for Sound Open Firmware for NXP i.MX8 platforms
|
|
Say Y if you have such a device.
|
|
If unsure select "N".
|
|
|
|
config SND_SOC_SOF_IMX8
|
|
tristate
|
|
select SND_SOC_SOF_IMX_COMMON
|
|
select SND_SOC_SOF_XTENSA
|
|
help
|
|
This option is not user-selectable but automagically handled by
|
|
'select' statements at a higher level
|
|
|
|
config SND_SOC_SOF_IMX8M_SUPPORT
|
|
bool "SOF support for i.MX8M"
|
|
depends on IMX_DSP=y || IMX_DSP=SND_SOC_SOF_OF
|
|
help
|
|
This adds support for Sound Open Firmware for NXP i.MX8M platforms
|
|
Say Y if you have such a device.
|
|
If unsure select "N".
|
|
|
|
config SND_SOC_SOF_IMX8M
|
|
tristate
|
|
select SND_SOC_SOF_IMX_COMMON
|
|
select SND_SOC_SOF_XTENSA
|
|
help
|
|
This option is not user-selectable but automagically handled by
|
|
'select' statements at a higher level
|
|
|
|
endif ## SND_SOC_SOF_IMX_IMX_TOPLEVEL
|