summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/include/mach
diff options
context:
space:
mode:
authorAshwin Joshi <asjoshi@nvidia.com>2012-07-27 15:54:22 +0530
committerSimone Willett <swillett@nvidia.com>2012-08-08 14:03:51 -0700
commit39f69f846f7dec18b920a48eb8bd1de6d291dd6e (patch)
tree01c32a228b5df44952463e63e89a0821aca2a83a /arch/arm/mach-tegra/include/mach
parent42910ff9b782d27629c038c4d2f6e0024ee205f1 (diff)
ARM: tegra: e1853: Add board support for e1853
E1853 is T30 based Automotive platform. Changes done: 1. New board specific files added 2. Added new machine number for E1853 3. Added pinmux configuration for E1853 Bug 966833 Bug 1018258 Signed-off-by: Ashwin Joshi <asjoshi@nvidia.com> Change-Id: Ibf1093f59e10a0a5cfa42a177c21c0db01983196 Reviewed-on: http://git-master/r/118000 Tested-by: Ashwin Joshi <asjoshi@nvidia.com> Reviewed-by: Sandeep Trasi <strasi@nvidia.com> (cherry picked from commit ad9dd1b3242f23c0f46eaf92ab49f495c06f330f) Reviewed-on: http://git-master/r/119580 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/include/mach')
-rw-r--r--arch/arm/mach-tegra/include/mach/tegra_e1853_pdata.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/include/mach/tegra_e1853_pdata.h b/arch/arm/mach-tegra/include/mach/tegra_e1853_pdata.h
new file mode 100644
index 000000000000..633f04855e6e
--- /dev/null
+++ b/arch/arm/mach-tegra/include/mach/tegra_e1853_pdata.h
@@ -0,0 +1,55 @@
+/*
+ * arch/arm/mach-tegra/include/mach/tegra_e1853_pdata.h
+ *
+ * Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms and conditions of the GNU General Public License,
+ * version 2, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+#ifndef __MACH_TEGRA_E1853_PDATA_H
+#define __MACH_TEGRA_E1853_PDATA_H
+
+#define NUM_AUDIO_CONTROLLERS 4
+
+/* data format supported */
+enum i2s_data_format {
+ format_i2s = 0x1,
+ format_dsp = 0x2,
+ format_rjm = 0x4,
+ format_ljm = 0x8,
+ format_tdm = 0x10
+};
+
+struct codec_info_s {
+ /* Name of the Codec Dai on the system */
+ char *codec_dai_name;
+ /* Name of the I2S controller dai its connected to */
+ char *cpu_dai_name;
+ char *codec_name; /* Name of the Codec Driver */
+ char *name; /* Name of the Codec-Dai-Link */
+ char *pcm_driver; /* Name of the PCM driver */
+ enum i2s_data_format i2s_format;
+ int master; /* Codec is Master or Slave */
+ /* TDM format setttings */
+ int num_slots; /* Number of TDM slots */
+ int slot_width; /* Width of each slot */
+ int rx_mask; /* Number of Rx Enabled slots */
+ int tx_mask; /* Number of Tx Enabled slots */
+
+};
+
+struct tegra_e1853_platform_data {
+ struct codec_info_s codec_info[NUM_AUDIO_CONTROLLERS];
+};
+#endif