efinix: in jtag mode fix access to the ll driver

This commit is contained in:
Gwenhael Goavec-Merou 2023-02-25 18:36:04 +01:00
parent d7d414ea55
commit 64d6b614b6
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ Efinix::Efinix(Jtag* jtag, const std::string &filename,
_spi(NULL), _rst_pin(0), _done_pin(0), _cs_pin(0),
_oe_pin(0)
{
_ftdi_jtag = reinterpret_cast<FtdiJtagMPSSE *>(jtag);
_ftdi_jtag = reinterpret_cast<FtdiJtagMPSSE *>(jtag->get_ll_class());
/* WA: before using JTAG, device must restart with cs low
* but cs and rst for xyloni are connected to interfaceA (ie SPI)