platform.c 950 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * ARC simulation 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. /*----------------------- Machine Descriptions ------------------------------
  13. *
  14. * Machine description is simply a set of platform/board specific callbacks
  15. * This is not directly related to DeviceTree based dynamic device creation,
  16. * however as part of early device tree scan, we also select the right
  17. * callback set, by matching the DT compatible name.
  18. */
  19. static const char *simulation_compat[] __initconst = {
  20. "snps,nsim",
  21. "snps,nsim_hs",
  22. "snps,nsimosci",
  23. "snps,nsimosci_hs",
  24. "snps,zebu_hs",
  25. NULL,
  26. };
  27. MACHINE_START(SIMULATION, "simulation")
  28. .dt_compat = simulation_compat,
  29. MACHINE_END