platform.c 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * ARC FPGA Platform support code
  3. *
  4. * Copyright (C) 2012 Synopsys, Inc. (www.synopsys.com)
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #include <linux/init.h>
  11. #include <asm/mach_desc.h>
  12. #include <plat/smp.h>
  13. /*----------------------- Machine Descriptions ------------------------------
  14. *
  15. * Machine description is simply a set of platform/board specific callbacks
  16. * This is not directly related to DeviceTree based dynamic device creation,
  17. * however as part of early device tree scan, we also select the right
  18. * callback set, by matching the DT compatible name.
  19. */
  20. static const char *legacy_fpga_compat[] __initconst = {
  21. "snps,arc-angel4",
  22. "snps,arc-ml509",
  23. NULL,
  24. };
  25. MACHINE_START(LEGACY_FPGA, "legacy_fpga")
  26. .dt_compat = legacy_fpga_compat,
  27. #ifdef CONFIG_ISS_SMP_EXTN
  28. .init_early = iss_model_init_early_smp,
  29. .init_smp = iss_model_init_smp,
  30. #endif
  31. MACHINE_END
  32. static const char *simulation_compat[] __initconst = {
  33. "snps,nsim",
  34. "snps,nsimosci",
  35. NULL,
  36. };
  37. MACHINE_START(SIMULATION, "simulation")
  38. .dt_compat = simulation_compat,
  39. MACHINE_END