Merge tag 'arc-3.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupta/arc
[deliverable/linux.git] / arch / arc / plat-arcfpga / platform.c
CommitLineData
c121c506
VG
1/*
2 * ARC FPGA Platform support code
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>
877768c8 13#include <plat/smp.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 23static const char *legacy_fpga_compat[] __initconst = {
877768c8 24 "snps,arc-angel4",
877768c8
VG
25 "snps,arc-ml509",
26 NULL,
27};
28
70e95648
VG
29MACHINE_START(LEGACY_FPGA, "legacy_fpga")
30 .dt_compat = legacy_fpga_compat,
619f3018 31#ifdef CONFIG_ISS_SMP_EXTN
72f933e7 32 .init_early = iss_model_init_early_smp,
877768c8
VG
33 .init_smp = iss_model_init_smp,
34#endif
35MACHINE_END
a92a5d0d 36
70e95648
VG
37static const char *simulation_compat[] __initconst = {
38 "snps,nsim",
a92a5d0d
MJ
39 "snps,nsimosci",
40 NULL,
41};
42
70e95648
VG
43MACHINE_START(SIMULATION, "simulation")
44 .dt_compat = simulation_compat,
a92a5d0d 45MACHINE_END
This page took 0.112899 seconds and 5 git commands to generate.