2 * Xilinx Virtex (IIpro & 4FX) based board support
4 * Copyright 2007 Secret Lab Technologies Ltd.
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.
11 #include <linux/init.h>
12 #include <linux/of_platform.h>
13 #include <asm/machdep.h>
16 #include <asm/xilinx_intc.h>
18 static int __init
virtex_device_probe(void)
20 if (!machine_is(virtex
))
23 of_platform_bus_probe(NULL
, NULL
, NULL
);
27 device_initcall(virtex_device_probe
);
29 static int __init
virtex_probe(void)
31 unsigned long root
= of_get_flat_dt_root();
33 if (!of_flat_dt_is_compatible(root
, "xilinx,virtex"))
39 define_machine(virtex
) {
40 .name
= "Xilinx Virtex",
41 .probe
= virtex_probe
,
42 .init_IRQ
= xilinx_intc_init_tree
,
43 .get_irq
= xilinx_intc_get_irq
,
44 .calibrate_decr
= generic_calibrate_decr
,