summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/board-cardhu.h
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2011-07-26 14:08:31 -0600
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:46:59 -0800
commite562cd8d01fed4b0875dc5db87397b042ba097fe (patch)
treeecf5ca9147def7286eb99e5a18eb6491398746a8 /arch/arm/mach-tegra/board-cardhu.h
parent28f261d2850412ec8d833b7d8f7b2825a6d18be8 (diff)
ARM: Tegra: ALSA support for Cardhu
Define GPIO names, platform data, and platform devices for audio support on Cardhu. Configure/register the WM8903 IRQ gpio. Don't statically configure most audio-related clocks; the ASoC utils code sets this all up now. Signed-off-by: Stephen Warren <swarren@nvidia.com> Rebase-Id: R77ca15a61948eefd790d97cbfe1470d2687c5b73
Diffstat (limited to 'arch/arm/mach-tegra/board-cardhu.h')
-rw-r--r--arch/arm/mach-tegra/board-cardhu.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-cardhu.h b/arch/arm/mach-tegra/board-cardhu.h
index efd24825834f..12fbec51df0e 100644
--- a/arch/arm/mach-tegra/board-cardhu.h
+++ b/arch/arm/mach-tegra/board-cardhu.h
@@ -97,6 +97,15 @@
#define CAM_I2C_MUX_RST_EXP CAM_TCA6416_GPIO_BASE + 15
#define CAM_TCA6416_GPIO_END CAM_TCA6416_GPIO_BASE + 16
+/* WM8903 GPIOs */
+#define CARDHU_GPIO_WM8903(_x_) (CAM_TCA6416_GPIO_END + (_x_))
+#define CARDHU_GPIO_WM8903_END CARDHU_GPIO_WM8903(4)
+
+/* Audio-related GPIOs */
+#define TEGRA_GPIO_CDC_IRQ TEGRA_GPIO_PW3
+#define TEGRA_GPIO_SPKR_EN CARDHU_GPIO_WM8903(2)
+#define TEGRA_GPIO_HP_DET TEGRA_GPIO_PW2
+
/* CAMERA RELATED GPIOs on CARDHU */
#define OV5650_RESETN_GPIO TEGRA_GPIO_PBB0
#define CAM1_POWER_DWN_GPIO TEGRA_GPIO_PBB5