jtagspi/pld: add interface to get support from pld drivers
commitfe5ed48f40e4f1b36d74900d0d9b410affea6bdb
authorDaniel Anselmi <danselmi@gmx.ch>
Fri, 24 Feb 2023 14:57:30 +0000 (24 15:57 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 23 Sep 2023 14:33:37 +0000 (23 14:33 +0000)
treeb10ee1879bf35cfefa890096461ec092d99833da
parent30375c6439ee97f60d729db747f01fb4eb2cf495
jtagspi/pld: add interface to get support from pld drivers

Jtagspi is using a proxy bitstream to "connect" JTAG to the
SPI pins. This is not possible with all FPGA vendors/families.
In this cases a dedicated procedure is needed to establish such
a connection.

This patch adds a jtagspi-mode for these cases. It also adds the
needed interfaces to jtagspi and the pld-driver so the driver
can select the mode and provide the necessary procedures.

For the cases where a proxy bitstream is needed, the pld driver
will select the mode and provide instruction code needed in this
case.

Change-Id: I9563f26739589157b39a3664a73d91152cd13f77
Signed-off-by: Daniel Anselmi <danselmi@gmx.ch>
Reviewed-on: https://review.openocd.org/c/openocd/+/7822
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
doc/openocd.texi
src/flash/nor/jtagspi.c
src/pld/pld.c
src/pld/pld.h
tcl/cpld/jtagspi.cfg