diff options
Diffstat (limited to 'arch/powerpc/platforms/85xx/sbc8548.c')
-rw-r--r-- | arch/powerpc/platforms/85xx/sbc8548.c | 43 |
1 files changed, 5 insertions, 38 deletions
diff --git a/arch/powerpc/platforms/85xx/sbc8548.c b/arch/powerpc/platforms/85xx/sbc8548.c index 14632a971225..184a50784617 100644 --- a/arch/powerpc/platforms/85xx/sbc8548.c +++ b/arch/powerpc/platforms/85xx/sbc8548.c | |||
@@ -48,35 +48,16 @@ | |||
48 | #include <sysdev/fsl_soc.h> | 48 | #include <sysdev/fsl_soc.h> |
49 | #include <sysdev/fsl_pci.h> | 49 | #include <sysdev/fsl_pci.h> |
50 | 50 | ||
51 | #include "mpc85xx.h" | ||
52 | |||
51 | static int sbc_rev; | 53 | static int sbc_rev; |
52 | 54 | ||
53 | static void __init sbc8548_pic_init(void) | 55 | static void __init sbc8548_pic_init(void) |
54 | { | 56 | { |
55 | struct mpic *mpic; | 57 | struct mpic *mpic = mpic_alloc(NULL, 0, |
56 | struct resource r; | 58 | MPIC_WANTS_RESET | MPIC_BIG_ENDIAN, |
57 | struct device_node *np = NULL; | ||
58 | |||
59 | np = of_find_node_by_type(np, "open-pic"); | ||
60 | |||
61 | if (np == NULL) { | ||
62 | printk(KERN_ERR "Could not find open-pic node\n"); | ||
63 | return; | ||
64 | } | ||
65 | |||
66 | if (of_address_to_resource(np, 0, &r)) { | ||
67 | printk(KERN_ERR "Failed to map mpic register space\n"); | ||
68 | of_node_put(np); | ||
69 | return; | ||
70 | } | ||
71 | |||
72 | mpic = mpic_alloc(np, r.start, | ||
73 | MPIC_PRIMARY | MPIC_WANTS_RESET | MPIC_BIG_ENDIAN, | ||
74 | 0, 256, " OpenPIC "); | 59 | 0, 256, " OpenPIC "); |
75 | BUG_ON(mpic == NULL); | 60 | BUG_ON(mpic == NULL); |
76 | |||
77 | /* Return the mpic node */ | ||
78 | of_node_put(np); | ||
79 | |||
80 | mpic_init(mpic); | 61 | mpic_init(mpic); |
81 | } | 62 | } |
82 | 63 | ||
@@ -149,21 +130,7 @@ static void sbc8548_show_cpuinfo(struct seq_file *m) | |||
149 | seq_printf(m, "PLL setting\t: 0x%x\n", ((phid1 >> 24) & 0x3f)); | 130 | seq_printf(m, "PLL setting\t: 0x%x\n", ((phid1 >> 24) & 0x3f)); |
150 | } | 131 | } |
151 | 132 | ||
152 | static struct of_device_id __initdata of_bus_ids[] = { | 133 | machine_device_initcall(sbc8548, mpc85xx_common_publish_devices); |
153 | { .name = "soc", }, | ||
154 | { .type = "soc", }, | ||
155 | { .compatible = "simple-bus", }, | ||
156 | { .compatible = "gianfar", }, | ||
157 | {}, | ||
158 | }; | ||
159 | |||
160 | static int __init declare_of_platform_devices(void) | ||
161 | { | ||
162 | of_platform_bus_probe(NULL, of_bus_ids, NULL); | ||
163 | |||
164 | return 0; | ||
165 | } | ||
166 | machine_device_initcall(sbc8548, declare_of_platform_devices); | ||
167 | 134 | ||
168 | /* | 135 | /* |
169 | * Called very early, device-tree isn't unflattened | 136 | * Called very early, device-tree isn't unflattened |