Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
0002 
0003 #ifndef __IMX_COMMON_H__
0004 #define __IMX_COMMON_H__
0005 
0006 #include <linux/clk.h>
0007 
0008 #define EXCEPT_MAX_HDR_SIZE 0x400
0009 #define IMX8_STACK_DUMP_SIZE 32
0010 
0011 void imx8_get_registers(struct snd_sof_dev *sdev,
0012             struct sof_ipc_dsp_oops_xtensa *xoops,
0013             struct sof_ipc_panic_info *panic_info,
0014             u32 *stack, size_t stack_words);
0015 
0016 void imx8_dump(struct snd_sof_dev *sdev, u32 flags);
0017 
0018 struct imx_clocks {
0019     struct clk_bulk_data *dsp_clks;
0020     int num_dsp_clks;
0021 };
0022 
0023 int imx8_parse_clocks(struct snd_sof_dev *sdev, struct imx_clocks *clks);
0024 int imx8_enable_clocks(struct snd_sof_dev *sdev, struct imx_clocks *clks);
0025 void imx8_disable_clocks(struct snd_sof_dev *sdev, struct imx_clocks *clks);
0026 
0027 #endif