platform.c 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. #include <asm/mcip.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 *simulation_compat[] __initconst = {
  21. "snps,nsim",
  22. "snps,nsim_hs",
  23. "snps,nsimosci",
  24. "snps,nsimosci_hs",
  25. NULL,
  26. };
  27. MACHINE_START(SIMULATION, "simulation")
  28. .dt_compat = simulation_compat,
  29. #ifdef CONFIG_ARC_MCIP
  30. .init_early = mcip_init_early_smp,
  31. .init_smp = mcip_init_smp,
  32. #endif
  33. MACHINE_END