aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2013-02-11 06:06:35 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-02-11 06:06:35 -0500
commitd0c65252c4fdd306f2dbcf5c14181001bfdbe70e (patch)
tree8147240ba0160e9558fd014cccb329c0b6f369ea /arch
parent1b4327dced27fdddc38b938e393f8e9dc7bd8f66 (diff)
parente43fc6af2538a7a30e695227928eed8a29aa4f63 (diff)
Merge remote-tracking branch 'asoc/topic/fsi' into asoc-next
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 a0fa5791cd44..023b3f06b728 100644
--- a/arch/sh/boards/mach-ecovec24/setup.c
+++ b/arch/sh/boards/mach-ecovec24/setup.c
@@ -887,12 +887,6 @@ static struct platform_device camera_devices[] = {
887}; 887};
888 888
889/* FSI */ 889/* FSI */
890static struct sh_fsi_platform_info fsi_info = {
891 .port_b = {
892 .flags = SH_FSI_BRS_INV,
893 },
894};
895
896static struct resource fsi_resources[] = { 890static struct resource fsi_resources[] = {
897 [0] = { 891 [0] = {
898 .name = "FSI", 892 .name = "FSI",
@@ -911,15 +905,13 @@ static struct platform_device fsi_device = {
911 .id = 0, 905 .id = 0,
912 .num_resources = ARRAY_SIZE(fsi_resources), 906 .num_resources = ARRAY_SIZE(fsi_resources),
913 .resource = fsi_resources, 907 .resource = fsi_resources,
914 .dev = {
915 .platform_data = &fsi_info,
916 },
917}; 908};
918 909
919static struct asoc_simple_dai_init_info fsi_da7210_init_info = { 910static struct asoc_simple_dai_init_info fsi_da7210_init_info = {
920 .fmt = SND_SOC_DAIFMT_I2S, 911 .fmt = SND_SOC_DAIFMT_I2S,
921 .codec_daifmt = SND_SOC_DAIFMT_CBM_CFM, 912 .codec_daifmt = SND_SOC_DAIFMT_CBM_CFM,
922 .cpu_daifmt = SND_SOC_DAIFMT_CBS_CFS, 913 .cpu_daifmt = SND_SOC_DAIFMT_CBS_CFS |
914 SND_SOC_DAIFMT_IB_NF,
923}; 915};
924 916
925static struct asoc_simple_card_info fsi_da7210_info = { 917static 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