#include <linux/bits.h>
#include <linux/firmware.h>
#include <linux/mfd/syscon.h>
#include <linux/of_platform.h>
#include <linux/of_address.h>
#include <linux/of_irq.h>
#include <linux/regmap.h>
#include <linux/module.h>
#include <sound/sof.h>
#include <sound/sof/xtensa.h>
#include <linux/firmware/imx/dsp.h>
#include "../ops.h"
#include "../sof-of-dev.h"
#include "imx-common.h"
#define MBOX_OFFSET …
#define MBOX_SIZE …
#define IMX8M_DAP_DEBUG …
#define IMX8M_DAP_DEBUG_SIZE …
#define IMX8M_DAP_PWRCTL …
#define IMX8M_PWRCTL_CORERESET …
#define AudioDSP_REG0 …
#define AudioDSP_REG1 …
#define AudioDSP_REG2 …
#define AudioDSP_REG3 …
#define AudioDSP_REG2_RUNSTALL …
struct imx8m_priv { … };
static int imx8m_get_mailbox_offset(struct snd_sof_dev *sdev)
{ … }
static int imx8m_get_window_offset(struct snd_sof_dev *sdev, u32 id)
{ … }
static void imx8m_dsp_handle_reply(struct imx_dsp_ipc *ipc)
{ … }
static void imx8m_dsp_handle_request(struct imx_dsp_ipc *ipc)
{ … }
static struct imx_dsp_ops imx8m_dsp_ops = …;
static int imx8m_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg)
{ … }
static int imx8m_run(struct snd_sof_dev *sdev)
{ … }
static int imx8m_reset(struct snd_sof_dev *sdev)
{ … }
static int imx8m_probe(struct snd_sof_dev *sdev)
{ … }
static void imx8m_remove(struct snd_sof_dev *sdev)
{ … }
static int imx8m_get_bar_index(struct snd_sof_dev *sdev, u32 type)
{ … }
static struct snd_soc_dai_driver imx8m_dai[] = …;
static int imx8m_dsp_set_power_state(struct snd_sof_dev *sdev,
const struct sof_dsp_power_state *target_state)
{ … }
static int imx8m_resume(struct snd_sof_dev *sdev)
{ … }
static void imx8m_suspend(struct snd_sof_dev *sdev)
{ … }
static int imx8m_dsp_runtime_resume(struct snd_sof_dev *sdev)
{ … }
static int imx8m_dsp_runtime_suspend(struct snd_sof_dev *sdev)
{ … }
static int imx8m_dsp_resume(struct snd_sof_dev *sdev)
{ … }
static int imx8m_dsp_suspend(struct snd_sof_dev *sdev, unsigned int target_state)
{ … }
static const struct snd_sof_dsp_ops sof_imx8m_ops = …;
static struct snd_sof_of_mach sof_imx8mp_machs[] = …;
static struct sof_dev_desc sof_of_imx8mp_desc = …;
static const struct of_device_id sof_of_imx8m_ids[] = …;
MODULE_DEVICE_TABLE(of, sof_of_imx8m_ids);
static struct platform_driver snd_sof_of_imx8m_driver = …;
module_platform_driver(…) …;
MODULE_LICENSE(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_IMPORT_NS(…);