blob: d9e35b4a2f0861bd9e0bd9ad38360e959029d62c [file] [log] [blame]
Vineet Guptac121c502013-01-18 15:12:20 +05301/*
Vineet Guptafd155792015-02-20 19:12:18 +05302 * ARC simulation Platform support code
Vineet Guptac121c502013-01-18 15:12:20 +05303 *
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
Vineet Guptac121c502013-01-18 15:12:20 +053011#include <linux/init.h>
Vineet Gupta877768c2013-01-23 16:32:48 +053012#include <asm/mach_desc.h>
Vineet Gupta82fea5a2014-09-10 19:05:38 +053013#include <asm/mcip.h>
Vineet Guptac121c502013-01-18 15:12:20 +053014
Vineet Gupta877768c2013-01-23 16:32:48 +053015/*----------------------- 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
Vineet Gupta70e95642014-09-10 11:08:39 +053023static const char *simulation_compat[] __initconst = {
24 "snps,nsim",
Vineet Guptaa12ebe12015-03-09 14:30:19 +053025 "snps,nsim_hs",
Mischa Jonkera92a5d02013-04-18 11:40:39 +020026 "snps,nsimosci",
Vineet Guptaa12ebe12015-03-09 14:30:19 +053027 "snps,nsimosci_hs",
Mischa Jonkera92a5d02013-04-18 11:40:39 +020028 NULL,
29};
30
Vineet Gupta70e95642014-09-10 11:08:39 +053031MACHINE_START(SIMULATION, "simulation")
32 .dt_compat = simulation_compat,
Vineet Gupta82fea5a2014-09-10 19:05:38 +053033#ifdef CONFIG_ARC_MCIP
34 .init_early = mcip_init_early_smp,
35 .init_smp = mcip_init_smp,
36#endif
Mischa Jonkera92a5d02013-04-18 11:40:39 +020037MACHINE_END