]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blob - arch/powerpc/platforms/40x/virtex.c
[POWERPC] 4xx: Use machine_device_initcall for bus probe
[linux-2.6-omap-h63xx.git] / arch / powerpc / platforms / 40x / virtex.c
1 /*
2  * Xilinx Virtex (IIpro & 4FX) based board support
3  *
4  * Copyright 2007 Secret Lab Technologies Ltd.
5  *
6  * This file is licensed under the terms of the GNU General Public License
7  * version 2. This program is licensed "as is" without any warranty of any
8  * kind, whether express or implied.
9  */
10
11 #include <linux/init.h>
12 #include <linux/of_platform.h>
13 #include <asm/machdep.h>
14 #include <asm/prom.h>
15 #include <asm/time.h>
16 #include <asm/xilinx_intc.h>
17
18 static int __init virtex_device_probe(void)
19 {
20         of_platform_bus_probe(NULL, NULL, NULL);
21
22         return 0;
23 }
24 machine_device_initcall(virtex, virtex_device_probe);
25
26 static int __init virtex_probe(void)
27 {
28         unsigned long root = of_get_flat_dt_root();
29
30         if (!of_flat_dt_is_compatible(root, "xilinx,virtex"))
31                 return 0;
32
33         return 1;
34 }
35
36 define_machine(virtex) {
37         .name                   = "Xilinx Virtex",
38         .probe                  = virtex_probe,
39         .init_IRQ               = xilinx_intc_init_tree,
40         .get_irq                = xilinx_intc_get_irq,
41         .calibrate_decr         = generic_calibrate_decr,
42 };