summaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorTimo Alho <talho@nvidia.com>2017-10-16 08:26:52 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-10-18 10:06:20 -0400
commit5e013b5b41b0548161cee62af291ca871f79c8b4 (patch)
tree4433f6894df5f77ecc77e715d7b978c10079fe15 /include/linux/platform_data
parentc3c30456f9022453a34896571956f9ec5874a8ca (diff)
sound: soc: move tegra_asoc_pdata.h to linux-nvidia
Header file tegra_asoc_pdata.h is only referred in linux-nvidia repository, hence move it away from core kernel repository. Change-Id: Id30a639efae44a977c0f5c94b0a4be2674a05b27 Signed-off-by: Timo Alho <talho@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1579720 GVS: Gerrit_Virtual_Submit Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r--include/linux/platform_data/tegra_asoc_pdata.h73
1 files changed, 73 insertions, 0 deletions
diff --git a/include/linux/platform_data/tegra_asoc_pdata.h b/include/linux/platform_data/tegra_asoc_pdata.h
new file mode 100644
index 000000000..17b3dcaf5
--- /dev/null
+++ b/include/linux/platform_data/tegra_asoc_pdata.h
@@ -0,0 +1,73 @@
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};