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