aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2011-03-16 12:38:41 -0400
committerTakashi Iwai <tiwai@suse.de>2011-03-16 12:38:41 -0400
commit27b92d4ff2be2359a21ff4acde5b63563ff720e2 (patch)
tree49691b22fe1318aa68d5ebdff74795f004f0cf8f /arch
parent5de0ee574be8f6922a6c33f2fbc7e9b130a2f626 (diff)
parente58a8947b0264ec1f43ce5deef563b72acf1284f (diff)
Merge branch 'topic/asoc' into for-linus
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-shmobile/board-ag5evm.c10
-rw-r--r--arch/arm/mach-shmobile/board-ap4evb.c13
-rw-r--r--arch/arm/mach-shmobile/board-mackerel.c13
-rw-r--r--arch/arm/mach-tegra/include/mach/harmony_audio.h22
-rw-r--r--arch/sh/boards/mach-ecovec24/setup.c6
-rw-r--r--arch/sh/boards/mach-se/7724/setup.c6
6 files changed, 38 insertions, 32 deletions
diff --git a/arch/arm/mach-shmobile/board-ag5evm.c b/arch/arm/mach-shmobile/board-ag5evm.c
index 4303a86e6e3..3e6f0aab460 100644
--- a/arch/arm/mach-shmobile/board-ag5evm.c
+++ b/arch/arm/mach-shmobile/board-ag5evm.c
@@ -119,13 +119,6 @@ static struct platform_device keysc_device = {
119}; 119};
120 120
121/* FSI A */ 121/* FSI A */
122static struct sh_fsi_platform_info fsi_info = {
123 .porta_flags = SH_FSI_OUT_SLAVE_MODE |
124 SH_FSI_IN_SLAVE_MODE |
125 SH_FSI_OFMT(I2S) |
126 SH_FSI_IFMT(I2S),
127};
128
129static struct resource fsi_resources[] = { 122static struct resource fsi_resources[] = {
130 [0] = { 123 [0] = {
131 .name = "FSI", 124 .name = "FSI",
@@ -144,9 +137,6 @@ static struct platform_device fsi_device = {
144 .id = -1, 137 .id = -1,
145 .num_resources = ARRAY_SIZE(fsi_resources), 138 .num_resources = ARRAY_SIZE(fsi_resources),
146 .resource = fsi_resources, 139 .resource = fsi_resources,
147 .dev = {
148 .platform_data = &fsi_info,
149 },
150}; 140};
151 141
152static struct resource sh_mmcif_resources[] = { 142static struct resource sh_mmcif_resources[] = {
diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c
index 81d6536552a..1a8118c929b 100644
--- a/arch/arm/mach-shmobile/board-ap4evb.c
+++ b/arch/arm/mach-shmobile/board-ap4evb.c
@@ -673,16 +673,12 @@ static int fsi_set_rate(struct device *dev, int is_porta, int rate, int enable)
673} 673}
674 674
675static struct sh_fsi_platform_info fsi_info = { 675static struct sh_fsi_platform_info fsi_info = {
676 .porta_flags = SH_FSI_BRS_INV | 676 .porta_flags = SH_FSI_BRS_INV,
677 SH_FSI_OUT_SLAVE_MODE |
678 SH_FSI_IN_SLAVE_MODE |
679 SH_FSI_OFMT(PCM) |
680 SH_FSI_IFMT(PCM),
681 677
682 .portb_flags = SH_FSI_BRS_INV | 678 .portb_flags = SH_FSI_BRS_INV |
683 SH_FSI_BRM_INV | 679 SH_FSI_BRM_INV |
684 SH_FSI_LRS_INV | 680 SH_FSI_LRS_INV |
685 SH_FSI_OFMT(SPDIF), 681 SH_FSI_FMT_SPDIF,
686 .set_rate = fsi_set_rate, 682 .set_rate = fsi_set_rate,
687}; 683};
688 684
@@ -783,6 +779,10 @@ static struct platform_device hdmi_device = {
783 }, 779 },
784}; 780};
785 781
782static struct platform_device fsi_hdmi_device = {
783 .name = "sh_fsi2_b_hdmi",
784};
785
786static long ap4evb_clk_optimize(unsigned long target, unsigned long *best_freq, 786static long ap4evb_clk_optimize(unsigned long target, unsigned long *best_freq,
787 unsigned long *parent_freq) 787 unsigned long *parent_freq)
788{ 788{
@@ -936,6 +936,7 @@ static struct platform_device *ap4evb_devices[] __initdata = {
936 &usb1_host_device, 936 &usb1_host_device,
937 &fsi_device, 937 &fsi_device,
938 &fsi_ak4643_device, 938 &fsi_ak4643_device,
939 &fsi_hdmi_device,
939 &sh_mmcif_device, 940 &sh_mmcif_device,
940 &lcdc1_device, 941 &lcdc1_device,
941 &lcdc_device, 942 &lcdc_device,
diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c
index 1657eac5dde..1a63c213e45 100644
--- a/arch/arm/mach-shmobile/board-mackerel.c
+++ b/arch/arm/mach-shmobile/board-mackerel.c
@@ -399,6 +399,10 @@ static struct platform_device hdmi_device = {
399 }, 399 },
400}; 400};
401 401
402static struct platform_device fsi_hdmi_device = {
403 .name = "sh_fsi2_b_hdmi",
404};
405
402static int __init hdmi_init_pm_clock(void) 406static int __init hdmi_init_pm_clock(void)
403{ 407{
404 struct clk *hdmi_ick = clk_get(&hdmi_device.dev, "ick"); 408 struct clk *hdmi_ick = clk_get(&hdmi_device.dev, "ick");
@@ -609,16 +613,12 @@ fsi_set_rate_end:
609} 613}
610 614
611static struct sh_fsi_platform_info fsi_info = { 615static struct sh_fsi_platform_info fsi_info = {
612 .porta_flags = SH_FSI_BRS_INV | 616 .porta_flags = SH_FSI_BRS_INV,
613 SH_FSI_OUT_SLAVE_MODE |
614 SH_FSI_IN_SLAVE_MODE |
615 SH_FSI_OFMT(PCM) |
616 SH_FSI_IFMT(PCM),
617 617
618 .portb_flags = SH_FSI_BRS_INV | 618 .portb_flags = SH_FSI_BRS_INV |
619 SH_FSI_BRM_INV | 619 SH_FSI_BRM_INV |
620 SH_FSI_LRS_INV | 620 SH_FSI_LRS_INV |
621 SH_FSI_OFMT(SPDIF), 621 SH_FSI_FMT_SPDIF,
622 622
623 .set_rate = fsi_set_rate, 623 .set_rate = fsi_set_rate,
624}; 624};
@@ -921,6 +921,7 @@ static struct platform_device *mackerel_devices[] __initdata = {
921 &leds_device, 921 &leds_device,
922 &fsi_device, 922 &fsi_device,
923 &fsi_ak4643_device, 923 &fsi_ak4643_device,
924 &fsi_hdmi_device,
924 &sdhi0_device, 925 &sdhi0_device,
925#if !defined(CONFIG_MMC_SH_MMCIF) 926#if !defined(CONFIG_MMC_SH_MMCIF)
926 &sdhi1_device, 927 &sdhi1_device,
diff --git a/arch/arm/mach-tegra/include/mach/harmony_audio.h b/arch/arm/mach-tegra/include/mach/harmony_audio.h
new file mode 100644
index 00000000000..af086500ab7
--- /dev/null
+++ b/arch/arm/mach-tegra/include/mach/harmony_audio.h
@@ -0,0 +1,22 @@
1/*
2 * arch/arm/mach-tegra/include/mach/harmony_audio.h
3 *
4 * Copyright 2011 NVIDIA, Inc.
5 *
6 * This software is licensed under the terms of the GNU General Public
7 * License version 2, as published by the Free Software Foundation, and
8 * may be copied, distributed, and modified under those terms.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 */
16
17struct harmony_audio_platform_data {
18 int gpio_spkr_en;
19 int gpio_hp_det;
20 int gpio_int_mic_en;
21 int gpio_ext_mic_en;
22};
diff --git a/arch/sh/boards/mach-ecovec24/setup.c b/arch/sh/boards/mach-ecovec24/setup.c
index 701667acfd8..7bdb572ddf9 100644
--- a/arch/sh/boards/mach-ecovec24/setup.c
+++ b/arch/sh/boards/mach-ecovec24/setup.c
@@ -723,11 +723,7 @@ static struct platform_device camera_devices[] = {
723 723
724/* FSI */ 724/* FSI */
725static struct sh_fsi_platform_info fsi_info = { 725static struct sh_fsi_platform_info fsi_info = {
726 .portb_flags = SH_FSI_BRS_INV | 726 .portb_flags = SH_FSI_BRS_INV,
727 SH_FSI_OUT_SLAVE_MODE |
728 SH_FSI_IN_SLAVE_MODE |
729 SH_FSI_OFMT(I2S) |
730 SH_FSI_IFMT(I2S),
731}; 727};
732 728
733static struct resource fsi_resources[] = { 729static struct resource fsi_resources[] = {
diff --git a/arch/sh/boards/mach-se/7724/setup.c b/arch/sh/boards/mach-se/7724/setup.c
index 527679394a2..c8bcf6a19b5 100644
--- a/arch/sh/boards/mach-se/7724/setup.c
+++ b/arch/sh/boards/mach-se/7724/setup.c
@@ -286,11 +286,7 @@ static struct platform_device ceu1_device = {
286/* FSI */ 286/* FSI */
287/* change J20, J21, J22 pin to 1-2 connection to use slave mode */ 287/* change J20, J21, J22 pin to 1-2 connection to use slave mode */
288static struct sh_fsi_platform_info fsi_info = { 288static struct sh_fsi_platform_info fsi_info = {
289 .porta_flags = SH_FSI_BRS_INV | 289 .porta_flags = SH_FSI_BRS_INV,
290 SH_FSI_OUT_SLAVE_MODE |
291 SH_FSI_IN_SLAVE_MODE |
292 SH_FSI_OFMT(PCM) |
293 SH_FSI_IFMT(PCM),
294}; 290};
295 291
296static struct resource fsi_resources[] = { 292static struct resource fsi_resources[] = {