aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2013-01-13 16:55:33 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-01-13 16:55:33 -0500
commit2eebcef31a133b27a09c457f3a7ad509bf237822 (patch)
treea717becc4cbe8dae31bb29af90f3cbd5f635497e /arch
parentf89983ef61677afc828ed32b3c42ef5a71eb0686 (diff)
parentfd974e52dbbdb27910d40d8feea7000f26545683 (diff)
Merge branch 'topic/fsi' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-simple-card
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-shmobile/board-ap4evb.c11
-rw-r--r--arch/arm/mach-shmobile/board-mackerel.c11
-rw-r--r--arch/sh/boards/mach-ecovec24/setup.c12
-rw-r--r--arch/sh/boards/mach-se/7724/setup.c12
4 files changed, 11 insertions, 35 deletions
diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c
index 99ef190d0909..4c979039d97e 100644
--- a/arch/arm/mach-shmobile/board-ap4evb.c
+++ b/arch/arm/mach-shmobile/board-ap4evb.c
@@ -657,14 +657,8 @@ static struct platform_device lcdc_device = {
657/* FSI */ 657/* FSI */
658#define IRQ_FSI evt2irq(0x1840) 658#define IRQ_FSI evt2irq(0x1840)
659static struct sh_fsi_platform_info fsi_info = { 659static struct sh_fsi_platform_info fsi_info = {
660 .port_a = {
661 .flags = SH_FSI_BRS_INV,
662 },
663 .port_b = { 660 .port_b = {
664 .flags = SH_FSI_BRS_INV | 661 .flags = SH_FSI_CLK_CPG |
665 SH_FSI_BRM_INV |
666 SH_FSI_LRS_INV |
667 SH_FSI_CLK_CPG |
668 SH_FSI_FMT_SPDIF, 662 SH_FSI_FMT_SPDIF,
669 }, 663 },
670}; 664};
@@ -816,7 +810,8 @@ static struct platform_device lcdc1_device = {
816}; 810};
817 811
818static struct asoc_simple_dai_init_info fsi2_hdmi_init_info = { 812static struct asoc_simple_dai_init_info fsi2_hdmi_init_info = {
819 .cpu_daifmt = SND_SOC_DAIFMT_CBM_CFM, 813 .cpu_daifmt = SND_SOC_DAIFMT_CBM_CFM |
814 SND_SOC_DAIFMT_IB_NF,
820}; 815};
821 816
822static struct asoc_simple_card_info fsi2_hdmi_info = { 817static struct asoc_simple_card_info fsi2_hdmi_info = {
diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c
index 2fed62f66045..b5d210b4264c 100644
--- a/arch/arm/mach-shmobile/board-mackerel.c
+++ b/arch/arm/mach-shmobile/board-mackerel.c
@@ -503,7 +503,8 @@ static struct platform_device hdmi_lcdc_device = {
503}; 503};
504 504
505static struct asoc_simple_dai_init_info fsi2_hdmi_init_info = { 505static struct asoc_simple_dai_init_info fsi2_hdmi_init_info = {
506 .cpu_daifmt = SND_SOC_DAIFMT_CBM_CFM, 506 .cpu_daifmt = SND_SOC_DAIFMT_CBM_CFM |
507 SND_SOC_DAIFMT_IB_NF,
507}; 508};
508 509
509static struct asoc_simple_card_info fsi2_hdmi_info = { 510static struct asoc_simple_card_info fsi2_hdmi_info = {
@@ -858,16 +859,12 @@ static struct platform_device leds_device = {
858#define IRQ_FSI evt2irq(0x1840) 859#define IRQ_FSI evt2irq(0x1840)
859static struct sh_fsi_platform_info fsi_info = { 860static struct sh_fsi_platform_info fsi_info = {
860 .port_a = { 861 .port_a = {
861 .flags = SH_FSI_BRS_INV,
862 .tx_id = SHDMA_SLAVE_FSIA_TX, 862 .tx_id = SHDMA_SLAVE_FSIA_TX,
863 .rx_id = SHDMA_SLAVE_FSIA_RX, 863 .rx_id = SHDMA_SLAVE_FSIA_RX,
864 }, 864 },
865 .port_b = { 865 .port_b = {
866 .flags = SH_FSI_BRS_INV | 866 .flags = SH_FSI_CLK_CPG |
867 SH_FSI_BRM_INV | 867 SH_FSI_FMT_SPDIF,
868 SH_FSI_LRS_INV |
869 SH_FSI_CLK_CPG |
870 SH_FSI_FMT_SPDIF,
871 } 868 }
872}; 869};
873 870
diff --git a/arch/sh/boards/mach-ecovec24/setup.c b/arch/sh/boards/mach-ecovec24/setup.c
index 3fede4556c91..8ebe4c7a766b 100644
--- a/arch/sh/boards/mach-ecovec24/setup.c
+++ b/arch/sh/boards/mach-ecovec24/setup.c
@@ -877,12 +877,6 @@ static struct platform_device camera_devices[] = {
877}; 877};
878 878
879/* FSI */ 879/* FSI */
880static struct sh_fsi_platform_info fsi_info = {
881 .port_b = {
882 .flags = SH_FSI_BRS_INV,
883 },
884};
885
886static struct resource fsi_resources[] = { 880static struct resource fsi_resources[] = {
887 [0] = { 881 [0] = {
888 .name = "FSI", 882 .name = "FSI",
@@ -901,15 +895,13 @@ static struct platform_device fsi_device = {
901 .id = 0, 895 .id = 0,
902 .num_resources = ARRAY_SIZE(fsi_resources), 896 .num_resources = ARRAY_SIZE(fsi_resources),
903 .resource = fsi_resources, 897 .resource = fsi_resources,
904 .dev = {
905 .platform_data = &fsi_info,
906 },
907}; 898};
908 899
909static struct asoc_simple_dai_init_info fsi_da7210_init_info = { 900static struct asoc_simple_dai_init_info fsi_da7210_init_info = {
910 .fmt = SND_SOC_DAIFMT_I2S, 901 .fmt = SND_SOC_DAIFMT_I2S,
911 .codec_daifmt = SND_SOC_DAIFMT_CBM_CFM, 902 .codec_daifmt = SND_SOC_DAIFMT_CBM_CFM,
912 .cpu_daifmt = SND_SOC_DAIFMT_CBS_CFS, 903 .cpu_daifmt = SND_SOC_DAIFMT_CBS_CFS |
904 SND_SOC_DAIFMT_IB_NF,
913}; 905};
914 906
915static struct asoc_simple_card_info fsi_da7210_info = { 907static struct asoc_simple_card_info fsi_da7210_info = {
diff --git a/arch/sh/boards/mach-se/7724/setup.c b/arch/sh/boards/mach-se/7724/setup.c
index 35f6efa3ac0e..975608f5e805 100644
--- a/arch/sh/boards/mach-se/7724/setup.c
+++ b/arch/sh/boards/mach-se/7724/setup.c
@@ -279,12 +279,6 @@ static struct platform_device ceu1_device = {
279 279
280/* FSI */ 280/* FSI */
281/* change J20, J21, J22 pin to 1-2 connection to use slave mode */ 281/* change J20, J21, J22 pin to 1-2 connection to use slave mode */
282static struct sh_fsi_platform_info fsi_info = {
283 .port_a = {
284 .flags = SH_FSI_BRS_INV,
285 },
286};
287
288static struct resource fsi_resources[] = { 282static struct resource fsi_resources[] = {
289 [0] = { 283 [0] = {
290 .name = "FSI", 284 .name = "FSI",
@@ -303,15 +297,13 @@ static struct platform_device fsi_device = {
303 .id = 0, 297 .id = 0,
304 .num_resources = ARRAY_SIZE(fsi_resources), 298 .num_resources = ARRAY_SIZE(fsi_resources),
305 .resource = fsi_resources, 299 .resource = fsi_resources,
306 .dev = {
307 .platform_data = &fsi_info,
308 },
309}; 300};
310 301
311static struct asoc_simple_dai_init_info fsi2_ak4642_init_info = { 302static struct asoc_simple_dai_init_info fsi2_ak4642_init_info = {
312 .fmt = SND_SOC_DAIFMT_LEFT_J, 303 .fmt = SND_SOC_DAIFMT_LEFT_J,
313 .codec_daifmt = SND_SOC_DAIFMT_CBM_CFM, 304 .codec_daifmt = SND_SOC_DAIFMT_CBM_CFM,
314 .cpu_daifmt = SND_SOC_DAIFMT_CBS_CFS, 305 .cpu_daifmt = SND_SOC_DAIFMT_CBS_CFS |
306 SND_SOC_DAIFMT_IB_NF,
315 .sysclk = 11289600, 307 .sysclk = 11289600,
316}; 308};
317 309