diff options
author | Chao Jiang <chaoj@nvidia.com> | 2011-03-07 18:57:19 +0900 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2011-03-08 21:08:46 -0800 |
commit | 3fa84420399ccd272f47e58285f38ec60856614b (patch) | |
tree | a619656d4fbda73f4638eee00b9c64a39e647144 /arch | |
parent | ba46e4d1b1a9c29df06baaa1f30442be4c37f99e (diff) |
ARM: Tegra: Ventana: Add config data for wm8903
Set up gpio pins for WM8903. In these pins, GPIO_3 will be used to drive
the amplifier for internal speaker.
fixes bug 766757
Change-Id: I99c63c50cf184633c8c78987187bb823d3d813fd
Reviewed-on: http://git-master/r/21197
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-tegra/board-ventana.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-ventana.c b/arch/arm/mach-tegra/board-ventana.c index ec4e044bfe66..381dafd5667a 100644 --- a/arch/arm/mach-tegra/board-ventana.c +++ b/arch/arm/mach-tegra/board-ventana.c @@ -45,6 +45,8 @@ #include <linux/i2c/atmel_maxtouch.h> #endif +#include <sound/wm8903.h> + #include <mach/clk.h> #include <mach/iomap.h> #include <mach/irqs.h> @@ -330,9 +332,21 @@ static struct platform_device rndis_device = { }; #endif +static struct wm8903_platform_data wm8903_pdata = { + .gpio_base = WM8903_GPIO_BASE, + .gpio_cfg = { + WM8903_GPIO_NO_CONFIG, + WM8903_GPIO_NO_CONFIG, + 0, /* as output pin */ + WM8903_GPIO_NO_CONFIG, + WM8903_GPIO_NO_CONFIG, + }, +}; + static struct i2c_board_info __initdata ventana_i2c_bus1_board_info[] = { { I2C_BOARD_INFO("wm8903", 0x1a), + .platform_data = &wm8903_pdata, .irq = TEGRA_GPIO_TO_IRQ(TEGRA_GPIO_PX3), }, }; |