blob: 5b89b58c5aedbc9d9f12aa5d6b2e541134101f6f [file] [log] [blame]
Michal Simek945ce1b2009-03-27 14:25:12 +01001/*
2 * Copyright 2008 Michal Simek <monstr@monstr.eu>
3 *
4 * based on virtex.c file
5 *
6 * Copyright 2007 Secret Lab Technologies Ltd.
7 *
8 * This file is licensed under the terms of the GNU General Public License
9 * version 2. This program is licensed "as is" without any warranty of any
10 * kind, whether express or implied.
11 */
12
13#include <linux/init.h>
14#include <linux/of_platform.h>
15#include <asm/prom.h>
Michal Simek42a24782009-10-02 12:48:47 +020016#include <asm/setup.h>
Michal Simek945ce1b2009-03-27 14:25:12 +010017
18static struct of_device_id xilinx_of_bus_ids[] __initdata = {
19 { .compatible = "simple-bus", },
20 { .compatible = "xlnx,plb-v46-1.00.a", },
21 { .compatible = "xlnx,opb-v20-1.10.c", },
22 { .compatible = "xlnx,opb-v20-1.10.b", },
23 { .compatible = "xlnx,compound", },
24 {}
25};
26
27static int __init microblaze_device_probe(void)
28{
29 of_platform_bus_probe(NULL, xilinx_of_bus_ids, NULL);
Michal Simek42a24782009-10-02 12:48:47 +020030 of_platform_reset_gpio_probe();
Michal Simek945ce1b2009-03-27 14:25:12 +010031 return 0;
32}
33device_initcall(microblaze_device_probe);