aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-tegra/board-harmony.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/board-harmony.c b/arch/arm/mach-tegra/board-harmony.c
index ea908cd0d550..82c780345a9f 100644
--- a/arch/arm/mach-tegra/board-harmony.c
+++ b/arch/arm/mach-tegra/board-harmony.c
@@ -27,6 +27,8 @@
27#include <linux/i2c.h> 27#include <linux/i2c.h>
28#include <linux/i2c-tegra.h> 28#include <linux/i2c-tegra.h>
29 29
30#include <sound/wm8903.h>
31
30#include <asm/mach-types.h> 32#include <asm/mach-types.h>
31#include <asm/mach/arch.h> 33#include <asm/mach/arch.h>
32#include <asm/mach/time.h> 34#include <asm/mach/time.h>
@@ -96,6 +98,25 @@ static struct tegra_i2c_platform_data harmony_dvc_platform_data = {
96 .bus_clk_rate = 400000, 98 .bus_clk_rate = 400000,
97}; 99};
98 100
101static struct wm8903_platform_data harmony_wm8903_pdata = {
102 .irq_active_low = 0,
103 .micdet_cfg = 0,
104 .micdet_delay = 100,
105 .gpio_cfg = {
106 WM8903_GPIO_NO_CONFIG,
107 WM8903_GPIO_NO_CONFIG,
108 0,
109 WM8903_GPIO_NO_CONFIG,
110 WM8903_GPIO_NO_CONFIG,
111 },
112};
113
114static struct i2c_board_info __initdata wm8903_board_info = {
115 I2C_BOARD_INFO("wm8903", 0x1a),
116 .platform_data = &harmony_wm8903_pdata,
117 .irq = TEGRA_GPIO_TO_IRQ(TEGRA_GPIO_CDC_IRQ),
118};
119
99static void __init harmony_i2c_init(void) 120static void __init harmony_i2c_init(void)
100{ 121{
101 tegra_i2c_device1.dev.platform_data = &harmony_i2c1_platform_data; 122 tegra_i2c_device1.dev.platform_data = &harmony_i2c1_platform_data;
@@ -107,6 +128,8 @@ static void __init harmony_i2c_init(void)
107 platform_device_register(&tegra_i2c_device2); 128 platform_device_register(&tegra_i2c_device2);
108 platform_device_register(&tegra_i2c_device3); 129 platform_device_register(&tegra_i2c_device3);
109 platform_device_register(&tegra_i2c_device4); 130 platform_device_register(&tegra_i2c_device4);
131
132 i2c_register_board_info(0, &wm8903_board_info, 1);
110} 133}
111 134
112static struct platform_device *harmony_devices[] __initdata = { 135static struct platform_device *harmony_devices[] __initdata = {