2019-06-04 08:11:33 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
2013-01-18 09:42:20 +00:00
|
|
|
/*
|
2015-02-20 13:42:18 +00:00
|
|
|
* ARC simulation Platform support code
|
2013-01-18 09:42:20 +00:00
|
|
|
*
|
|
|
|
* Copyright (C) 2012 Synopsys, Inc. (www.synopsys.com)
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/init.h>
|
2013-01-23 11:02:48 +00:00
|
|
|
#include <asm/mach_desc.h>
|
2013-01-18 09:42:20 +00:00
|
|
|
|
2013-01-23 11:02:48 +00:00
|
|
|
/*----------------------- Machine Descriptions ------------------------------
|
|
|
|
*
|
|
|
|
* Machine description is simply a set of platform/board specific callbacks
|
|
|
|
* This is not directly related to DeviceTree based dynamic device creation,
|
|
|
|
* however as part of early device tree scan, we also select the right
|
|
|
|
* callback set, by matching the DT compatible name.
|
|
|
|
*/
|
|
|
|
|
2014-09-10 05:38:39 +00:00
|
|
|
static const char *simulation_compat[] __initconst = {
|
2017-07-28 11:23:50 +00:00
|
|
|
#ifdef CONFIG_ISA_ARCOMPACT
|
2014-09-10 05:38:39 +00:00
|
|
|
"snps,nsim",
|
2013-04-18 09:40:39 +00:00
|
|
|
"snps,nsimosci",
|
2017-07-28 11:23:50 +00:00
|
|
|
#else
|
2015-03-09 09:00:19 +00:00
|
|
|
"snps,nsimosci_hs",
|
2015-05-11 13:16:22 +00:00
|
|
|
"snps,zebu_hs",
|
2017-07-28 11:23:50 +00:00
|
|
|
#endif
|
2013-04-18 09:40:39 +00:00
|
|
|
NULL,
|
|
|
|
};
|
|
|
|
|
2014-09-10 05:38:39 +00:00
|
|
|
MACHINE_START(SIMULATION, "simulation")
|
|
|
|
.dt_compat = simulation_compat,
|
2013-04-18 09:40:39 +00:00
|
|
|
MACHINE_END
|