jtagspi/pld: add support from lattice ecp5 driver

Provide	jtagspi	with specific procedures to be able to
use jtagspi for	programming spi-flash devices on lattice
ecp5 devices.

Change-Id: I4a4a60f21d7e8685a5b8320b9c6ebdc2693bbd21
Signed-off-by: Daniel Anselmi <danselmi@gmx.ch>
Reviewed-on: https://review.openocd.org/c/openocd/+/7824
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Tested-by: jenkins
This commit is contained in:
Daniel Anselmi
2022-12-17 13:11:30 +01:00
committed by Antonio Borneo
parent 2b99846ab6
commit 536f2a9f2a
5 changed files with 88 additions and 1 deletions

View File

@@ -10,6 +10,7 @@
#define ISC_ERASE 0x0E
#define ISC_DISABLE 0x26
#define PROGRAM_SPI 0x3A
#define LSC_READ_STATUS 0x3C
#define LSC_INIT_ADDRESS 0x46
#define LSC_BITSTREAM_BURST 0x7A