diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-05-22 04:01:33 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-05-22 04:01:33 -0400 |
commit | 7ec298dfef00e2c8effe8658011e03d86911b0bf (patch) | |
tree | dd62232006547b861a2731fe49c26367d3e9422c /arch | |
parent | 02e5fbf622aabf68bdc02282a17a3aeed054237a (diff) | |
parent | de0853c000aa3b5c9983d066c137e5dc9c8355a0 (diff) |
Merge branch 'topic/asoc' into for-linus
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-tegra/Kconfig | 3 | ||||
-rw-r--r-- | arch/arm/mach-tegra/board-harmony.c | 7 | ||||
-rw-r--r-- | arch/arm/mach-tegra/include/mach/tegra_wm8903_pdata.h (renamed from arch/arm/mach-tegra/include/mach/harmony_audio.h) | 5 |
3 files changed, 10 insertions, 5 deletions
diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach-tegra/Kconfig index 3cdeffc97b44..5ec1846aa1d0 100644 --- a/arch/arm/mach-tegra/Kconfig +++ b/arch/arm/mach-tegra/Kconfig | |||
@@ -27,12 +27,14 @@ comment "Tegra board type" | |||
27 | 27 | ||
28 | config MACH_HARMONY | 28 | config MACH_HARMONY |
29 | bool "Harmony board" | 29 | bool "Harmony board" |
30 | select MACH_HAS_SND_SOC_TEGRA_WM8903 | ||
30 | help | 31 | help |
31 | Support for nVidia Harmony development platform | 32 | Support for nVidia Harmony development platform |
32 | 33 | ||
33 | config MACH_KAEN | 34 | config MACH_KAEN |
34 | bool "Kaen board" | 35 | bool "Kaen board" |
35 | select MACH_SEABOARD | 36 | select MACH_SEABOARD |
37 | select MACH_HAS_SND_SOC_TEGRA_WM8903 | ||
36 | help | 38 | help |
37 | Support for the Kaen version of Seaboard | 39 | Support for the Kaen version of Seaboard |
38 | 40 | ||
@@ -43,6 +45,7 @@ config MACH_PAZ00 | |||
43 | 45 | ||
44 | config MACH_SEABOARD | 46 | config MACH_SEABOARD |
45 | bool "Seaboard board" | 47 | bool "Seaboard board" |
48 | select MACH_HAS_SND_SOC_TEGRA_WM8903 | ||
46 | help | 49 | help |
47 | Support for nVidia Seaboard development platform. It will | 50 | Support for nVidia Seaboard development platform. It will |
48 | also be included for some of the derivative boards that | 51 | also be included for some of the derivative boards that |
diff --git a/arch/arm/mach-tegra/board-harmony.c b/arch/arm/mach-tegra/board-harmony.c index 75c918a86a31..30e18bc60647 100644 --- a/arch/arm/mach-tegra/board-harmony.c +++ b/arch/arm/mach-tegra/board-harmony.c | |||
@@ -34,7 +34,7 @@ | |||
34 | #include <asm/mach/time.h> | 34 | #include <asm/mach/time.h> |
35 | #include <asm/setup.h> | 35 | #include <asm/setup.h> |
36 | 36 | ||
37 | #include <mach/harmony_audio.h> | 37 | #include <mach/tegra_wm8903_pdata.h> |
38 | #include <mach/iomap.h> | 38 | #include <mach/iomap.h> |
39 | #include <mach/irqs.h> | 39 | #include <mach/irqs.h> |
40 | #include <mach/sdhci.h> | 40 | #include <mach/sdhci.h> |
@@ -67,15 +67,16 @@ static struct platform_device debug_uart = { | |||
67 | }, | 67 | }, |
68 | }; | 68 | }; |
69 | 69 | ||
70 | static struct harmony_audio_platform_data harmony_audio_pdata = { | 70 | static struct tegra_wm8903_platform_data harmony_audio_pdata = { |
71 | .gpio_spkr_en = TEGRA_GPIO_SPKR_EN, | 71 | .gpio_spkr_en = TEGRA_GPIO_SPKR_EN, |
72 | .gpio_hp_det = TEGRA_GPIO_HP_DET, | 72 | .gpio_hp_det = TEGRA_GPIO_HP_DET, |
73 | .gpio_hp_mute = -1, | ||
73 | .gpio_int_mic_en = TEGRA_GPIO_INT_MIC_EN, | 74 | .gpio_int_mic_en = TEGRA_GPIO_INT_MIC_EN, |
74 | .gpio_ext_mic_en = TEGRA_GPIO_EXT_MIC_EN, | 75 | .gpio_ext_mic_en = TEGRA_GPIO_EXT_MIC_EN, |
75 | }; | 76 | }; |
76 | 77 | ||
77 | static struct platform_device harmony_audio_device = { | 78 | static struct platform_device harmony_audio_device = { |
78 | .name = "tegra-snd-harmony", | 79 | .name = "tegra-snd-wm8903", |
79 | .id = 0, | 80 | .id = 0, |
80 | .dev = { | 81 | .dev = { |
81 | .platform_data = &harmony_audio_pdata, | 82 | .platform_data = &harmony_audio_pdata, |
diff --git a/arch/arm/mach-tegra/include/mach/harmony_audio.h b/arch/arm/mach-tegra/include/mach/tegra_wm8903_pdata.h index af086500ab7d..9d293344a7ff 100644 --- a/arch/arm/mach-tegra/include/mach/harmony_audio.h +++ b/arch/arm/mach-tegra/include/mach/tegra_wm8903_pdata.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * arch/arm/mach-tegra/include/mach/harmony_audio.h | 2 | * arch/arm/mach-tegra/include/mach/tegra_wm8903_pdata.h |
3 | * | 3 | * |
4 | * Copyright 2011 NVIDIA, Inc. | 4 | * Copyright 2011 NVIDIA, Inc. |
5 | * | 5 | * |
@@ -14,9 +14,10 @@ | |||
14 | * | 14 | * |
15 | */ | 15 | */ |
16 | 16 | ||
17 | struct harmony_audio_platform_data { | 17 | struct tegra_wm8903_platform_data { |
18 | int gpio_spkr_en; | 18 | int gpio_spkr_en; |
19 | int gpio_hp_det; | 19 | int gpio_hp_det; |
20 | int gpio_hp_mute; | ||
20 | int gpio_int_mic_en; | 21 | int gpio_int_mic_en; |
21 | int gpio_ext_mic_en; | 22 | int gpio_ext_mic_en; |
22 | }; | 23 | }; |