drivers/kitprog: remove unused JTAG execute_queue method
kitprog is SWD only and we do not rely on JTAG queue anymore. Remove the remaining JTAG heritage. Change-Id: Ic586278368301eb669bc6e4e641f683a81cb171d Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/4899 Tested-by: jenkins Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
This commit is contained in:
parent
b5621bf2f9
commit
7268ff22c3
|
@ -844,35 +844,6 @@ static int kitprog_reset(int trst, int srst)
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void kitprog_execute_sleep(struct jtag_command *cmd)
|
|
||||||
{
|
|
||||||
jtag_sleep(cmd->cmd.sleep->us);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void kitprog_execute_command(struct jtag_command *cmd)
|
|
||||||
{
|
|
||||||
switch (cmd->type) {
|
|
||||||
case JTAG_SLEEP:
|
|
||||||
kitprog_execute_sleep(cmd);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
LOG_ERROR("BUG: unknown JTAG command type encountered");
|
|
||||||
exit(-1);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static int kitprog_execute_queue(void)
|
|
||||||
{
|
|
||||||
struct jtag_command *cmd = jtag_command_queue;
|
|
||||||
|
|
||||||
while (cmd != NULL) {
|
|
||||||
kitprog_execute_command(cmd);
|
|
||||||
cmd = cmd->next;
|
|
||||||
}
|
|
||||||
|
|
||||||
return ERROR_OK;
|
|
||||||
}
|
|
||||||
|
|
||||||
COMMAND_HANDLER(kitprog_handle_info_command)
|
COMMAND_HANDLER(kitprog_handle_info_command)
|
||||||
{
|
{
|
||||||
int retval = kitprog_get_info();
|
int retval = kitprog_get_info();
|
||||||
|
@ -969,7 +940,6 @@ struct jtag_interface kitprog_interface = {
|
||||||
.commands = kitprog_command_handlers,
|
.commands = kitprog_command_handlers,
|
||||||
.transports = kitprog_transports,
|
.transports = kitprog_transports,
|
||||||
.swd = &kitprog_swd,
|
.swd = &kitprog_swd,
|
||||||
.execute_queue = kitprog_execute_queue,
|
|
||||||
.init = kitprog_init,
|
.init = kitprog_init,
|
||||||
.quit = kitprog_quit,
|
.quit = kitprog_quit,
|
||||||
.reset = kitprog_reset,
|
.reset = kitprog_reset,
|
||||||
|
|
Loading…
Reference in New Issue