platform.c 933 B

1234567891011121314151617181920212223242526272829303132
  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. NULL,
  25. };
  26. MACHINE_START(SIMULATION, "simulation")
  27. .dt_compat = simulation_compat,
  28. MACHINE_END