diff options
Diffstat (limited to 'arch/arm/mach-tegra/include/mach/tegra_p1852_pdata.h')
-rw-r--r-- | arch/arm/mach-tegra/include/mach/tegra_p1852_pdata.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/tegra_p1852_pdata.h b/arch/arm/mach-tegra/include/mach/tegra_p1852_pdata.h new file mode 100644 index 00000000000..bfd61c46005 --- /dev/null +++ b/arch/arm/mach-tegra/include/mach/tegra_p1852_pdata.h | |||
@@ -0,0 +1,45 @@ | |||
1 | /* | ||
2 | * arch/arm/mach-tegra/include/mach/tegra_p1852_pdata.h | ||
3 | * | ||
4 | * Copyright 2012 NVIDIA, Inc. | ||
5 | * | ||
6 | * This software is licensed under the terms of the GNU General Public | ||
7 | * License version 2, as published by the Free Software Foundation, and | ||
8 | * may be copied, distributed, and modified under those terms. | ||
9 | * | ||
10 | * This program is distributed in the hope that it will be useful, | ||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
13 | * GNU General Public License for more details. | ||
14 | * | ||
15 | */ | ||
16 | |||
17 | #ifndef __MACH_TEGRA_P1852_PDATA_H | ||
18 | #define __MACH_TEGRA_P1852_PDATA_H | ||
19 | |||
20 | #define NUM_AUDIO_CONTROLLERS 4 | ||
21 | |||
22 | /* data format supported */ | ||
23 | enum i2s_data_format { | ||
24 | format_i2s = 0x1, | ||
25 | format_dsp = 0x2, | ||
26 | format_rjm = 0x4, | ||
27 | format_ljm = 0x8, | ||
28 | format_tdm = 0x10 | ||
29 | }; | ||
30 | |||
31 | struct codec_info_s { | ||
32 | /* Name of the Codec Dai on the system */ | ||
33 | char *codec_dai_name; | ||
34 | /* Name of the I2S controller dai its connected to */ | ||
35 | char *cpu_dai_name; | ||
36 | char *codec_name; /* Name of the Codec Driver */ | ||
37 | char *name; /* Name of the Codec-Dai-Link */ | ||
38 | enum i2s_data_format i2s_format; | ||
39 | int master; /* Codec is Master or Slave */ | ||
40 | }; | ||
41 | |||
42 | struct tegra_p1852_platform_data { | ||
43 | struct codec_info_s codec_info[NUM_AUDIO_CONTROLLERS]; | ||
44 | }; | ||
45 | #endif | ||