mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
![Shengjiu Wang](/assets/img/avatar_default.png)
i.MX8MQ/MN/MM/MP platforms typically have 2 AUDIO PLLs being configured to handle 8kHz and 11kHz series audio rates. Add common function in fsl_utils to handle these two PLL clock source, which are needed by CPU DAI drivers Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> Link: https://lore.kernel.org/r/1656667961-1799-2-git-send-email-shengjiu.wang@nxp.com Signed-off-by: Mark Brown <broonie@kernel.org>
29 lines
764 B
C
29 lines
764 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Freescale ALSA SoC Machine driver utility
|
|
*
|
|
* Author: Timur Tabi <timur@freescale.com>
|
|
*
|
|
* Copyright 2010 Freescale Semiconductor, Inc.
|
|
*/
|
|
|
|
#ifndef _FSL_UTILS_H
|
|
#define _FSL_UTILS_H
|
|
|
|
#define DAI_NAME_SIZE 32
|
|
|
|
struct snd_soc_dai_link;
|
|
struct device_node;
|
|
|
|
int fsl_asoc_get_dma_channel(struct device_node *ssi_np, const char *name,
|
|
struct snd_soc_dai_link *dai,
|
|
unsigned int *dma_channel_id,
|
|
unsigned int *dma_id);
|
|
|
|
void fsl_asoc_get_pll_clocks(struct device *dev, struct clk **pll8k_clk,
|
|
struct clk **pll11k_clk);
|
|
|
|
void fsl_asoc_reparent_pll_clocks(struct device *dev, struct clk *clk,
|
|
struct clk *pll8k_clk,
|
|
struct clk *pll11k_clk, u64 ratio);
|
|
#endif /* _FSL_UTILS_H */
|