/*1* omap-mcbsp.h2*3* Copyright (C) 2008 Nokia Corporation4*5* Contact: Jarkko Nikula <[email protected]>6* Peter Ujfalusi <[email protected]>7*8* This program is free software; you can redistribute it and/or9* modify it under the terms of the GNU General Public License10* version 2 as published by the Free Software Foundation.11*12* This program is distributed in the hope that it will be useful, but13* WITHOUT ANY WARRANTY; without even the implied warranty of14* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU15* General Public License for more details.16*17* You should have received a copy of the GNU General Public License18* along with this program; if not, write to the Free Software19* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA20* 02110-1301 USA21*22*/2324#ifndef __OMAP_I2S_H__25#define __OMAP_I2S_H__2627/* Source clocks for McBSP sample rate generator */28enum omap_mcbsp_clksrg_clk {29OMAP_MCBSP_SYSCLK_CLKS_FCLK, /* Internal FCLK */30OMAP_MCBSP_SYSCLK_CLKS_EXT, /* External CLKS pin */31OMAP_MCBSP_SYSCLK_CLK, /* Internal ICLK */32OMAP_MCBSP_SYSCLK_CLKX_EXT, /* External CLKX pin */33OMAP_MCBSP_SYSCLK_CLKR_EXT, /* External CLKR pin */34OMAP_MCBSP_CLKR_SRC_CLKR, /* CLKR from CLKR pin */35OMAP_MCBSP_CLKR_SRC_CLKX, /* CLKR from CLKX pin */36OMAP_MCBSP_FSR_SRC_FSR, /* FSR from FSR pin */37OMAP_MCBSP_FSR_SRC_FSX, /* FSR from FSX pin */38};3940/* McBSP dividers */41enum omap_mcbsp_div {42OMAP_MCBSP_CLKGDV, /* Sample rate generator divider */43};4445#if defined(CONFIG_SOC_OMAP2420)46#define NUM_LINKS 247#endif48#if defined(CONFIG_ARCH_OMAP15XX) || defined(CONFIG_ARCH_OMAP16XX)49#undef NUM_LINKS50#define NUM_LINKS 351#endif52#if defined(CONFIG_ARCH_OMAP4)53#undef NUM_LINKS54#define NUM_LINKS 455#endif56#if defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_SOC_OMAP2430)57#undef NUM_LINKS58#define NUM_LINKS 559#endif6061int omap_mcbsp_st_add_controls(struct snd_soc_codec *codec, int mcbsp_id);6263#endif646566