xref: /linux/arch/arc/plat-sim/platform.c (revision 33460f86ad2c982f3172a10b17948ccaf923f07f)
1fd155792SVineet Gupta /*
2fd155792SVineet Gupta  * ARC simulation Platform support code
3fd155792SVineet Gupta  *
4fd155792SVineet Gupta  * Copyright (C) 2012 Synopsys, Inc. (www.synopsys.com)
5fd155792SVineet Gupta  *
6fd155792SVineet Gupta  * This program is free software; you can redistribute it and/or modify
7fd155792SVineet Gupta  * it under the terms of the GNU General Public License version 2 as
8fd155792SVineet Gupta  * published by the Free Software Foundation.
9fd155792SVineet Gupta  */
10fd155792SVineet Gupta 
11fd155792SVineet Gupta #include <linux/init.h>
12fd155792SVineet Gupta #include <asm/mach_desc.h>
13fd155792SVineet Gupta 
14fd155792SVineet Gupta /*----------------------- Machine Descriptions ------------------------------
15fd155792SVineet Gupta  *
16fd155792SVineet Gupta  * Machine description is simply a set of platform/board specific callbacks
17fd155792SVineet Gupta  * This is not directly related to DeviceTree based dynamic device creation,
18fd155792SVineet Gupta  * however as part of early device tree scan, we also select the right
19fd155792SVineet Gupta  * callback set, by matching the DT compatible name.
20fd155792SVineet Gupta  */
21fd155792SVineet Gupta 
22fd155792SVineet Gupta static const char *simulation_compat[] __initconst = {
23*33460f86SVineet Gupta #ifdef CONFIG_ISA_ARCOMPACT
24fd155792SVineet Gupta 	"snps,nsim",
25fd155792SVineet Gupta 	"snps,nsimosci",
26*33460f86SVineet Gupta #else
27*33460f86SVineet Gupta 	"snps,nsim_hs",
28a12ebe16SVineet Gupta 	"snps,nsimosci_hs",
299efac679SVineet Gupta 	"snps,zebu_hs",
30*33460f86SVineet Gupta #endif
31fd155792SVineet Gupta 	NULL,
32fd155792SVineet Gupta };
33fd155792SVineet Gupta 
34fd155792SVineet Gupta MACHINE_START(SIMULATION, "simulation")
35fd155792SVineet Gupta 	.dt_compat	= simulation_compat,
36fd155792SVineet Gupta MACHINE_END
37