Jarkko Nikula | 2e74796 | 2008-04-25 13:55:19 +0200 | [diff] [blame] | 1 | /* |
| 2 | * omap-mcbsp.h |
| 3 | * |
| 4 | * Copyright (C) 2008 Nokia Corporation |
| 5 | * |
| 6 | * Contact: Jarkko Nikula <jarkko.nikula@nokia.com> |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or |
| 9 | * modify it under the terms of the GNU General Public License |
| 10 | * version 2 as published by the Free Software Foundation. |
| 11 | * |
| 12 | * This program is distributed in the hope that it will be useful, but |
| 13 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License |
| 18 | * along with this program; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA |
| 20 | * 02110-1301 USA |
| 21 | * |
| 22 | */ |
| 23 | |
| 24 | #ifndef __OMAP_I2S_H__ |
| 25 | #define __OMAP_I2S_H__ |
| 26 | |
| 27 | /* Source clocks for McBSP sample rate generator */ |
| 28 | enum omap_mcbsp_clksrg_clk { |
| 29 | OMAP_MCBSP_SYSCLK_CLKS_FCLK, /* Internal FCLK */ |
| 30 | OMAP_MCBSP_SYSCLK_CLKS_EXT, /* External CLKS pin */ |
| 31 | OMAP_MCBSP_SYSCLK_CLK, /* Internal ICLK */ |
| 32 | OMAP_MCBSP_SYSCLK_CLKX_EXT, /* External CLKX pin */ |
| 33 | OMAP_MCBSP_SYSCLK_CLKR_EXT, /* External CLKR pin */ |
| 34 | }; |
| 35 | |
| 36 | /* McBSP dividers */ |
| 37 | enum omap_mcbsp_div { |
| 38 | OMAP_MCBSP_CLKGDV, /* Sample rate generator divider */ |
| 39 | }; |
| 40 | |
Jarkko Nikula | 8def464 | 2008-10-09 15:57:22 +0300 | [diff] [blame] | 41 | #if defined(CONFIG_ARCH_OMAP2420) |
| 42 | #define NUM_LINKS 2 |
| 43 | #endif |
| 44 | #if defined(CONFIG_ARCH_OMAP15XX) || defined(CONFIG_ARCH_OMAP16XX) |
| 45 | #undef NUM_LINKS |
| 46 | #define NUM_LINKS 3 |
| 47 | #endif |
| 48 | #if defined(CONFIG_ARCH_OMAP2430) || defined(CONFIG_ARCH_OMAP34XX) |
| 49 | #undef NUM_LINKS |
| 50 | #define NUM_LINKS 5 |
| 51 | #endif |
Jarkko Nikula | 2e74796 | 2008-04-25 13:55:19 +0200 | [diff] [blame] | 52 | |
Liam Girdwood | 8687eb8 | 2008-07-07 16:08:07 +0100 | [diff] [blame] | 53 | extern struct snd_soc_dai omap_mcbsp_dai[NUM_LINKS]; |
Jarkko Nikula | 2e74796 | 2008-04-25 13:55:19 +0200 | [diff] [blame] | 54 | |
| 55 | #endif |