Commit befe7c12 authored by Kevin Hao's avatar Kevin Hao Committed by Scott Wood

powerpc/85xx: rename the corenet_ds.c to corenet_generic.c

This file is also used by some RDB and QDS boards. So the name seems
not so accurate. Rename it to corenet_generic.c. Also update the
function names in this file according to the change.
Signed-off-by: default avatarKevin Hao <haokexin@gmail.com>
parent 512e267f
...@@ -18,7 +18,7 @@ obj-$(CONFIG_P1010_RDB) += p1010rdb.o ...@@ -18,7 +18,7 @@ obj-$(CONFIG_P1010_RDB) += p1010rdb.o
obj-$(CONFIG_P1022_DS) += p1022_ds.o obj-$(CONFIG_P1022_DS) += p1022_ds.o
obj-$(CONFIG_P1022_RDK) += p1022_rdk.o obj-$(CONFIG_P1022_RDK) += p1022_rdk.o
obj-$(CONFIG_P1023_RDS) += p1023_rds.o obj-$(CONFIG_P1023_RDS) += p1023_rds.o
obj-$(CONFIG_CORENET_GENERIC) += corenet_ds.o obj-$(CONFIG_CORENET_GENERIC) += corenet_generic.o
obj-$(CONFIG_STX_GP3) += stx_gp3.o obj-$(CONFIG_STX_GP3) += stx_gp3.o
obj-$(CONFIG_TQM85xx) += tqm85xx.o obj-$(CONFIG_TQM85xx) += tqm85xx.o
obj-$(CONFIG_SBC8548) += sbc8548.o obj-$(CONFIG_SBC8548) += sbc8548.o
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
#include <sysdev/fsl_pci.h> #include <sysdev/fsl_pci.h>
#include "smp.h" #include "smp.h"
void __init corenet_ds_pic_init(void) void __init corenet_gen_pic_init(void)
{ {
struct mpic *mpic; struct mpic *mpic;
unsigned int flags = MPIC_BIG_ENDIAN | MPIC_SINGLE_DEST_CPU | unsigned int flags = MPIC_BIG_ENDIAN | MPIC_SINGLE_DEST_CPU |
...@@ -50,7 +50,7 @@ void __init corenet_ds_pic_init(void) ...@@ -50,7 +50,7 @@ void __init corenet_ds_pic_init(void)
/* /*
* Setup the architecture * Setup the architecture
*/ */
void __init corenet_ds_setup_arch(void) void __init corenet_gen_setup_arch(void)
{ {
mpc85xx_smp_init(); mpc85xx_smp_init();
...@@ -91,7 +91,7 @@ static const struct of_device_id of_device_ids[] = { ...@@ -91,7 +91,7 @@ static const struct of_device_id of_device_ids[] = {
{} {}
}; };
int __init corenet_ds_publish_devices(void) int __init corenet_gen_publish_devices(void)
{ {
return of_platform_bus_probe(NULL, of_device_ids, NULL); return of_platform_bus_probe(NULL, of_device_ids, NULL);
} }
...@@ -159,8 +159,8 @@ static int __init corenet_generic_probe(void) ...@@ -159,8 +159,8 @@ static int __init corenet_generic_probe(void)
define_machine(corenet_generic) { define_machine(corenet_generic) {
.name = "CoreNet Generic", .name = "CoreNet Generic",
.probe = corenet_generic_probe, .probe = corenet_generic_probe,
.setup_arch = corenet_ds_setup_arch, .setup_arch = corenet_gen_setup_arch,
.init_IRQ = corenet_ds_pic_init, .init_IRQ = corenet_gen_pic_init,
#ifdef CONFIG_PCI #ifdef CONFIG_PCI
.pcibios_fixup_bus = fsl_pcibios_fixup_bus, .pcibios_fixup_bus = fsl_pcibios_fixup_bus,
#endif #endif
...@@ -175,7 +175,7 @@ define_machine(corenet_generic) { ...@@ -175,7 +175,7 @@ define_machine(corenet_generic) {
#endif #endif
}; };
machine_arch_initcall(corenet_generic, corenet_ds_publish_devices); machine_arch_initcall(corenet_generic, corenet_gen_publish_devices);
#ifdef CONFIG_SWIOTLB #ifdef CONFIG_SWIOTLB
machine_arch_initcall(corenet_generic, swiotlb_setup_bus_notifier); machine_arch_initcall(corenet_generic, swiotlb_setup_bus_notifier);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment