imx-common.h 740 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
  2. #ifndef __IMX_COMMON_H__
  3. #define __IMX_COMMON_H__
  4. #include <linux/clk.h>
  5. #define EXCEPT_MAX_HDR_SIZE 0x400
  6. #define IMX8_STACK_DUMP_SIZE 32
  7. void imx8_get_registers(struct snd_sof_dev *sdev,
  8. struct sof_ipc_dsp_oops_xtensa *xoops,
  9. struct sof_ipc_panic_info *panic_info,
  10. u32 *stack, size_t stack_words);
  11. void imx8_dump(struct snd_sof_dev *sdev, u32 flags);
  12. struct imx_clocks {
  13. struct clk_bulk_data *dsp_clks;
  14. int num_dsp_clks;
  15. };
  16. int imx8_parse_clocks(struct snd_sof_dev *sdev, struct imx_clocks *clks);
  17. int imx8_enable_clocks(struct snd_sof_dev *sdev, struct imx_clocks *clks);
  18. void imx8_disable_clocks(struct snd_sof_dev *sdev, struct imx_clocks *clks);
  19. #endif