diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-03-16 12:38:41 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-03-16 12:38:41 -0400 |
commit | 27b92d4ff2be2359a21ff4acde5b63563ff720e2 (patch) | |
tree | 49691b22fe1318aa68d5ebdff74795f004f0cf8f /arch/arm | |
parent | 5de0ee574be8f6922a6c33f2fbc7e9b130a2f626 (diff) | |
parent | e58a8947b0264ec1f43ce5deef563b72acf1284f (diff) |
Merge branch 'topic/asoc' into for-linus
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-shmobile/board-ag5evm.c | 10 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/board-ap4evb.c | 13 | ||||
-rw-r--r-- | arch/arm/mach-shmobile/board-mackerel.c | 13 | ||||
-rw-r--r-- | arch/arm/mach-tegra/include/mach/harmony_audio.h | 22 |
4 files changed, 36 insertions, 22 deletions
diff --git a/arch/arm/mach-shmobile/board-ag5evm.c b/arch/arm/mach-shmobile/board-ag5evm.c index 4303a86e6e38..3e6f0aab460b 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 */ |
122 | static 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 | |||
129 | static struct resource fsi_resources[] = { | 122 | static 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 | ||
152 | static struct resource sh_mmcif_resources[] = { | 142 | static struct resource sh_mmcif_resources[] = { |
diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c index 81d6536552a9..1a8118c929be 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 | ||
675 | static struct sh_fsi_platform_info fsi_info = { | 675 | static 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 | ||
782 | static struct platform_device fsi_hdmi_device = { | ||
783 | .name = "sh_fsi2_b_hdmi", | ||
784 | }; | ||
785 | |||
786 | static long ap4evb_clk_optimize(unsigned long target, unsigned long *best_freq, | 786 | static 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 1657eac5dde2..1a63c213e45d 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 | ||
402 | static struct platform_device fsi_hdmi_device = { | ||
403 | .name = "sh_fsi2_b_hdmi", | ||
404 | }; | ||
405 | |||
402 | static int __init hdmi_init_pm_clock(void) | 406 | static 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 | ||
611 | static struct sh_fsi_platform_info fsi_info = { | 615 | static 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 000000000000..af086500ab7d --- /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 | |||
17 | struct 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 | }; | ||