2 * Architecture- / platform-specific boot-time initialization code for
3 * IBM PowerPC 4xx based boards. Adapted from original
4 * code by Gary Thomas, Cort Dougan <cort@fsmlabs.com>, and Dan Malek
7 * Copyright(c) 1999-2000 Grant Erickson <grant@lcse.umn.edu>
9 * Rewritten and ported to the merged powerpc tree:
10 * Copyright 2007 IBM Corporation
11 * Josh Boyer <jwboyer@linux.vnet.ibm.com>
13 * 2002 (c) MontaVista, Software, Inc. This file is licensed under
14 * the terms of the GNU General Public License version 2. This program
15 * is licensed "as is" without any warranty of any kind, whether express
19 #include <linux/init.h>
20 #include <linux/of_platform.h>
21 #include <linux/rtc.h>
23 #include <asm/machdep.h>
28 #include <asm/pci-bridge.h>
30 static __initdata
struct of_device_id walnut_of_bus
[] = {
31 { .compatible
= "ibm,plb3", },
32 { .compatible
= "ibm,opb", },
33 { .compatible
= "ibm,ebc", },
37 static int __init
walnut_device_probe(void)
39 of_platform_bus_probe(NULL
, walnut_of_bus
, NULL
);
44 machine_device_initcall(walnut
, walnut_device_probe
);
46 static int __init
walnut_probe(void)
48 unsigned long root
= of_get_flat_dt_root();
50 if (!of_flat_dt_is_compatible(root
, "ibm,walnut"))
53 ppc_pci_flags
= PPC_PCI_REASSIGN_ALL_RSRC
;
58 define_machine(walnut
) {
60 .probe
= walnut_probe
,
61 .progress
= udbg_progress
,
62 .init_IRQ
= uic_init_tree
,
63 .get_irq
= uic_get_irq
,
64 .calibrate_decr
= generic_calibrate_decr
,