summaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorJon Hunter <jonathanh@nvidia.com>2018-07-24 11:52:14 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-07-26 11:14:36 -0400
commit32c4669ca085cbfc344a7d8f16dc7efb41ca2ef4 (patch)
treece84b9ed89327bd3517a2bfe2a72565c8fcaf4d5 /include/linux/platform_data
parentbcb4af75b685315a9b974809171fe37502fc95d0 (diff)
ASoC: tegra-alt: Remove legacy unused platform data
The Tegra ASoC platform data is never used by any current audio machine driver and so get rid of the platform data and the associated code. Bug 200417361 Change-Id: I1ef8ce331b67c85aea95b4a143a6982a32fefe93 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1784822 Reviewed-by: Sameer Pujar <spujar@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Dara Ramesh <dramesh@nvidia.com> Reviewed-by: Bibek Basu <bbasu@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
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};