diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2014-09-10 01:38:39 -0400 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2014-10-13 05:16:12 -0400 |
commit | 70e956483efd8a70e86fb2260dcd2395eb1affef (patch) | |
tree | 82ee0e3f263961a5cec97e1cd2617f49e3ca8d7c /arch/arc/plat-arcfpga/platform.c | |
parent | 619f30188ff0d10fccc3cd952a79cb56ff62db54 (diff) |
ARC: [arcfpga] consolidate machine description, DT
* AA4/ML509 have same machine descriptions
* Rename simulation machine description
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/plat-arcfpga/platform.c')
-rw-r--r-- | arch/arc/plat-arcfpga/platform.c | 27 |
1 files changed, 7 insertions, 20 deletions
diff --git a/arch/arc/plat-arcfpga/platform.c b/arch/arc/plat-arcfpga/platform.c index 6abc341e276d..57bd24f6a4bd 100644 --- a/arch/arc/plat-arcfpga/platform.c +++ b/arch/arc/plat-arcfpga/platform.c | |||
@@ -48,27 +48,14 @@ static void __init plat_fpga_populate_dev(void) | |||
48 | * callback set, by matching the DT compatible name. | 48 | * callback set, by matching the DT compatible name. |
49 | */ | 49 | */ |
50 | 50 | ||
51 | static const char *aa4_compat[] __initconst = { | 51 | static const char *legacy_fpga_compat[] __initconst = { |
52 | "snps,arc-angel4", | 52 | "snps,arc-angel4", |
53 | NULL, | ||
54 | }; | ||
55 | |||
56 | MACHINE_START(ANGEL4, "angel4") | ||
57 | .dt_compat = aa4_compat, | ||
58 | .init_early = plat_fpga_early_init, | ||
59 | .init_machine = plat_fpga_populate_dev, | ||
60 | #ifdef CONFIG_ISS_SMP_EXTN | ||
61 | .init_smp = iss_model_init_smp, | ||
62 | #endif | ||
63 | MACHINE_END | ||
64 | |||
65 | static const char *ml509_compat[] __initconst = { | ||
66 | "snps,arc-ml509", | 53 | "snps,arc-ml509", |
67 | NULL, | 54 | NULL, |
68 | }; | 55 | }; |
69 | 56 | ||
70 | MACHINE_START(ML509, "ml509") | 57 | MACHINE_START(LEGACY_FPGA, "legacy_fpga") |
71 | .dt_compat = ml509_compat, | 58 | .dt_compat = legacy_fpga_compat, |
72 | .init_early = plat_fpga_early_init, | 59 | .init_early = plat_fpga_early_init, |
73 | .init_machine = plat_fpga_populate_dev, | 60 | .init_machine = plat_fpga_populate_dev, |
74 | #ifdef CONFIG_ISS_SMP_EXTN | 61 | #ifdef CONFIG_ISS_SMP_EXTN |
@@ -76,13 +63,13 @@ MACHINE_START(ML509, "ml509") | |||
76 | #endif | 63 | #endif |
77 | MACHINE_END | 64 | MACHINE_END |
78 | 65 | ||
79 | static const char *nsimosci_compat[] __initconst = { | 66 | static const char *simulation_compat[] __initconst = { |
67 | "snps,nsim", | ||
80 | "snps,nsimosci", | 68 | "snps,nsimosci", |
81 | NULL, | 69 | NULL, |
82 | }; | 70 | }; |
83 | 71 | ||
84 | MACHINE_START(NSIMOSCI, "nsimosci") | 72 | MACHINE_START(SIMULATION, "simulation") |
85 | .dt_compat = nsimosci_compat, | 73 | .dt_compat = simulation_compat, |
86 | .init_early = NULL, | ||
87 | .init_machine = plat_fpga_populate_dev, | 74 | .init_machine = plat_fpga_populate_dev, |
88 | MACHINE_END | 75 | MACHINE_END |