aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/85xx
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2007-09-11 02:25:43 -0400
committerKumar Gala <galak@kernel.crashing.org>2007-09-14 09:51:54 -0400
commit5d54ddcbcf931bf07cd1ce262bda4674ebd1427f (patch)
tree14dd3d030a02099b343d59929977363f8204ab3a /arch/powerpc/platforms/85xx
parent26caeb2ee1924d564e8d8190aa783a569532f81a (diff)
[POWERPC] 85xx: Add basic Uniprocessor MPC8572 DS port
Added basic board port for MPC8572 DS reference platform that is similiar to the MPC8544/33 DS reference platform in uniprocessor mode. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/85xx')
-rw-r--r--arch/powerpc/platforms/85xx/mpc85xx_ds.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_ds.c b/arch/powerpc/platforms/85xx/mpc85xx_ds.c
index 3a5c3c47653..4d449022ac9 100644
--- a/arch/powerpc/platforms/85xx/mpc85xx_ds.c
+++ b/arch/powerpc/platforms/85xx/mpc85xx_ds.c
@@ -181,6 +181,23 @@ static int __init mpc8544_ds_probe(void)
181 } 181 }
182} 182}
183 183
184/*
185 * Called very early, device-tree isn't unflattened
186 */
187static int __init mpc8572_ds_probe(void)
188{
189 unsigned long root = of_get_flat_dt_root();
190
191 if (of_flat_dt_is_compatible(root, "fsl,MPC8572DS")) {
192#ifdef CONFIG_PCI
193 primary_phb_addr = 0x8000;
194#endif
195 return 1;
196 } else {
197 return 0;
198 }
199}
200
184define_machine(mpc8544_ds) { 201define_machine(mpc8544_ds) {
185 .name = "MPC8544 DS", 202 .name = "MPC8544 DS",
186 .probe = mpc8544_ds_probe, 203 .probe = mpc8544_ds_probe,
@@ -194,3 +211,17 @@ define_machine(mpc8544_ds) {
194 .calibrate_decr = generic_calibrate_decr, 211 .calibrate_decr = generic_calibrate_decr,
195 .progress = udbg_progress, 212 .progress = udbg_progress,
196}; 213};
214
215define_machine(mpc8572_ds) {
216 .name = "MPC8572 DS",
217 .probe = mpc8572_ds_probe,
218 .setup_arch = mpc85xx_ds_setup_arch,
219 .init_IRQ = mpc85xx_ds_pic_init,
220#ifdef CONFIG_PCI
221 .pcibios_fixup_bus = fsl_pcibios_fixup_bus,
222#endif
223 .get_irq = mpic_get_irq,
224 .restart = mpc85xx_restart,
225 .calibrate_decr = generic_calibrate_decr,
226 .progress = udbg_progress,
227};