2 * FSP-2 board specific routines
4 * Based on earlier code:
6 * Copyright 2002-2005 MontaVista Software Inc.
9 * Copyright (c) 2003-2005 Zultys Technologies
11 * Rewritten and ported to the merged powerpc tree:
14 * This program is free software; you can redistribute it and/or modify it
15 * under the terms of the GNU General Public License as published by the
16 * Free Software Foundation; either version 2 of the License, or (at your
17 * option) any later version.
20 #include <linux/init.h>
21 #include <linux/of_platform.h>
22 #include <linux/rtc.h>
24 #include <asm/machdep.h>
29 #include <asm/ppc4xx.h>
31 static __initdata struct of_device_id fsp2_of_bus[] = {
32 { .compatible = "ibm,plb4", },
33 { .compatible = "ibm,plb6", },
34 { .compatible = "ibm,opb", },
38 static int __init fsp2_device_probe(void)
40 of_platform_bus_probe(NULL, fsp2_of_bus, NULL);
43 machine_device_initcall(fsp2, fsp2_device_probe);
45 static int __init fsp2_probe(void)
47 unsigned long root = of_get_flat_dt_root();
49 if (!of_flat_dt_is_compatible(root, "ibm,fsp2"))
54 define_machine(fsp2) {
57 .progress = udbg_progress,
58 .init_IRQ = uic_init_tree,
59 .get_irq = uic_get_irq,
60 .restart = ppc4xx_reset_system,
61 .calibrate_decr = generic_calibrate_decr,