platform.c 825 B

1234567891011121314151617181920212223242526272829303132
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * ARC simulation Platform support code
  4. *
  5. * Copyright (C) 2012 Synopsys, Inc. (www.synopsys.com)
  6. */
  7. #include <linux/init.h>
  8. #include <asm/mach_desc.h>
  9. /*----------------------- Machine Descriptions ------------------------------
  10. *
  11. * Machine description is simply a set of platform/board specific callbacks
  12. * This is not directly related to DeviceTree based dynamic device creation,
  13. * however as part of early device tree scan, we also select the right
  14. * callback set, by matching the DT compatible name.
  15. */
  16. static const char *simulation_compat[] __initconst = {
  17. #ifdef CONFIG_ISA_ARCOMPACT
  18. "snps,nsim",
  19. "snps,nsimosci",
  20. #else
  21. "snps,nsimosci_hs",
  22. "snps,zebu_hs",
  23. #endif
  24. NULL,
  25. };
  26. MACHINE_START(SIMULATION, "simulation")
  27. .dt_compat = simulation_compat,
  28. MACHINE_END