nx: Add support for NX IDCODEs
[ecpprog.git] / ecpprog / lattice_cmds.h
index 5e42d6c575671db0c0f1f1733a78eed40d3341ff..1a4c82dd075bf591e48b7a4bec38b02c2b400efb 100644 (file)
@@ -2,7 +2,7 @@
 #include <stdint.h>
 
 /* Not sure if all of these are applicable to the JTAG interface */
-enum lattice_cmd
+enum lattice_ecp5_cmd
 {
        ISC_NOOP = 0xFF, /* 0 bits - Non-operation */
        READ_ID = 0xE0, /* 24 bits - Read out the 32-bit IDCODE of the device */
@@ -45,12 +45,12 @@ enum lattice_cmd
 };
 
 
-struct ecp_device_id {
+struct device_id_pair {
        const char* device_name;
        uint32_t    device_id;
 };
 
-const struct ecp_device_id ecp_devices[] =
+const struct device_id_pair ecp_devices[] =
 {
        {"LFE5U-12"   , 0x21111043 },
        {"LFE5U-25"   , 0x41111043 },
@@ -63,3 +63,14 @@ const struct ecp_device_id ecp_devices[] =
        {"LFE5UM5G-45", 0x81112043 },
        {"LFE5UM5G-85", 0x81113043 }
 };
+
+const struct device_id_pair nx_devices[] =
+{
+       /* Crosslink NX */
+       {"LIFCL-17",    0x010F0043 },
+       {"LIFCL-40-ES", 0x010F1043 },
+       {"LIFCL-40",    0x110F1043 },
+       /* Certus NX */
+       {"LFD2NX-17",   0x310F0043 },
+       {"LFD2NX-40",   0x310F1043 },
+};