prima2.c 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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/sizes.h>
  11. #include <asm/mach-types.h>
  12. #include <asm/mach/arch.h>
  13. #include <linux/of.h>
  14. #include <linux/of_platform.h>
  15. #include "common.h"
  16. static struct of_device_id sirfsoc_of_bus_ids[] __initdata = {
  17. { .compatible = "simple-bus", },
  18. {},
  19. };
  20. void __init sirfsoc_mach_init(void)
  21. {
  22. of_platform_bus_probe(NULL, sirfsoc_of_bus_ids, NULL);
  23. }
  24. static const char *prima2cb_dt_match[] __initdata = {
  25. "sirf,prima2-cb",
  26. NULL
  27. };
  28. MACHINE_START(PRIMA2_EVB, "prima2cb")
  29. /* Maintainer: Barry Song <baohua.song@csr.com> */
  30. .atag_offset = 0x100,
  31. .init_early = sirfsoc_of_clk_init,
  32. .map_io = sirfsoc_map_lluart,
  33. .init_irq = sirfsoc_of_irq_init,
  34. .timer = &sirfsoc_timer,
  35. .dma_zone_size = SZ_256M,
  36. .init_machine = sirfsoc_mach_init,
  37. .dt_compat = prima2cb_dt_match,
  38. .restart = sirfsoc_restart,
  39. MACHINE_END