diff options
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/platforms/85xx/mpc85xx_rdb.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_rdb.c b/arch/powerpc/platforms/85xx/mpc85xx_rdb.c index 4976f4e101a2..2c2a272e79fa 100644 --- a/arch/powerpc/platforms/85xx/mpc85xx_rdb.c +++ b/arch/powerpc/platforms/85xx/mpc85xx_rdb.c | |||
@@ -89,6 +89,7 @@ static void __init mpc85xx_rdb_setup_arch(void) | |||
89 | 89 | ||
90 | machine_device_initcall(p2020_rdb, mpc85xx_common_publish_devices); | 90 | machine_device_initcall(p2020_rdb, mpc85xx_common_publish_devices); |
91 | machine_device_initcall(p2020_rdb_pc, mpc85xx_common_publish_devices); | 91 | machine_device_initcall(p2020_rdb_pc, mpc85xx_common_publish_devices); |
92 | machine_device_initcall(p1020_mbg_pc, mpc85xx_common_publish_devices); | ||
92 | machine_device_initcall(p1020_rdb, mpc85xx_common_publish_devices); | 93 | machine_device_initcall(p1020_rdb, mpc85xx_common_publish_devices); |
93 | machine_device_initcall(p1021_rdb_pc, mpc85xx_common_publish_devices); | 94 | machine_device_initcall(p1021_rdb_pc, mpc85xx_common_publish_devices); |
94 | machine_device_initcall(p1025_rdb, mpc85xx_common_publish_devices); | 95 | machine_device_initcall(p1025_rdb, mpc85xx_common_publish_devices); |
@@ -139,6 +140,13 @@ static int __init p1025_rdb_probe(void) | |||
139 | return of_flat_dt_is_compatible(root, "fsl,P1025RDB"); | 140 | return of_flat_dt_is_compatible(root, "fsl,P1025RDB"); |
140 | } | 141 | } |
141 | 142 | ||
143 | static int __init p1020_mbg_pc_probe(void) | ||
144 | { | ||
145 | unsigned long root = of_get_flat_dt_root(); | ||
146 | |||
147 | return of_flat_dt_is_compatible(root, "fsl,P1020MBG-PC"); | ||
148 | } | ||
149 | |||
142 | define_machine(p2020_rdb) { | 150 | define_machine(p2020_rdb) { |
143 | .name = "P2020 RDB", | 151 | .name = "P2020 RDB", |
144 | .probe = p2020_rdb_probe, | 152 | .probe = p2020_rdb_probe, |
@@ -208,3 +216,17 @@ define_machine(p1025_rdb) { | |||
208 | .calibrate_decr = generic_calibrate_decr, | 216 | .calibrate_decr = generic_calibrate_decr, |
209 | .progress = udbg_progress, | 217 | .progress = udbg_progress, |
210 | }; | 218 | }; |
219 | |||
220 | define_machine(p1020_mbg_pc) { | ||
221 | .name = "P1020 MBG-PC", | ||
222 | .probe = p1020_mbg_pc_probe, | ||
223 | .setup_arch = mpc85xx_rdb_setup_arch, | ||
224 | .init_IRQ = mpc85xx_rdb_pic_init, | ||
225 | #ifdef CONFIG_PCI | ||
226 | .pcibios_fixup_bus = fsl_pcibios_fixup_bus, | ||
227 | #endif | ||
228 | .get_irq = mpic_get_irq, | ||
229 | .restart = fsl_rstcr_restart, | ||
230 | .calibrate_decr = generic_calibrate_decr, | ||
231 | .progress = udbg_progress, | ||
232 | }; | ||