Skip to content

Commit

Permalink
target/aarch64: remove dependency from jtag queue
Browse files Browse the repository at this point in the history
Replace jtag specific API jtag_add_reset() with transport
independent API adapter_{de}assert_reset().

Change-Id: I32c43e2e47366363521fa3f387de9e2fb1c20852
Signed-off-by: Antonio Borneo <[email protected]>
Reviewed-on: http:https://openocd.zylin.com/4943
Tested-by: jenkins
Reviewed-by: Matthias Welwarsky <[email protected]>
  • Loading branch information
borneoa authored and thinkfat committed Jun 14, 2019
1 parent 9879f9b commit 18f4ef0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/target/aarch64.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "armv8_opcodes.h"
#include "armv8_cache.h"
#include "arm_semihosting.h"
#include "jtag/interface.h"
#include "smp.h"
#include <helper/time_support.h>

Expand Down Expand Up @@ -1662,7 +1663,7 @@ static int aarch64_assert_reset(struct target *target)
/* REVISIT handle "pulls" cases, if there's
* hardware that needs them to work.
*/
jtag_add_reset(0, 1);
adapter_assert_reset();
} else {
LOG_ERROR("%s: how to reset?", target_name(target));
return ERROR_FAIL;
Expand All @@ -1686,7 +1687,7 @@ static int aarch64_deassert_reset(struct target *target)
LOG_DEBUG(" ");

/* be certain SRST is off */
jtag_add_reset(0, 0);
adapter_deassert_reset();

if (!target_was_examined(target))
return ERROR_OK;
Expand Down

0 comments on commit 18f4ef0

Please sign in to comment.