diff options
author | Zhicheng Fan <b32736@freescale.com> | 2012-02-10 01:48:15 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2012-03-16 12:03:26 -0400 |
commit | 7e6af144781a3ae9dff142f44dc26e585cb41b82 (patch) | |
tree | da6d29e072d876c3381bd2eaa2d44551a3a52dda /arch/powerpc/platforms/85xx/mpc85xx_rdb.c | |
parent | 1a244b8318b5f67f9065362767409117609edc9a (diff) |
powerpc/85xx: Add p1020rdb-pc platform support
Signed-off-by: Zhicheng Fan <b32736@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/85xx/mpc85xx_rdb.c')
-rw-r--r-- | arch/powerpc/platforms/85xx/mpc85xx_rdb.c | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_rdb.c b/arch/powerpc/platforms/85xx/mpc85xx_rdb.c index 8a798962f662..e5b260c0995b 100644 --- a/arch/powerpc/platforms/85xx/mpc85xx_rdb.c +++ b/arch/powerpc/platforms/85xx/mpc85xx_rdb.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * MPC85xx RDB Board Setup | 2 | * MPC85xx RDB Board Setup |
3 | * | 3 | * |
4 | * Copyright 2009 Freescale Semiconductor Inc. | 4 | * Copyright 2009,2012 Freescale Semiconductor Inc. |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify it | 6 | * This program is free software; you can redistribute it and/or modify it |
7 | * under the terms of the GNU General Public License as published by the | 7 | * under the terms of the GNU General Public License as published by the |
@@ -91,6 +91,7 @@ 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_mbg_pc, mpc85xx_common_publish_devices); |
93 | machine_device_initcall(p1020_rdb, mpc85xx_common_publish_devices); | 93 | machine_device_initcall(p1020_rdb, mpc85xx_common_publish_devices); |
94 | machine_device_initcall(p1020_rdb_pc, mpc85xx_common_publish_devices); | ||
94 | machine_device_initcall(p1020_utm_pc, mpc85xx_common_publish_devices); | 95 | machine_device_initcall(p1020_utm_pc, mpc85xx_common_publish_devices); |
95 | machine_device_initcall(p1021_rdb_pc, mpc85xx_common_publish_devices); | 96 | machine_device_initcall(p1021_rdb_pc, mpc85xx_common_publish_devices); |
96 | machine_device_initcall(p1025_rdb, mpc85xx_common_publish_devices); | 97 | machine_device_initcall(p1025_rdb, mpc85xx_common_publish_devices); |
@@ -116,6 +117,13 @@ static int __init p1020_rdb_probe(void) | |||
116 | return 0; | 117 | return 0; |
117 | } | 118 | } |
118 | 119 | ||
120 | static int __init p1020_rdb_pc_probe(void) | ||
121 | { | ||
122 | unsigned long root = of_get_flat_dt_root(); | ||
123 | |||
124 | return of_flat_dt_is_compatible(root, "fsl,P1020RDB-PC"); | ||
125 | } | ||
126 | |||
119 | static int __init p1021_rdb_pc_probe(void) | 127 | static int __init p1021_rdb_pc_probe(void) |
120 | { | 128 | { |
121 | unsigned long root = of_get_flat_dt_root(); | 129 | unsigned long root = of_get_flat_dt_root(); |
@@ -252,3 +260,17 @@ define_machine(p1020_utm_pc) { | |||
252 | .calibrate_decr = generic_calibrate_decr, | 260 | .calibrate_decr = generic_calibrate_decr, |
253 | .progress = udbg_progress, | 261 | .progress = udbg_progress, |
254 | }; | 262 | }; |
263 | |||
264 | define_machine(p1020_rdb_pc) { | ||
265 | .name = "P1020RDB-PC", | ||
266 | .probe = p1020_rdb_pc_probe, | ||
267 | .setup_arch = mpc85xx_rdb_setup_arch, | ||
268 | .init_IRQ = mpc85xx_rdb_pic_init, | ||
269 | #ifdef CONFIG_PCI | ||
270 | .pcibios_fixup_bus = fsl_pcibios_fixup_bus, | ||
271 | #endif | ||
272 | .get_irq = mpic_get_irq, | ||
273 | .restart = fsl_rstcr_restart, | ||
274 | .calibrate_decr = generic_calibrate_decr, | ||
275 | .progress = udbg_progress, | ||
276 | }; | ||