Skip to content

Commit 70e9564

Browse files
committed
ARC: [arcfpga] consolidate machine description, DT
* AA4/ML509 have same machine descriptions * Rename simulation machine description Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
1 parent 619f301 commit 70e9564

3 files changed

Lines changed: 7 additions & 30 deletions

File tree

‎arch/arc/boot/dts/angel4.dts‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@
2424
serial0 = &arcuart0;
2525
};
2626

27-
memory {
28-
device_type = "memory";
29-
reg = <0x00000000 0x10000000>; /* 256M */
30-
};
31-
3227
fpga {
3328
compatible = "simple-bus";
3429
#address-cells = <1>;

‎arch/arc/boot/dts/nsimosci.dts‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@
2727
serial0 = &uart0;
2828
};
2929

30-
memory {
31-
device_type = "memory";
32-
reg = <0x80000000 0x10000000>; /* 256M */
33-
};
34-
3530
fpga {
3631
compatible = "simple-bus";
3732
#address-cells = <1>;

‎arch/arc/plat-arcfpga/platform.c‎

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -48,41 +48,28 @@ static void __init plat_fpga_populate_dev(void)
4848
* callback set, by matching the DT compatible name.
4949
*/
5050

51-
static const char *aa4_compat[] __initconst = {
51+
static const char *legacy_fpga_compat[] __initconst = {
5252
"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 = {
6653
"snps,arc-ml509",
6754
NULL,
6855
};
6956

70-
MACHINE_START(ML509, "ml509")
71-
.dt_compat = ml509_compat,
57+
MACHINE_START(LEGACY_FPGA, "legacy_fpga")
58+
.dt_compat = legacy_fpga_compat,
7259
.init_early = plat_fpga_early_init,
7360
.init_machine = plat_fpga_populate_dev,
7461
#ifdef CONFIG_ISS_SMP_EXTN
7562
.init_smp = iss_model_init_smp,
7663
#endif
7764
MACHINE_END
7865

79-
static const char *nsimosci_compat[] __initconst = {
66+
static const char *simulation_compat[] __initconst = {
67+
"snps,nsim",
8068
"snps,nsimosci",
8169
NULL,
8270
};
8371

84-
MACHINE_START(NSIMOSCI, "nsimosci")
85-
.dt_compat = nsimosci_compat,
86-
.init_early = NULL,
72+
MACHINE_START(SIMULATION, "simulation")
73+
.dt_compat = simulation_compat,
8774
.init_machine = plat_fpga_populate_dev,
8875
MACHINE_END

0 commit comments

Comments
 (0)