2 * Ebony board specific routines
4 * Matt Porter <mporter@kernel.crashing.org>
5 * Copyright 2002-2005 MontaVista Software Inc.
7 * Eugene Surovegin <eugene.surovegin@zultys.com> or <ebs@ebshome.net>
8 * Copyright (c) 2003-2005 Zultys Technologies
10 * Rewritten and ported to the merged powerpc tree:
11 * Copyright 2007 David Gibson <dwg@au1.ibm.com>, IBM Corporation.
13 * This program is free software; you can redistribute it and/or modify it
14 * under the terms of the GNU General Public License as published by the
15 * Free Software Foundation; either version 2 of the License, or (at your
16 * option) any later version.
19 #include <linux/init.h>
20 #include <linux/of_platform.h>
22 #include <asm/machdep.h>
27 #include <asm/pci-bridge.h>
31 static struct of_device_id ebony_of_bus[] = {
32 { .compatible = "ibm,plb4", },
33 { .compatible = "ibm,opb", },
34 { .compatible = "ibm,ebc", },
38 static int __init ebony_device_probe(void)
40 if (!machine_is(ebony))
43 of_platform_bus_probe(NULL, ebony_of_bus, NULL);
47 device_initcall(ebony_device_probe);
50 * Called very early, MMU is off, device-tree isn't unflattened
52 static int __init ebony_probe(void)
54 unsigned long root = of_get_flat_dt_root();
56 if (!of_flat_dt_is_compatible(root, "ibm,ebony"))
59 ppc_pci_flags = PPC_PCI_REASSIGN_ALL_RSRC;
64 define_machine(ebony) {
67 .progress = udbg_progress,
68 .init_IRQ = uic_init_tree,
69 .get_irq = uic_get_irq,
70 .restart = ppc44x_reset_system,
71 .calibrate_decr = generic_calibrate_decr,