fsl_utils.h 764 B

1234567891011121314151617181920212223242526272829
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Freescale ALSA SoC Machine driver utility
  4. *
  5. * Author: Timur Tabi <[email protected]>
  6. *
  7. * Copyright 2010 Freescale Semiconductor, Inc.
  8. */
  9. #ifndef _FSL_UTILS_H
  10. #define _FSL_UTILS_H
  11. #define DAI_NAME_SIZE 32
  12. struct snd_soc_dai_link;
  13. struct device_node;
  14. int fsl_asoc_get_dma_channel(struct device_node *ssi_np, const char *name,
  15. struct snd_soc_dai_link *dai,
  16. unsigned int *dma_channel_id,
  17. unsigned int *dma_id);
  18. void fsl_asoc_get_pll_clocks(struct device *dev, struct clk **pll8k_clk,
  19. struct clk **pll11k_clk);
  20. void fsl_asoc_reparent_pll_clocks(struct device *dev, struct clk *clk,
  21. struct clk *pll8k_clk,
  22. struct clk *pll11k_clk, u64 ratio);
  23. #endif /* _FSL_UTILS_H */