summaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r--include/linux/platform_data/tegra_asoc_pdata.h73
1 files changed, 0 insertions, 73 deletions
diff --git a/include/linux/platform_data/tegra_asoc_pdata.h b/include/linux/platform_data/tegra_asoc_pdata.h
deleted file mode 100644
index 17b3dcaf5..000000000
--- a/include/linux/platform_data/tegra_asoc_pdata.h
+++ /dev/null
@@ -1,73 +0,0 @@
1/*
2 * Copyright (c) 2012-2013, NVIDIA CORPORATION. All rights reserved.
3 *
4 * This software is licensed under the terms of the GNU General Public
5 * License version 2, as published by the Free Software Foundation, and
6 * may be copied, distributed, and modified under those terms.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 */
14
15#define HIFI_CODEC 0
16#define BASEBAND 1
17#define BT_SCO 2
18#define VOICE_CODEC 3
19#define NUM_I2S_DEVICES 4
20
21#define TEGRA_DAIFMT_DSP_A 0
22#define TEGRA_DAIFMT_DSP_B 1
23#define TEGRA_DAIFMT_I2S 2
24#define TEGRA_DAIFMT_RIGHT_J 3
25#define TEGRA_DAIFMT_LEFT_J 4
26
27struct i2s_config {
28 int audio_port_id;
29 int is_i2s_master;
30 int i2s_mode;
31 int sample_size;
32 int rate;
33 int channels;
34 int bit_clk;
35};
36
37struct ahub_bbc1_config {
38 int port_id;
39 int sample_size;
40 int rate;
41 int channels;
42 int bit_clk;
43};
44
45enum tegra_speaker_edp_states {
46 TEGRA_SPK_EDP_NEG_1,
47 TEGRA_SPK_EDP_ZERO,
48 TEGRA_SPK_EDP_1,
49 TEGRA_SPK_EDP_NUM_STATES,
50};
51
52struct tegra_asoc_platform_data {
53 const char *codec_name;
54 const char *codec_dai_name;
55 int num_links;
56 int gpio_spkr_en;
57 int gpio_hp_det;
58 int gpio_hp_det_active_high;
59 int gpio_hp_mute;
60 int gpio_int_mic_en;
61 int gpio_ext_mic_en;
62 int gpio_ldo1_en;
63 int gpio_codec1;
64 int gpio_codec2;
65 int gpio_codec3;
66 bool micbias_gpio_absent;
67 bool use_codec_jd_irq;
68 unsigned int debounce_time_hp;
69 bool edp_support;
70 unsigned int edp_states[TEGRA_SPK_EDP_NUM_STATES];
71 struct i2s_config i2s_param[NUM_I2S_DEVICES];
72 struct ahub_bbc1_config *ahub_bbc1_param;
73};