diff options
author | Kim Phillips <kim.phillips@freescale.com> | 2008-01-24 21:45:51 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2008-01-28 09:32:59 -0500 |
commit | 519fd80da9e3020d9fd21fa5c496e499156cd9d6 (patch) | |
tree | 2637f696e099160cccf5bc281be06d2ea1139923 /arch/powerpc | |
parent | f3a2b29d932fbf92e133d814c4873fd15be51abc (diff) |
[POWERPC] 83xx: fold the mpc8313 platform into the mpc831x platform
prepare for adding support for the mpc8315 rdb, since they are
identical wrt platform code.
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/configs/mpc8313_rdb_defconfig | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/83xx/Kconfig | 6 | ||||
-rw-r--r-- | arch/powerpc/platforms/83xx/Makefile | 2 | ||||
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc831x_rdb.c (renamed from arch/powerpc/platforms/83xx/mpc8313_rdb.c) | 35 |
4 files changed, 18 insertions, 27 deletions
diff --git a/arch/powerpc/configs/mpc8313_rdb_defconfig b/arch/powerpc/configs/mpc8313_rdb_defconfig index db08e736c0ac..3b29ac53844e 100644 --- a/arch/powerpc/configs/mpc8313_rdb_defconfig +++ b/arch/powerpc/configs/mpc8313_rdb_defconfig | |||
@@ -138,7 +138,7 @@ CONFIG_PPC_83xx=y | |||
138 | # CONFIG_PPC_CELL is not set | 138 | # CONFIG_PPC_CELL is not set |
139 | # CONFIG_PPC_CELL_NATIVE is not set | 139 | # CONFIG_PPC_CELL_NATIVE is not set |
140 | # CONFIG_PQ2ADS is not set | 140 | # CONFIG_PQ2ADS is not set |
141 | CONFIG_MPC8313_RDB=y | 141 | CONFIG_MPC831x_RDB=y |
142 | # CONFIG_MPC832x_MDS is not set | 142 | # CONFIG_MPC832x_MDS is not set |
143 | # CONFIG_MPC832x_RDB is not set | 143 | # CONFIG_MPC832x_RDB is not set |
144 | # CONFIG_MPC834x_MDS is not set | 144 | # CONFIG_MPC834x_MDS is not set |
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 | ||
6 | config MPC8313_RDB | 6 | config 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 | ||
73 | config PPC_MPC832x | 73 | config 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 | # |
4 | obj-y := misc.o usb.o | 4 | obj-y := misc.o usb.o |
5 | obj-$(CONFIG_PCI) += pci.o | 5 | obj-$(CONFIG_PCI) += pci.o |
6 | obj-$(CONFIG_MPC8313_RDB) += mpc8313_rdb.o | 6 | obj-$(CONFIG_MPC831x_RDB) += mpc831x_rdb.o |
7 | obj-$(CONFIG_MPC832x_RDB) += mpc832x_rdb.o | 7 | obj-$(CONFIG_MPC832x_RDB) += mpc832x_rdb.o |
8 | obj-$(CONFIG_MPC834x_MDS) += mpc834x_mds.o | 8 | obj-$(CONFIG_MPC834x_MDS) += mpc834x_mds.o |
9 | obj-$(CONFIG_MPC834x_ITX) += mpc834x_itx.o | 9 | obj-$(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 | */ |
37 | static void __init mpc8313_rdb_setup_arch(void) | 28 | static 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 | ||
53 | void __init mpc8313_rdb_init_IRQ(void) | 44 | void __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 | */ |
72 | static int __init mpc8313_rdb_probe(void) | 63 | static 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 | } |
89 | machine_device_initcall(mpc8313_rdb, declare_of_platform_devices); | 80 | machine_device_initcall(mpc831x_rdb, declare_of_platform_devices); |
90 | 81 | ||
91 | define_machine(mpc8313_rdb) { | 82 | define_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, |