Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Freescale ALSA SoC Machine driver utility
0004  *
0005  * Author: Timur Tabi <timur@freescale.com>
0006  *
0007  * Copyright 2010 Freescale Semiconductor, Inc.
0008  */
0009 
0010 #ifndef _FSL_UTILS_H
0011 #define _FSL_UTILS_H
0012 
0013 #define DAI_NAME_SIZE   32
0014 
0015 struct snd_soc_dai_link;
0016 struct device_node;
0017 
0018 int fsl_asoc_get_dma_channel(struct device_node *ssi_np, const char *name,
0019                  struct snd_soc_dai_link *dai,
0020                  unsigned int *dma_channel_id,
0021                  unsigned int *dma_id);
0022 
0023 void fsl_asoc_get_pll_clocks(struct device *dev, struct clk **pll8k_clk,
0024                  struct clk **pll11k_clk);
0025 
0026 void fsl_asoc_reparent_pll_clocks(struct device *dev, struct clk *clk,
0027                   struct clk *pll8k_clk,
0028                   struct clk *pll11k_clk, u64 ratio);
0029 #endif /* _FSL_UTILS_H */