From bc610383cdbe73f36c80c2f29cc43cfa5d2f0b02 Mon Sep 17 00:00:00 2001 From: Icenowy Zheng Date: Fri, 10 Dec 2021 14:51:16 +0800 Subject: [PATCH] part: add support for Anlogic ELF2 EF2M45 Anlogic EF2M45 is a FPGA with a co-packaged 4Mbit SPI Flash, and the JTAG interface is the same with EG4S20. Add support for it by adding it to the part database. SPI Flash programming and SRAM programming are both tested. The support of EF2M45 is also documented in this commit. Signed-off-by: Icenowy Zheng --- doc/compatibility/fpga.rst | 1 + src/part.hpp | 1 + 2 files changed, 2 insertions(+) diff --git a/doc/compatibility/fpga.rst b/doc/compatibility/fpga.rst index 2db3d20..4628024 100644 --- a/doc/compatibility/fpga.rst +++ b/doc/compatibility/fpga.rst @@ -7,6 +7,7 @@ FPGAs Vendor Model Memory Flash ======== =================================================================================================================================== ====== ===== Anlogic `EG4S20 `__ OK AS +Anlogic `EF2M45 `__ OK AS Efinix `Trion T8 `__ NA OK Gowin `GW1N (GW1N-1, GW1N-4, GW1NR-9, GW1NS-2C, GW1NSR-4C) `__ OK IF Intel Cyclone III `EP3C16 `__ OK OK diff --git a/src/part.hpp b/src/part.hpp index ed8b565..bbe876d 100644 --- a/src/part.hpp +++ b/src/part.hpp @@ -19,6 +19,7 @@ typedef struct { /* Highest nibble (version) must always be set to 0 */ static std::map fpga_list = { {0x0a014c35, {"anlogic", "eagle s20", "EG4S20BG256", 8}}, + {0x00004c37, {"anlogic", "elf2", "EF2M45", 8}}, {0x0362D093, {"xilinx", "artix a7 35t", "xc7a35", 6}}, {0x0362c093, {"xilinx", "artix a7 50t", "xc7a50t", 6}},