18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * omap-mcbsp.h
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (C) 2008 Nokia Corporation
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * Contact: Jarkko Nikula <jarkko.nikula@bitmer.com>
88c2ecf20Sopenharmony_ci *          Peter Ujfalusi <peter.ujfalusi@ti.com>
98c2ecf20Sopenharmony_ci */
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#ifndef __OMAP_MCBSP_H__
128c2ecf20Sopenharmony_ci#define __OMAP_MCBSP_H__
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci#include <sound/dmaengine_pcm.h>
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci/* Source clocks for McBSP sample rate generator */
178c2ecf20Sopenharmony_cienum omap_mcbsp_clksrg_clk {
188c2ecf20Sopenharmony_ci	OMAP_MCBSP_SYSCLK_CLKS_FCLK,	/* Internal FCLK */
198c2ecf20Sopenharmony_ci	OMAP_MCBSP_SYSCLK_CLKS_EXT,	/* External CLKS pin */
208c2ecf20Sopenharmony_ci	OMAP_MCBSP_SYSCLK_CLK,		/* Internal ICLK */
218c2ecf20Sopenharmony_ci	OMAP_MCBSP_SYSCLK_CLKX_EXT,	/* External CLKX pin */
228c2ecf20Sopenharmony_ci	OMAP_MCBSP_SYSCLK_CLKR_EXT,	/* External CLKR pin */
238c2ecf20Sopenharmony_ci};
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci/* McBSP dividers */
268c2ecf20Sopenharmony_cienum omap_mcbsp_div {
278c2ecf20Sopenharmony_ci	OMAP_MCBSP_CLKGDV,		/* Sample rate generator divider */
288c2ecf20Sopenharmony_ci};
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ciint omap_mcbsp_st_add_controls(struct snd_soc_pcm_runtime *rtd, int port_id);
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci#endif /* __OMAP_MCBSP_H__ */
33