diff options
Diffstat (limited to 'arch')
-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/sh/boards/mach-ecovec24/setup.c | 6 | ||||
-rw-r--r-- | arch/sh/boards/mach-se/7724/setup.c | 6 |
5 files changed, 16 insertions, 32 deletions
diff --git a/arch/arm/mach-shmobile/board-ag5evm.c b/arch/arm/mach-shmobile/board-ag5evm.c index c18a740a415..343362d0207 100644 --- a/arch/arm/mach-shmobile/board-ag5evm.c +++ b/arch/arm/mach-shmobile/board-ag5evm.c | |||
@@ -118,13 +118,6 @@ static struct platform_device keysc_device = { | |||
118 | }; | 118 | }; |
119 | 119 | ||
120 | /* FSI A */ | 120 | /* FSI A */ |
121 | static struct sh_fsi_platform_info fsi_info = { | ||
122 | .porta_flags = SH_FSI_OUT_SLAVE_MODE | | ||
123 | SH_FSI_IN_SLAVE_MODE | | ||
124 | SH_FSI_OFMT(I2S) | | ||
125 | SH_FSI_IFMT(I2S), | ||
126 | }; | ||
127 | |||
128 | static struct resource fsi_resources[] = { | 121 | static struct resource fsi_resources[] = { |
129 | [0] = { | 122 | [0] = { |
130 | .name = "FSI", | 123 | .name = "FSI", |
@@ -143,9 +136,6 @@ static struct platform_device fsi_device = { | |||
143 | .id = -1, | 136 | .id = -1, |
144 | .num_resources = ARRAY_SIZE(fsi_resources), | 137 | .num_resources = ARRAY_SIZE(fsi_resources), |
145 | .resource = fsi_resources, | 138 | .resource = fsi_resources, |
146 | .dev = { | ||
147 | .platform_data = &fsi_info, | ||
148 | }, | ||
149 | }; | 139 | }; |
150 | 140 | ||
151 | static struct resource sh_mmcif_resources[] = { | 141 | 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 3cf0951caa2..17f528a76a1 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 7b15d21f0f6..73b8c90b507 100644 --- a/arch/arm/mach-shmobile/board-mackerel.c +++ b/arch/arm/mach-shmobile/board-mackerel.c | |||
@@ -400,6 +400,10 @@ static struct platform_device hdmi_device = { | |||
400 | }, | 400 | }, |
401 | }; | 401 | }; |
402 | 402 | ||
403 | static struct platform_device fsi_hdmi_device = { | ||
404 | .name = "sh_fsi2_b_hdmi", | ||
405 | }; | ||
406 | |||
403 | static int __init hdmi_init_pm_clock(void) | 407 | static int __init hdmi_init_pm_clock(void) |
404 | { | 408 | { |
405 | struct clk *hdmi_ick = clk_get(&hdmi_device.dev, "ick"); | 409 | struct clk *hdmi_ick = clk_get(&hdmi_device.dev, "ick"); |
@@ -610,16 +614,12 @@ fsi_set_rate_end: | |||
610 | } | 614 | } |
611 | 615 | ||
612 | static struct sh_fsi_platform_info fsi_info = { | 616 | static struct sh_fsi_platform_info fsi_info = { |
613 | .porta_flags = SH_FSI_BRS_INV | | 617 | .porta_flags = SH_FSI_BRS_INV, |
614 | SH_FSI_OUT_SLAVE_MODE | | ||
615 | SH_FSI_IN_SLAVE_MODE | | ||
616 | SH_FSI_OFMT(PCM) | | ||
617 | SH_FSI_IFMT(PCM), | ||
618 | 618 | ||
619 | .portb_flags = SH_FSI_BRS_INV | | 619 | .portb_flags = SH_FSI_BRS_INV | |
620 | SH_FSI_BRM_INV | | 620 | SH_FSI_BRM_INV | |
621 | SH_FSI_LRS_INV | | 621 | SH_FSI_LRS_INV | |
622 | SH_FSI_OFMT(SPDIF), | 622 | SH_FSI_FMT_SPDIF, |
623 | 623 | ||
624 | .set_rate = fsi_set_rate, | 624 | .set_rate = fsi_set_rate, |
625 | }; | 625 | }; |
@@ -922,6 +922,7 @@ static struct platform_device *mackerel_devices[] __initdata = { | |||
922 | &leds_device, | 922 | &leds_device, |
923 | &fsi_device, | 923 | &fsi_device, |
924 | &fsi_ak4643_device, | 924 | &fsi_ak4643_device, |
925 | &fsi_hdmi_device, | ||
925 | &sdhi0_device, | 926 | &sdhi0_device, |
926 | #if !defined(CONFIG_MMC_SH_MMCIF) | 927 | #if !defined(CONFIG_MMC_SH_MMCIF) |
927 | &sdhi1_device, | 928 | &sdhi1_device, |
diff --git a/arch/sh/boards/mach-ecovec24/setup.c b/arch/sh/boards/mach-ecovec24/setup.c index 33b662999fc..b96b79b970b 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 */ |
725 | static struct sh_fsi_platform_info fsi_info = { | 725 | static 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 | ||
733 | static struct resource fsi_resources[] = { | 729 | static 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 */ |
288 | static struct sh_fsi_platform_info fsi_info = { | 288 | static 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 | ||
296 | static struct resource fsi_resources[] = { | 292 | static struct resource fsi_resources[] = { |