Commit | Line | Data |
---|---|---|
c121c506 | 1 | /* |
fd155792 | 2 | * ARC simulation Platform support code |
c121c506 VG |
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 | ||
c121c506 | 11 | #include <linux/init.h> |
877768c8 | 12 | #include <asm/mach_desc.h> |
82fea5a1 | 13 | #include <asm/mcip.h> |
c121c506 | 14 | |
877768c8 VG |
15 | /*----------------------- Machine Descriptions ------------------------------ |
16 | * | |
17 | * Machine description is simply a set of platform/board specific callbacks | |
18 | * This is not directly related to DeviceTree based dynamic device creation, | |
19 | * however as part of early device tree scan, we also select the right | |
20 | * callback set, by matching the DT compatible name. | |
21 | */ | |
22 | ||
70e95648 VG |
23 | static const char *simulation_compat[] __initconst = { |
24 | "snps,nsim", | |
a92a5d0d MJ |
25 | "snps,nsimosci", |
26 | NULL, | |
27 | }; | |
28 | ||
70e95648 VG |
29 | MACHINE_START(SIMULATION, "simulation") |
30 | .dt_compat = simulation_compat, | |
82fea5a1 VG |
31 | #ifdef CONFIG_ARC_MCIP |
32 | .init_early = mcip_init_early_smp, | |
33 | .init_smp = mcip_init_smp, | |
34 | #endif | |
a92a5d0d | 35 | MACHINE_END |