From 0a43d1b797f17e44c9f158d29b982670300550f0 Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Wed, 9 Feb 2022 08:32:06 +0100 Subject: [PATCH] part: add map manufacturer id <-> name --- src/part.hpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/part.hpp b/src/part.hpp index f36480f..df8d8a6 100644 --- a/src/part.hpp +++ b/src/part.hpp @@ -141,4 +141,21 @@ static std::map misc_dev_list = { {0xfffffffe, {"ZynqMP dummy device", 12}}, }; +/* list of JTAG manufacturer ID */ +static std::map list_manufacturer = { + {0x000, "CologneChip or efinix trion T4/T8"}, + {0x021, "lattice"}, + {0x049, "Xilinx"}, + {0x06e, "altera"}, + {0x093, "Xilinx"}, // ZynqMP not configured + {0x40d, "Gowin"}, + {0x53c, "efinix"}, + {0x61a, "anlogic"}, + {0x61b, "anlogic"}, // yes two manufacturer id for anlogic +}; + +#define IDCODE2MANUFACTURERID(_idcode) ((_idcode >> 1) & 0x7ff) +#define IDCODE2PART(_idcode) ((_idcode >> 21) & 0x07f) +#define IDCODE2VERS(_idcode) ((_idcode >> 28) & 0x00f) + #endif