Vineet Gupta | c121c50 | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 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 | |
Vineet Gupta | c121c50 | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 11 | #include <linux/init.h> |
Vineet Gupta | 877768c | 2013-01-23 16:32:48 +0530 | [diff] [blame] | 12 | #include <asm/mach_desc.h> |
Vineet Gupta | 877768c | 2013-01-23 16:32:48 +0530 | [diff] [blame] | 13 | #include <plat/smp.h> |
Vineet Gupta | c121c50 | 2013-01-18 15:12:20 +0530 | [diff] [blame] | 14 | |
Vineet Gupta | 877768c | 2013-01-23 16:32:48 +0530 | [diff] [blame] | 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 | |
Vineet Gupta | 70e9564 | 2014-09-10 11:08:39 +0530 | [diff] [blame] | 23 | static const char *legacy_fpga_compat[] __initconst = { |
Vineet Gupta | 877768c | 2013-01-23 16:32:48 +0530 | [diff] [blame] | 24 | "snps,arc-angel4", |
Vineet Gupta | 877768c | 2013-01-23 16:32:48 +0530 | [diff] [blame] | 25 | "snps,arc-ml509", |
| 26 | NULL, |
| 27 | }; |
| 28 | |
Vineet Gupta | 70e9564 | 2014-09-10 11:08:39 +0530 | [diff] [blame] | 29 | MACHINE_START(LEGACY_FPGA, "legacy_fpga") |
| 30 | .dt_compat = legacy_fpga_compat, |
Vineet Gupta | 619f301 | 2014-09-04 10:57:33 +0530 | [diff] [blame] | 31 | #ifdef CONFIG_ISS_SMP_EXTN |
Vineet Gupta | 72f933e | 2014-09-10 11:19:28 +0530 | [diff] [blame] | 32 | .init_early = iss_model_init_early_smp, |
Vineet Gupta | 877768c | 2013-01-23 16:32:48 +0530 | [diff] [blame] | 33 | .init_smp = iss_model_init_smp, |
| 34 | #endif |
| 35 | MACHINE_END |
Mischa Jonker | a92a5d0 | 2013-04-18 11:40:39 +0200 | [diff] [blame] | 36 | |
Vineet Gupta | 70e9564 | 2014-09-10 11:08:39 +0530 | [diff] [blame] | 37 | static const char *simulation_compat[] __initconst = { |
| 38 | "snps,nsim", |
Mischa Jonker | a92a5d0 | 2013-04-18 11:40:39 +0200 | [diff] [blame] | 39 | "snps,nsimosci", |
| 40 | NULL, |
| 41 | }; |
| 42 | |
Vineet Gupta | 70e9564 | 2014-09-10 11:08:39 +0530 | [diff] [blame] | 43 | MACHINE_START(SIMULATION, "simulation") |
| 44 | .dt_compat = simulation_compat, |
Mischa Jonker | a92a5d0 | 2013-04-18 11:40:39 +0200 | [diff] [blame] | 45 | MACHINE_END |