platform.c 762 B

12345678910111213141516171819202122232425262728293031
  1. /*
  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. #include <linux/init.h>
  13. #include <linux/of_platform.h>
  14. #include <asm/prom.h>
  15. #include <asm/setup.h>
  16. static struct of_device_id xilinx_of_bus_ids[] __initdata = {
  17. { .compatible = "simple-bus", },
  18. { .compatible = "xlnx,compound", },
  19. {}
  20. };
  21. static int __init microblaze_device_probe(void)
  22. {
  23. of_platform_bus_probe(NULL, xilinx_of_bus_ids, NULL);
  24. of_platform_reset_gpio_probe();
  25. return 0;
  26. }
  27. device_initcall(microblaze_device_probe);