diff options
Diffstat (limited to 'arch/powerpc/platforms/83xx/mpc834x_itx.c')
-rw-r--r-- | arch/powerpc/platforms/83xx/mpc834x_itx.c | 30 |
1 files changed, 3 insertions, 27 deletions
diff --git a/arch/powerpc/platforms/83xx/mpc834x_itx.c b/arch/powerpc/platforms/83xx/mpc834x_itx.c index 6b45969567d4..39849dd1b5bb 100644 --- a/arch/powerpc/platforms/83xx/mpc834x_itx.c +++ b/arch/powerpc/platforms/83xx/mpc834x_itx.c | |||
@@ -41,13 +41,12 @@ | |||
41 | 41 | ||
42 | static struct of_device_id __initdata mpc834x_itx_ids[] = { | 42 | static struct of_device_id __initdata mpc834x_itx_ids[] = { |
43 | { .compatible = "fsl,pq2pro-localbus", }, | 43 | { .compatible = "fsl,pq2pro-localbus", }, |
44 | { .compatible = "simple-bus", }, | ||
45 | { .compatible = "gianfar", }, | ||
46 | {}, | 44 | {}, |
47 | }; | 45 | }; |
48 | 46 | ||
49 | static int __init mpc834x_itx_declare_of_platform_devices(void) | 47 | static int __init mpc834x_itx_declare_of_platform_devices(void) |
50 | { | 48 | { |
49 | mpc83xx_declare_of_platform_devices(); | ||
51 | return of_platform_bus_probe(NULL, mpc834x_itx_ids, NULL); | 50 | return of_platform_bus_probe(NULL, mpc834x_itx_ids, NULL); |
52 | } | 51 | } |
53 | machine_device_initcall(mpc834x_itx, mpc834x_itx_declare_of_platform_devices); | 52 | machine_device_initcall(mpc834x_itx, mpc834x_itx_declare_of_platform_devices); |
@@ -59,37 +58,14 @@ machine_device_initcall(mpc834x_itx, mpc834x_itx_declare_of_platform_devices); | |||
59 | */ | 58 | */ |
60 | static void __init mpc834x_itx_setup_arch(void) | 59 | static void __init mpc834x_itx_setup_arch(void) |
61 | { | 60 | { |
62 | #ifdef CONFIG_PCI | ||
63 | struct device_node *np; | ||
64 | #endif | ||
65 | |||
66 | if (ppc_md.progress) | 61 | if (ppc_md.progress) |
67 | ppc_md.progress("mpc834x_itx_setup_arch()", 0); | 62 | ppc_md.progress("mpc834x_itx_setup_arch()", 0); |
68 | 63 | ||
69 | #ifdef CONFIG_PCI | 64 | mpc83xx_setup_pci(); |
70 | for_each_compatible_node(np, "pci", "fsl,mpc8349-pci") | ||
71 | mpc83xx_add_bridge(np); | ||
72 | #endif | ||
73 | 65 | ||
74 | mpc834x_usb_cfg(); | 66 | mpc834x_usb_cfg(); |
75 | } | 67 | } |
76 | 68 | ||
77 | static void __init mpc834x_itx_init_IRQ(void) | ||
78 | { | ||
79 | struct device_node *np; | ||
80 | |||
81 | np = of_find_node_by_type(NULL, "ipic"); | ||
82 | if (!np) | ||
83 | return; | ||
84 | |||
85 | ipic_init(np, 0); | ||
86 | |||
87 | /* Initialize the default interrupt mapping priorities, | ||
88 | * in case the boot rom changed something on us. | ||
89 | */ | ||
90 | ipic_set_default_priority(); | ||
91 | } | ||
92 | |||
93 | /* | 69 | /* |
94 | * Called very early, MMU is off, device-tree isn't unflattened | 70 | * Called very early, MMU is off, device-tree isn't unflattened |
95 | */ | 71 | */ |
@@ -104,7 +80,7 @@ define_machine(mpc834x_itx) { | |||
104 | .name = "MPC834x ITX", | 80 | .name = "MPC834x ITX", |
105 | .probe = mpc834x_itx_probe, | 81 | .probe = mpc834x_itx_probe, |
106 | .setup_arch = mpc834x_itx_setup_arch, | 82 | .setup_arch = mpc834x_itx_setup_arch, |
107 | .init_IRQ = mpc834x_itx_init_IRQ, | 83 | .init_IRQ = mpc83xx_ipic_init_IRQ, |
108 | .get_irq = ipic_get_irq, | 84 | .get_irq = ipic_get_irq, |
109 | .restart = mpc83xx_restart, | 85 | .restart = mpc83xx_restart, |
110 | .time_init = mpc83xx_time_init, | 86 | .time_init = mpc83xx_time_init, |