aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2007-02-17 17:29:36 -0500
committerKumar Gala <galak@kernel.crashing.org>2007-02-17 17:29:36 -0500
commit23f510bcd3a886a8a0b04ad0528006f5c309fcb8 (patch)
treec2d4887f249724e5cca96df0a8f9ddf6859b0b37 /arch/powerpc/platforms
parent6936c62571d8dc580725775b628ee73d2ac97b6f (diff)
[POWERPC] 85xx: Renamed MPC8568 MDS board code to match other boards
Renamed the MPC8568 MDS platform code to follow other 85xx boards. There isn't anything specific about the 8568 MDS code that wouldn't apply to another 85xx MDS system at this point. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r--arch/powerpc/platforms/85xx/Kconfig8
-rw-r--r--arch/powerpc/platforms/85xx/Makefile2
-rw-r--r--arch/powerpc/platforms/85xx/mpc85xx_mds.c (renamed from arch/powerpc/platforms/85xx/mpc8568_mds.c)28
3 files changed, 19 insertions, 19 deletions
diff --git a/arch/powerpc/platforms/85xx/Kconfig b/arch/powerpc/platforms/85xx/Kconfig
index 0efdd2f1babe..eb661ccf2dab 100644
--- a/arch/powerpc/platforms/85xx/Kconfig
+++ b/arch/powerpc/platforms/85xx/Kconfig
@@ -23,12 +23,12 @@ config MPC85xx_CDS
23 help 23 help
24 This option enables support for the MPC85xx CDS board 24 This option enables support for the MPC85xx CDS board
25 25
26config MPC8568_MDS 26config MPC85xx_MDS
27 bool "Freescale MPC8568 MDS" 27 bool "Freescale MPC85xx MDS"
28 select DEFAULT_UIMAGE 28 select DEFAULT_UIMAGE
29# select QUICC_ENGINE 29# select QUICC_ENGINE
30 help 30 help
31 This option enables support for the MPC8568 MDS board 31 This option enables support for the MPC85xx MDS board
32 32
33endchoice 33endchoice
34 34
@@ -47,7 +47,7 @@ config MPC85xx
47 bool 47 bool
48 select PPC_UDBG_16550 48 select PPC_UDBG_16550
49 select PPC_INDIRECT_PCI 49 select PPC_INDIRECT_PCI
50 default y if MPC8540_ADS || MPC85xx_CDS || MPC8560_ADS || MPC8568_MDS 50 default y if MPC8540_ADS || MPC85xx_CDS || MPC8560_ADS || MPC85xx_MDS
51 51
52config PPC_INDIRECT_PCI_BE 52config PPC_INDIRECT_PCI_BE
53 bool 53 bool
diff --git a/arch/powerpc/platforms/85xx/Makefile b/arch/powerpc/platforms/85xx/Makefile
index e40e521816b8..4e63917ada9d 100644
--- a/arch/powerpc/platforms/85xx/Makefile
+++ b/arch/powerpc/platforms/85xx/Makefile
@@ -5,4 +5,4 @@ obj-$(CONFIG_PPC_85xx) += misc.o pci.o
5obj-$(CONFIG_MPC8540_ADS) += mpc85xx_ads.o 5obj-$(CONFIG_MPC8540_ADS) += mpc85xx_ads.o
6obj-$(CONFIG_MPC8560_ADS) += mpc85xx_ads.o 6obj-$(CONFIG_MPC8560_ADS) += mpc85xx_ads.o
7obj-$(CONFIG_MPC85xx_CDS) += mpc85xx_cds.o 7obj-$(CONFIG_MPC85xx_CDS) += mpc85xx_cds.o
8obj-$(CONFIG_MPC8568_MDS) += mpc8568_mds.o 8obj-$(CONFIG_MPC85xx_MDS) += mpc85xx_mds.o
diff --git a/arch/powerpc/platforms/85xx/mpc8568_mds.c b/arch/powerpc/platforms/85xx/mpc85xx_mds.c
index 0ba22a42f8df..81144d2ae455 100644
--- a/arch/powerpc/platforms/85xx/mpc8568_mds.c
+++ b/arch/powerpc/platforms/85xx/mpc85xx_mds.c
@@ -8,7 +8,7 @@
8 * Yin Olivia <Hong-hua.Yin@freescale.com> 8 * Yin Olivia <Hong-hua.Yin@freescale.com>
9 * 9 *
10 * Description: 10 * Description:
11 * MPC8568E MDS PB board specific routines. 11 * MPC85xx MDS board specific routines.
12 * 12 *
13 * This program is free software; you can redistribute it and/or modify it 13 * This program is free software; you can redistribute it and/or modify it
14 * under the terms of the GNU General Public License as published by the 14 * under the terms of the GNU General Public License as published by the
@@ -69,13 +69,13 @@ unsigned long isa_mem_base = 0;
69 * Setup the architecture 69 * Setup the architecture
70 * 70 *
71 */ 71 */
72static void __init mpc8568_mds_setup_arch(void) 72static void __init mpc85xx_mds_setup_arch(void)
73{ 73{
74 struct device_node *np; 74 struct device_node *np;
75 static u8 *bcsr_regs = NULL; 75 static u8 *bcsr_regs = NULL;
76 76
77 if (ppc_md.progress) 77 if (ppc_md.progress)
78 ppc_md.progress("mpc8568_mds_setup_arch()", 0); 78 ppc_md.progress("mpc85xx_mds_setup_arch()", 0);
79 79
80 np = of_find_node_by_type(NULL, "cpu"); 80 np = of_find_node_by_type(NULL, "cpu");
81 if (np != NULL) { 81 if (np != NULL) {
@@ -143,26 +143,26 @@ static void __init mpc8568_mds_setup_arch(void)
143#endif /* CONFIG_QUICC_ENGINE */ 143#endif /* CONFIG_QUICC_ENGINE */
144} 144}
145 145
146static struct of_device_id mpc8568_ids[] = { 146static struct of_device_id mpc85xx_ids[] = {
147 { .type = "soc", }, 147 { .type = "soc", },
148 { .compatible = "soc", }, 148 { .compatible = "soc", },
149 { .type = "qe", }, 149 { .type = "qe", },
150 {}, 150 {},
151}; 151};
152 152
153static int __init mpc8568_publish_devices(void) 153static int __init mpc85xx_publish_devices(void)
154{ 154{
155 if (!machine_is(mpc8568_mds)) 155 if (!machine_is(mpc85xx_mds))
156 return 0; 156 return 0;
157 157
158 /* Publish the QE devices */ 158 /* Publish the QE devices */
159 of_platform_bus_probe(NULL,mpc8568_ids,NULL); 159 of_platform_bus_probe(NULL,mpc85xx_ids,NULL);
160 160
161 return 0; 161 return 0;
162} 162}
163device_initcall(mpc8568_publish_devices); 163device_initcall(mpc85xx_publish_devices);
164 164
165static void __init mpc8568_mds_pic_init(void) 165static void __init mpc85xx_mds_pic_init(void)
166{ 166{
167 struct mpic *mpic; 167 struct mpic *mpic;
168 struct resource r; 168 struct resource r;
@@ -215,18 +215,18 @@ static void __init mpc8568_mds_pic_init(void)
215#endif /* CONFIG_QUICC_ENGINE */ 215#endif /* CONFIG_QUICC_ENGINE */
216} 216}
217 217
218static int __init mpc8568_mds_probe(void) 218static int __init mpc85xx_mds_probe(void)
219{ 219{
220 unsigned long root = of_get_flat_dt_root(); 220 unsigned long root = of_get_flat_dt_root();
221 221
222 return of_flat_dt_is_compatible(root, "MPC85xxMDS"); 222 return of_flat_dt_is_compatible(root, "MPC85xxMDS");
223} 223}
224 224
225define_machine(mpc8568_mds) { 225define_machine(mpc85xx_mds) {
226 .name = "MPC85xx MDS", 226 .name = "MPC85xx MDS",
227 .probe = mpc8568_mds_probe, 227 .probe = mpc85xx_mds_probe,
228 .setup_arch = mpc8568_mds_setup_arch, 228 .setup_arch = mpc85xx_mds_setup_arch,
229 .init_IRQ = mpc8568_mds_pic_init, 229 .init_IRQ = mpc85xx_mds_pic_init,
230 .get_irq = mpic_get_irq, 230 .get_irq = mpic_get_irq,
231 .restart = mpc85xx_restart, 231 .restart = mpc85xx_restart,
232 .calibrate_decr = generic_calibrate_decr, 232 .calibrate_decr = generic_calibrate_decr,