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>
This commit is contained in:
@@ -562,11 +562,7 @@ static const tap_state_t arm11_MOVE_DRPAUSE_IDLE_DRPAUSE_with_delay[] = {
|
||||
TAP_DRSHIFT
|
||||
};
|
||||
|
||||
/* This inner loop can be implemented by the minidriver, oftentimes in hardware... The
|
||||
* minidriver can call the default implementation as a fallback or implement it
|
||||
* from scratch.
|
||||
*/
|
||||
int arm11_run_instr_data_to_core_noack_inner_default(struct jtag_tap *tap,
|
||||
static int arm11_run_instr_data_to_core_noack_inner(struct jtag_tap *tap,
|
||||
uint32_t opcode,
|
||||
uint32_t *data,
|
||||
size_t count)
|
||||
@@ -629,21 +625,6 @@ int arm11_run_instr_data_to_core_noack_inner_default(struct jtag_tap *tap,
|
||||
return retval;
|
||||
}
|
||||
|
||||
int arm11_run_instr_data_to_core_noack_inner(struct jtag_tap *tap,
|
||||
uint32_t opcode,
|
||||
uint32_t *data,
|
||||
size_t count);
|
||||
|
||||
#ifndef HAVE_JTAG_MINIDRIVER_H
|
||||
int arm11_run_instr_data_to_core_noack_inner(struct jtag_tap *tap,
|
||||
uint32_t opcode,
|
||||
uint32_t *data,
|
||||
size_t count)
|
||||
{
|
||||
return arm11_run_instr_data_to_core_noack_inner_default(tap, opcode, data, count);
|
||||
}
|
||||
#endif
|
||||
|
||||
/** Execute one instruction via ITR repeatedly while
|
||||
* passing data to the core via DTR on each execution.
|
||||
*
|
||||
|
||||
@@ -645,7 +645,6 @@ int embeddedice_handshake(struct arm_jtag *jtag_info, int hsbit, uint32_t timeou
|
||||
return ERROR_TARGET_TIMEOUT;
|
||||
}
|
||||
|
||||
#ifndef HAVE_JTAG_MINIDRIVER_H
|
||||
/**
|
||||
* This is an inner loop of the open loop DCC write of data to target
|
||||
*/
|
||||
@@ -660,6 +659,3 @@ void embeddedice_write_dcc(struct jtag_tap *tap,
|
||||
buffer += 4;
|
||||
}
|
||||
}
|
||||
#else
|
||||
/* provided by minidriver */
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user