jtag: retire jtag_get/set_end_state()
Voila! This get rids of mysteries about what what state the TAP is in. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
This commit is contained in:
@@ -343,7 +343,6 @@ int embeddedice_read_reg_w_check(struct reg *reg,
|
||||
uint8_t field1_out[1];
|
||||
uint8_t field2_out[1];
|
||||
|
||||
jtag_set_end_state(TAP_IDLE);
|
||||
arm_jtag_scann(ice_reg->jtag_info, 0x2, TAP_IDLE);
|
||||
|
||||
arm_jtag_set_instr(ice_reg->jtag_info, ice_reg->jtag_info->intest_instr, NULL, TAP_IDLE);
|
||||
@@ -405,7 +404,6 @@ int embeddedice_receive(struct arm_jtag *jtag_info, uint32_t *data, uint32_t siz
|
||||
uint8_t field1_out[1];
|
||||
uint8_t field2_out[1];
|
||||
|
||||
jtag_set_end_state(TAP_IDLE);
|
||||
arm_jtag_scann(jtag_info, 0x2, TAP_IDLE);
|
||||
arm_jtag_set_instr(jtag_info, jtag_info->intest_instr, NULL, TAP_IDLE);
|
||||
|
||||
@@ -490,7 +488,6 @@ void embeddedice_write_reg(struct reg *reg, uint32_t value)
|
||||
|
||||
LOG_DEBUG("%i: 0x%8.8" PRIx32 "", ice_reg->addr, value);
|
||||
|
||||
jtag_set_end_state(TAP_IDLE);
|
||||
arm_jtag_scann(ice_reg->jtag_info, 0x2, TAP_IDLE);
|
||||
|
||||
arm_jtag_set_instr(ice_reg->jtag_info, ice_reg->jtag_info->intest_instr, NULL, TAP_IDLE);
|
||||
@@ -523,7 +520,6 @@ int embeddedice_send(struct arm_jtag *jtag_info, uint32_t *data, uint32_t size)
|
||||
uint8_t field1_out[1];
|
||||
uint8_t field2_out[1];
|
||||
|
||||
jtag_set_end_state(TAP_IDLE);
|
||||
arm_jtag_scann(jtag_info, 0x2, TAP_IDLE);
|
||||
arm_jtag_set_instr(jtag_info, jtag_info->intest_instr, NULL, TAP_IDLE);
|
||||
|
||||
@@ -576,7 +572,6 @@ int embeddedice_handshake(struct arm_jtag *jtag_info, int hsbit, uint32_t timeou
|
||||
else
|
||||
return ERROR_INVALID_ARGUMENTS;
|
||||
|
||||
jtag_set_end_state(TAP_IDLE);
|
||||
arm_jtag_scann(jtag_info, 0x2, TAP_IDLE);
|
||||
arm_jtag_set_instr(jtag_info, jtag_info->intest_instr, NULL, TAP_IDLE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user