prima2.c 990 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Defines machines for CSR SiRFprimaII
  3. *
  4. * Copyright (c) 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
  5. *
  6. * Licensed under GPLv2 or later.
  7. */
  8. #include <linux/init.h>
  9. #include <linux/kernel.h>
  10. #include <asm/mach-types.h>
  11. #include <asm/mach/arch.h>
  12. #include <linux/of.h>
  13. #include <linux/of_platform.h>
  14. #include "common.h"
  15. static struct of_device_id sirfsoc_of_bus_ids[] __initdata = {
  16. { .compatible = "simple-bus", },
  17. {},
  18. };
  19. void __init sirfsoc_mach_init(void)
  20. {
  21. of_platform_bus_probe(NULL, sirfsoc_of_bus_ids, NULL);
  22. }
  23. static const char *prima2cb_dt_match[] __initdata = {
  24. "sirf,prima2-cb",
  25. NULL
  26. };
  27. MACHINE_START(PRIMA2_EVB, "prima2cb")
  28. /* Maintainer: Barry Song <baohua.song@csr.com> */
  29. .boot_params = 0x00000100,
  30. .init_early = sirfsoc_of_clk_init,
  31. .map_io = sirfsoc_map_lluart,
  32. .init_irq = sirfsoc_of_irq_init,
  33. .timer = &sirfsoc_timer,
  34. .init_machine = sirfsoc_mach_init,
  35. .dt_compat = prima2cb_dt_match,
  36. MACHINE_END