aboutsummaryrefslogtreecommitdiff
path: root/src/jtag/adapter.c
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2020-11-03 16:50:49 +0100
committerAntonio Borneo <borneo.antonio@gmail.com>2021-03-19 21:56:06 +0000
commit25218e8935037367e419219f8c855d92a3163023 (patch)
treebe056bd9f48fd75888ae912b8951b62aa73e15a6 /src/jtag/adapter.c
parentb0fe92dba7c01adc25e5fe3552253a4a8c69ae1a (diff)
downloadriscv-openocd-25218e8935037367e419219f8c855d92a3163023.zip
riscv-openocd-25218e8935037367e419219f8c855d92a3163023.tar.gz
riscv-openocd-25218e8935037367e419219f8c855d92a3163023.tar.bz2
jtag: remove minidriver code and minidriver-dummy
With zy1000 removed, there is no other implementation that uses the minidriver, apart from the test/example minidriver-dummy. While the idea of the minidriver is probably still valid (that is to intercept jtag primitives before serialization), there is no current use case, no guarantee it is really working, and the way it was implemented (by macros and #if conditionals) is really hard to maintain and test. Let's let it rip in git history, from where it could eventually be taken back in a more modern implementation. The entry points of minidriver API are still in the code with the original names. Change-Id: I882e32cb26cf5842f9cba14e3badaf8948e3760d Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/6091 Tested-by: jenkins Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Diffstat (limited to 'src/jtag/adapter.c')
-rw-r--r--src/jtag/adapter.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/jtag/adapter.c b/src/jtag/adapter.c
index af75917..cf579ed 100644
--- a/src/jtag/adapter.c
+++ b/src/jtag/adapter.c
@@ -497,7 +497,6 @@ COMMAND_HANDLER(handle_adapter_reset_de_assert)
(srst == VALUE_DEASSERT) ? SRST_DEASSERT : SRST_ASSERT);
}
-#ifndef HAVE_JTAG_MINIDRIVER_H
#ifdef HAVE_LIBUSB_GET_PORT_NUMBERS
COMMAND_HANDLER(handle_usb_location_command)
{
@@ -522,7 +521,6 @@ static const struct command_registration adapter_usb_command_handlers[] = {
#endif /* HAVE_LIBUSB_GET_PORT_NUMBERS */
COMMAND_REGISTRATION_DONE
};
-#endif /* MINIDRIVER */
static const struct command_registration adapter_srst_command_handlers[] = {
{
@@ -588,7 +586,6 @@ static const struct command_registration adapter_command_handlers[] = {
.help = "Declare transports the adapter supports.",
.usage = "transport ... ",
},
-#ifndef HAVE_JTAG_MINIDRIVER_H
{
.name = "usb",
.mode = COMMAND_ANY,
@@ -596,7 +593,6 @@ static const struct command_registration adapter_command_handlers[] = {
.usage = "",
.chain = adapter_usb_command_handlers,
},
-#endif /* MINIDRIVER */
{
.name = "assert",
.handler = handle_adapter_reset_de_assert,