aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r--arch/powerpc/platforms/83xx/Kconfig6
-rw-r--r--arch/powerpc/platforms/83xx/Makefile2
-rw-r--r--arch/powerpc/platforms/83xx/mpc831x_rdb.c (renamed from arch/powerpc/platforms/83xx/mpc8313_rdb.c)35
3 files changed, 17 insertions, 26 deletions
diff --git a/arch/powerpc/platforms/83xx/Kconfig b/arch/powerpc/platforms/83xx/Kconfig
index 782bff0c3229..10a665f7774c 100644
--- a/arch/powerpc/platforms/83xx/Kconfig
+++ b/arch/powerpc/platforms/83xx/Kconfig
@@ -3,8 +3,8 @@ choice
3 depends on PPC_83xx 3 depends on PPC_83xx
4 default MPC834x_MDS 4 default MPC834x_MDS
5 5
6config MPC8313_RDB 6config MPC831x_RDB
7 bool "Freescale MPC8313 RDB" 7 bool "Freescale MPC831x RDB"
8 select DEFAULT_UIMAGE 8 select DEFAULT_UIMAGE
9 help 9 help
10 This option enables support for the MPC8313 RDB board. 10 This option enables support for the MPC8313 RDB board.
@@ -68,7 +68,7 @@ config PPC_MPC831x
68 bool 68 bool
69 select PPC_UDBG_16550 69 select PPC_UDBG_16550
70 select PPC_INDIRECT_PCI 70 select PPC_INDIRECT_PCI
71 default y if MPC8313_RDB 71 default y if MPC831x_RDB
72 72
73config PPC_MPC832x 73config PPC_MPC832x
74 bool 74 bool
diff --git a/arch/powerpc/platforms/83xx/Makefile b/arch/powerpc/platforms/83xx/Makefile
index 3a35242ba890..2d3cbab5c50b 100644
--- a/arch/powerpc/platforms/83xx/Makefile
+++ b/arch/powerpc/platforms/83xx/Makefile
@@ -3,7 +3,7 @@
3# 3#
4obj-y := misc.o usb.o 4obj-y := misc.o usb.o
5obj-$(CONFIG_PCI) += pci.o 5obj-$(CONFIG_PCI) += pci.o
6obj-$(CONFIG_MPC8313_RDB) += mpc8313_rdb.o 6obj-$(CONFIG_MPC831x_RDB) += mpc831x_rdb.o
7obj-$(CONFIG_MPC832x_RDB) += mpc832x_rdb.o 7obj-$(CONFIG_MPC832x_RDB) += mpc832x_rdb.o
8obj-$(CONFIG_MPC834x_MDS) += mpc834x_mds.o 8obj-$(CONFIG_MPC834x_MDS) += mpc834x_mds.o
9obj-$(CONFIG_MPC834x_ITX) += mpc834x_itx.o 9obj-$(CONFIG_MPC834x_ITX) += mpc834x_itx.o
diff --git a/arch/powerpc/platforms/83xx/mpc8313_rdb.c b/arch/powerpc/platforms/83xx/mpc831x_rdb.c
index 4996b7dfdf1d..b484b2b4ba69 100644
--- a/arch/powerpc/platforms/83xx/mpc8313_rdb.c
+++ b/arch/powerpc/platforms/83xx/mpc831x_rdb.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * arch/powerpc/platforms/83xx/mpc8313_rdb.c 2 * arch/powerpc/platforms/83xx/mpc831x_rdb.c
3 * 3 *
4 * Description: MPC8313x RDB board specific routines. 4 * Description: MPC831x RDB board specific routines.
5 * This file is based on mpc834x_sys.c 5 * This file is based on mpc834x_sys.c
6 * Author: Lo Wlison <r43300@freescale.com> 6 * Author: Lo Wlison <r43300@freescale.com>
7 * 7 *
@@ -22,26 +22,17 @@
22 22
23#include "mpc83xx.h" 23#include "mpc83xx.h"
24 24
25#undef DEBUG 25/*
26#ifdef DEBUG
27#define DBG(fmt...) udbg_printf(fmt)
28#else
29#define DBG(fmt...)
30#endif
31
32/* ************************************************************************
33 *
34 * Setup the architecture 26 * Setup the architecture
35 *
36 */ 27 */
37static void __init mpc8313_rdb_setup_arch(void) 28static void __init mpc831x_rdb_setup_arch(void)
38{ 29{
39#ifdef CONFIG_PCI 30#ifdef CONFIG_PCI
40 struct device_node *np; 31 struct device_node *np;
41#endif 32#endif
42 33
43 if (ppc_md.progress) 34 if (ppc_md.progress)
44 ppc_md.progress("mpc8313_rdb_setup_arch()", 0); 35 ppc_md.progress("mpc831x_rdb_setup_arch()", 0);
45 36
46#ifdef CONFIG_PCI 37#ifdef CONFIG_PCI
47 for_each_compatible_node(np, "pci", "fsl,mpc8349-pci") 38 for_each_compatible_node(np, "pci", "fsl,mpc8349-pci")
@@ -50,7 +41,7 @@ static void __init mpc8313_rdb_setup_arch(void)
50 mpc831x_usb_cfg(); 41 mpc831x_usb_cfg();
51} 42}
52 43
53void __init mpc8313_rdb_init_IRQ(void) 44void __init mpc831x_rdb_init_IRQ(void)
54{ 45{
55 struct device_node *np; 46 struct device_node *np;
56 47
@@ -69,7 +60,7 @@ void __init mpc8313_rdb_init_IRQ(void)
69/* 60/*
70 * Called very early, MMU is off, device-tree isn't unflattened 61 * Called very early, MMU is off, device-tree isn't unflattened
71 */ 62 */
72static int __init mpc8313_rdb_probe(void) 63static int __init mpc831x_rdb_probe(void)
73{ 64{
74 unsigned long root = of_get_flat_dt_root(); 65 unsigned long root = of_get_flat_dt_root();
75 66
@@ -86,13 +77,13 @@ static int __init declare_of_platform_devices(void)
86 of_platform_bus_probe(NULL, of_bus_ids, NULL); 77 of_platform_bus_probe(NULL, of_bus_ids, NULL);
87 return 0; 78 return 0;
88} 79}
89machine_device_initcall(mpc8313_rdb, declare_of_platform_devices); 80machine_device_initcall(mpc831x_rdb, declare_of_platform_devices);
90 81
91define_machine(mpc8313_rdb) { 82define_machine(mpc831x_rdb) {
92 .name = "MPC8313 RDB", 83 .name = "MPC831x RDB",
93 .probe = mpc8313_rdb_probe, 84 .probe = mpc831x_rdb_probe,
94 .setup_arch = mpc8313_rdb_setup_arch, 85 .setup_arch = mpc831x_rdb_setup_arch,
95 .init_IRQ = mpc8313_rdb_init_IRQ, 86 .init_IRQ = mpc831x_rdb_init_IRQ,
96 .get_irq = ipic_get_irq, 87 .get_irq = ipic_get_irq,
97 .restart = mpc83xx_restart, 88 .restart = mpc83xx_restart,
98 .time_init = mpc83xx_time_init, 89 .time_init = mpc83xx_time_init,