aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2012-09-14 10:46:29 -0400
committerLee Jones <lee.jones@linaro.org>2012-09-20 06:32:41 -0400
commit39b740bf142ab34566c6d1f4498176bb7600ca18 (patch)
tree23795e0c563e502f9d80f9a3bc0dd05b9941ecb5
parent4fa469419f8f9216c0313489f3819e1099a4933f (diff)
ARM: ux500: Rename MSP board file to something more meaningful
The 'msp' board file does more than just register MSP devices. It also registers some other components necessary to get audio working on ux500 based platforms; such as the PCM and Machine Drivers. For that reason we're changing the filename to be more encompassing - 'audio'. Acked-by: Ola Lilja <ola.o.lilja@stericsson.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r--arch/arm/mach-ux500/Makefile2
-rw-r--r--arch/arm/mach-ux500/board-mop500-audio.c (renamed from arch/arm/mach-ux500/board-mop500-msp.c)16
-rw-r--r--arch/arm/mach-ux500/board-mop500.c12
-rw-r--r--arch/arm/mach-ux500/board-mop500.h4
4 files changed, 17 insertions, 17 deletions
diff --git a/arch/arm/mach-ux500/Makefile b/arch/arm/mach-ux500/Makefile
index 026086ff9e6c..1dc2cfa8bcb5 100644
--- a/arch/arm/mach-ux500/Makefile
+++ b/arch/arm/mach-ux500/Makefile
@@ -12,6 +12,6 @@ obj-$(CONFIG_MACH_MOP500) += board-mop500.o board-mop500-sdi.o \
12 board-mop500-uib.o board-mop500-stuib.o \ 12 board-mop500-uib.o board-mop500-stuib.o \
13 board-mop500-u8500uib.o \ 13 board-mop500-u8500uib.o \
14 board-mop500-pins.o \ 14 board-mop500-pins.o \
15 board-mop500-msp.o 15 board-mop500-audio.o
16obj-$(CONFIG_SMP) += platsmp.o headsmp.o 16obj-$(CONFIG_SMP) += platsmp.o headsmp.o
17obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o 17obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o
diff --git a/arch/arm/mach-ux500/board-mop500-msp.c b/arch/arm/mach-ux500/board-mop500-audio.c
index d04f54d7527f..070629a95625 100644
--- a/arch/arm/mach-ux500/board-mop500-msp.c
+++ b/arch/arm/mach-ux500/board-mop500-audio.c
@@ -171,14 +171,7 @@ struct msp_i2s_platform_data msp3_platform_data = {
171 .msp_i2s_dma_tx = NULL, 171 .msp_i2s_dma_tx = NULL,
172}; 172};
173 173
174/* Due for removal once the MSP driver has been fully DT:ed. */ 174void mop500_audio_init(struct device *parent)
175void mop500_of_msp_init(struct device *parent)
176{
177 pr_info("%s: Register platform-device 'ux500-pcm'\n", __func__);
178 platform_device_register(&ux500_pcm);
179}
180
181void mop500_msp_init(struct device *parent)
182{ 175{
183 pr_info("%s: Register platform-device 'snd-soc-mop500'.\n", __func__); 176 pr_info("%s: Register platform-device 'snd-soc-mop500'.\n", __func__);
184 platform_device_register(&snd_soc_mop500); 177 platform_device_register(&snd_soc_mop500);
@@ -193,3 +186,10 @@ void mop500_msp_init(struct device *parent)
193 db8500_add_msp_i2s(parent, 3, U8500_MSP3_BASE, IRQ_DB8500_MSP1, 186 db8500_add_msp_i2s(parent, 3, U8500_MSP3_BASE, IRQ_DB8500_MSP1,
194 &msp3_platform_data); 187 &msp3_platform_data);
195} 188}
189
190/* Due for removal once the MSP driver has been fully DT:ed. */
191void mop500_of_audio_init(struct device *parent)
192{
193 pr_info("%s: Register platform-device 'ux500-pcm'\n", __func__);
194 platform_device_register(&ux500_pcm);
195}
diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c
index 2cb13bc33c83..ab3fe2cd0b7d 100644
--- a/arch/arm/mach-ux500/board-mop500.c
+++ b/arch/arm/mach-ux500/board-mop500.c
@@ -607,7 +607,7 @@ static void __init mop500_init_machine(void)
607 mop500_i2c_init(parent); 607 mop500_i2c_init(parent);
608 mop500_sdi_init(parent); 608 mop500_sdi_init(parent);
609 mop500_spi_init(parent); 609 mop500_spi_init(parent);
610 mop500_msp_init(parent); 610 mop500_audio_init(parent);
611 mop500_uart_init(parent); 611 mop500_uart_init(parent);
612 612
613 u8500_cryp1_hash1_init(parent); 613 u8500_cryp1_hash1_init(parent);
@@ -641,7 +641,7 @@ static void __init snowball_init_machine(void)
641 mop500_i2c_init(parent); 641 mop500_i2c_init(parent);
642 snowball_sdi_init(parent); 642 snowball_sdi_init(parent);
643 mop500_spi_init(parent); 643 mop500_spi_init(parent);
644 mop500_msp_init(parent); 644 mop500_audio_init(parent);
645 mop500_uart_init(parent); 645 mop500_uart_init(parent);
646 646
647 /* This board has full regulator constraints */ 647 /* This board has full regulator constraints */
@@ -673,7 +673,7 @@ static void __init hrefv60_init_machine(void)
673 mop500_i2c_init(parent); 673 mop500_i2c_init(parent);
674 hrefv60_sdi_init(parent); 674 hrefv60_sdi_init(parent);
675 mop500_spi_init(parent); 675 mop500_spi_init(parent);
676 mop500_msp_init(parent); 676 mop500_audio_init(parent);
677 mop500_uart_init(parent); 677 mop500_uart_init(parent);
678 678
679 i2c0_devs = ARRAY_SIZE(mop500_i2c0_devices); 679 i2c0_devs = ARRAY_SIZE(mop500_i2c0_devices);
@@ -804,7 +804,7 @@ static void __init u8500_init_machine(void)
804 ARRAY_SIZE(mop500_platform_devs)); 804 ARRAY_SIZE(mop500_platform_devs));
805 805
806 mop500_sdi_init(parent); 806 mop500_sdi_init(parent);
807 mop500_msp_init(parent); 807 mop500_audio_init(parent);
808 i2c0_devs = ARRAY_SIZE(mop500_i2c0_devices); 808 i2c0_devs = ARRAY_SIZE(mop500_i2c0_devices);
809 i2c_register_board_info(0, mop500_i2c0_devices, i2c0_devs); 809 i2c_register_board_info(0, mop500_i2c0_devices, i2c0_devs);
810 i2c_register_board_info(2, mop500_i2c2_devices, 810 i2c_register_board_info(2, mop500_i2c2_devices,
@@ -813,7 +813,7 @@ static void __init u8500_init_machine(void)
813 mop500_uib_init(); 813 mop500_uib_init();
814 814
815 } else if (of_machine_is_compatible("calaosystems,snowball-a9500")) { 815 } else if (of_machine_is_compatible("calaosystems,snowball-a9500")) {
816 mop500_of_msp_init(parent); 816 mop500_of_audio_init(parent);
817 } else if (of_machine_is_compatible("st-ericsson,hrefv60+")) { 817 } else if (of_machine_is_compatible("st-ericsson,hrefv60+")) {
818 /* 818 /*
819 * The HREFv60 board removed a GPIO expander and routed 819 * The HREFv60 board removed a GPIO expander and routed
@@ -825,7 +825,7 @@ static void __init u8500_init_machine(void)
825 ARRAY_SIZE(mop500_platform_devs)); 825 ARRAY_SIZE(mop500_platform_devs));
826 826
827 hrefv60_sdi_init(parent); 827 hrefv60_sdi_init(parent);
828 mop500_msp_init(parent); 828 mop500_audio_init(parent);
829 829
830 i2c0_devs = ARRAY_SIZE(mop500_i2c0_devices); 830 i2c0_devs = ARRAY_SIZE(mop500_i2c0_devices);
831 i2c0_devs -= NUM_PRE_V60_I2C0_DEVICES; 831 i2c0_devs -= NUM_PRE_V60_I2C0_DEVICES;
diff --git a/arch/arm/mach-ux500/board-mop500.h b/arch/arm/mach-ux500/board-mop500.h
index 67943243eb12..aca39a68712a 100644
--- a/arch/arm/mach-ux500/board-mop500.h
+++ b/arch/arm/mach-ux500/board-mop500.h
@@ -99,9 +99,9 @@ void __init mop500_stuib_init(void);
99void __init mop500_pinmaps_init(void); 99void __init mop500_pinmaps_init(void);
100void __init snowball_pinmaps_init(void); 100void __init snowball_pinmaps_init(void);
101void __init hrefv60_pinmaps_init(void); 101void __init hrefv60_pinmaps_init(void);
102void mop500_msp_init(struct device *parent); 102void mop500_audio_init(struct device *parent);
103/* Due for removal once the MSP driver has been fully DT:ed. */ 103/* Due for removal once the MSP driver has been fully DT:ed. */
104void mop500_of_msp_init(struct device *parent); 104void mop500_of_audio_init(struct device *parent);
105 105
106int __init mop500_uib_init(void); 106int __init mop500_uib_init(void);
107void mop500_uib_i2c_add(int busnum, struct i2c_board_info *info, 107void mop500_uib_i2c_add(int busnum, struct i2c_board_info *info,