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>
22 #include <asm/machdep.h>
27 #include <asm/ppc4xx.h>
29 static __initdata struct of_device_id hcu4_of_bus[] = {
30 { .compatible = "ibm,plb3", },
31 { .compatible = "ibm,opb", },
32 { .compatible = "ibm,ebc", },
36 static int __init hcu4_device_probe(void)
38 of_platform_bus_probe(NULL, hcu4_of_bus, NULL);
41 machine_device_initcall(hcu4, hcu4_device_probe);
43 static int __init hcu4_probe(void)
45 unsigned long root = of_get_flat_dt_root();
47 if (!of_flat_dt_is_compatible(root, "netstal,hcu4"))
53 define_machine(hcu4) {
56 .progress = udbg_progress,
57 .init_IRQ = uic_init_tree,
58 .get_irq = uic_get_irq,
59 .restart = ppc4xx_reset_system,
60 .calibrate_decr = generic_calibrate_decr,