latticeBitParser: add SPI_MODE missing instruction (issue #324)

This commit is contained in:
Gwenhael Goavec-Merou 2023-03-04 08:02:19 +01:00
parent 04563c02d6
commit c35f21a5be
1 changed files with 5 additions and 0 deletions

View File

@ -155,6 +155,7 @@ int LatticeBitParser::parse()
#define LSC_PROG_CNTRL0 0x22
#define LSC_RESET_CRC 0x3B
#define LSC_INIT_ADDRESS 0x46
#define LSC_SPI_MODE 0x79
#define LSC_PROG_INCR_CMP 0xB8
#define LSC_PROG_INCR_RTI 0x82
#define VERIFY_ID 0xE2
@ -200,6 +201,10 @@ bool LatticeBitParser::parseCfgData()
case LSC_PROG_INCR_RTI:
printError("Bitstream is not compressed- not writing.");
return false;
case LSC_SPI_MODE: // optional: 0x79 + mode (fast-read:0x49,
// dual-spi:0x51, qspi:0x59) + 2 x 0x00
pos += 3;
break;
default:
char mess[256];
snprintf(mess, 256, "Unknown command type %02x.\n", cmd);