diff options
Diffstat (limited to 'arch/powerpc/platforms/83xx/sbc834x.c')
-rw-r--r-- | arch/powerpc/platforms/83xx/sbc834x.c | 49 |
1 files changed, 5 insertions, 44 deletions
diff --git a/arch/powerpc/platforms/83xx/sbc834x.c b/arch/powerpc/platforms/83xx/sbc834x.c index af41d8c810a8..8a81d7640b1f 100644 --- a/arch/powerpc/platforms/83xx/sbc834x.c +++ b/arch/powerpc/platforms/83xx/sbc834x.c | |||
@@ -48,52 +48,13 @@ | |||
48 | */ | 48 | */ |
49 | static void __init sbc834x_setup_arch(void) | 49 | static void __init sbc834x_setup_arch(void) |
50 | { | 50 | { |
51 | #ifdef CONFIG_PCI | ||
52 | struct device_node *np; | ||
53 | #endif | ||
54 | |||
55 | if (ppc_md.progress) | 51 | if (ppc_md.progress) |
56 | ppc_md.progress("sbc834x_setup_arch()", 0); | 52 | ppc_md.progress("sbc834x_setup_arch()", 0); |
57 | 53 | ||
58 | #ifdef CONFIG_PCI | 54 | mpc83xx_setup_pci(); |
59 | for_each_compatible_node(np, "pci", "fsl,mpc8349-pci") | ||
60 | mpc83xx_add_bridge(np); | ||
61 | #endif | ||
62 | |||
63 | } | 55 | } |
64 | 56 | ||
65 | static void __init sbc834x_init_IRQ(void) | 57 | machine_device_initcall(sbc834x, mpc83xx_declare_of_platform_devices); |
66 | { | ||
67 | struct device_node *np; | ||
68 | |||
69 | np = of_find_node_by_type(NULL, "ipic"); | ||
70 | if (!np) | ||
71 | return; | ||
72 | |||
73 | ipic_init(np, 0); | ||
74 | |||
75 | /* Initialize the default interrupt mapping priorities, | ||
76 | * in case the boot rom changed something on us. | ||
77 | */ | ||
78 | ipic_set_default_priority(); | ||
79 | |||
80 | of_node_put(np); | ||
81 | } | ||
82 | |||
83 | static struct __initdata of_device_id sbc834x_ids[] = { | ||
84 | { .type = "soc", }, | ||
85 | { .compatible = "soc", }, | ||
86 | { .compatible = "simple-bus", }, | ||
87 | { .compatible = "gianfar", }, | ||
88 | {}, | ||
89 | }; | ||
90 | |||
91 | static int __init sbc834x_declare_of_platform_devices(void) | ||
92 | { | ||
93 | of_platform_bus_probe(NULL, sbc834x_ids, NULL); | ||
94 | return 0; | ||
95 | } | ||
96 | machine_device_initcall(sbc834x, sbc834x_declare_of_platform_devices); | ||
97 | 58 | ||
98 | /* | 59 | /* |
99 | * Called very early, MMU is off, device-tree isn't unflattened | 60 | * Called very early, MMU is off, device-tree isn't unflattened |
@@ -102,14 +63,14 @@ static int __init sbc834x_probe(void) | |||
102 | { | 63 | { |
103 | unsigned long root = of_get_flat_dt_root(); | 64 | unsigned long root = of_get_flat_dt_root(); |
104 | 65 | ||
105 | return of_flat_dt_is_compatible(root, "SBC834x"); | 66 | return of_flat_dt_is_compatible(root, "SBC834xE"); |
106 | } | 67 | } |
107 | 68 | ||
108 | define_machine(sbc834x) { | 69 | define_machine(sbc834x) { |
109 | .name = "SBC834x", | 70 | .name = "SBC834xE", |
110 | .probe = sbc834x_probe, | 71 | .probe = sbc834x_probe, |
111 | .setup_arch = sbc834x_setup_arch, | 72 | .setup_arch = sbc834x_setup_arch, |
112 | .init_IRQ = sbc834x_init_IRQ, | 73 | .init_IRQ = mpc83xx_ipic_init_IRQ, |
113 | .get_irq = ipic_get_irq, | 74 | .get_irq = ipic_get_irq, |
114 | .restart = mpc83xx_restart, | 75 | .restart = mpc83xx_restart, |
115 | .time_init = mpc83xx_time_init, | 76 | .time_init = mpc83xx_time_init, |