summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-tegra/board-harmony.h
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2011-03-04 22:44:29 -0700
committerOlof Johansson <olof@lixom.net>2011-03-07 15:34:25 -0800
commitef2b1a0f1eb299c2d00addfee3a2631395d9bdb5 (patch)
treed5c6a5a13cf4b69910909988e1d8bd5ba1fe6865 /arch/arm/mach-tegra/board-harmony.h
parent986afbe493b09846dffbe5c1bf9a428a839b6ca2 (diff)
downloadtalos-op-linux-ef2b1a0f1eb299c2d00addfee3a2631395d9bdb5.tar.gz
talos-op-linux-ef2b1a0f1eb299c2d00addfee3a2631395d9bdb5.zip
ARM: tegra: harmony: Beginnings of audio support
This change includes everything required to enable audio on Harmony, except those parts which rely on code not currently in Tegra's for-next branch, i.e. except those parts which rely on merges of the Tegra I2C driver or latest ASoC subsystem. * Define GPIO names for audio-related GPIOs * Set up platform data and platform device for ASoC machine driver * Register audio-related platform devices * Initialize audio-related clocks * Correctly configure pinmux and GPIO enables for audio-related pins Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-tegra/board-harmony.h')
-rw-r--r--arch/arm/mach-tegra/board-harmony.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-harmony.h b/arch/arm/mach-tegra/board-harmony.h
index 4fe33b8daa9d..9243521a1d19 100644
--- a/arch/arm/mach-tegra/board-harmony.h
+++ b/arch/arm/mach-tegra/board-harmony.h
@@ -17,12 +17,19 @@
#ifndef _MACH_TEGRA_BOARD_HARMONY_H
#define _MACH_TEGRA_BOARD_HARMONY_H
+#define HARMONY_GPIO_WM8903(_x_) (TEGRA_NR_GPIOS + (_x_))
+
#define TEGRA_GPIO_SD2_CD TEGRA_GPIO_PI5
#define TEGRA_GPIO_SD2_WP TEGRA_GPIO_PH1
#define TEGRA_GPIO_SD2_POWER TEGRA_GPIO_PT3
#define TEGRA_GPIO_SD4_CD TEGRA_GPIO_PH2
#define TEGRA_GPIO_SD4_WP TEGRA_GPIO_PH3
#define TEGRA_GPIO_SD4_POWER TEGRA_GPIO_PI6
+#define TEGRA_GPIO_CDC_IRQ TEGRA_GPIO_PX3
+#define TEGRA_GPIO_SPKR_EN HARMONY_GPIO_WM8903(2)
+#define TEGRA_GPIO_HP_DET TEGRA_GPIO_PW2
+#define TEGRA_GPIO_INT_MIC_EN TEGRA_GPIO_PX0
+#define TEGRA_GPIO_EXT_MIC_EN TEGRA_GPIO_PX1
void harmony_pinmux_init(void);
OpenPOWER on IntegriCloud