diff options
author | Franck Jullien <franck.jullien@gmail.com> | 2013-02-03 18:15:13 +0100 |
---|---|---|
committer | Andreas Fritiofson <andreas.fritiofson@gmail.com> | 2013-02-08 22:33:19 +0000 |
commit | 87668aebf1851c06af2513ab5f27ebb9ebf1ff16 (patch) | |
tree | 5f8fad191256e26517b18166b0a276bdd708b3eb /src/jtag/drivers/gw16012.c | |
parent | feddedb6db72b81714780fae5d0b3a51dc1ddedc (diff) |
jtag_interface: .speed can be NULL when not needed
adapter_init (core.c) won't check speed configuration
of the selected interface if it's not needed (.speed = NULL).
When it's not needed, we can now omit adapter_khz in
init scripts and we don't have to implement dummy handlers
for speed_div and khz functions.
It also removes calls to adapter_khz in interface configuration
files when not used anymore.
Change-Id: I6eb1894385503fede542a368f297cec6565eed44
Signed-off-by: Franck Jullien <franck.jullien@gmail.com>
Reviewed-on: http://openocd.zylin.com/1131
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Diffstat (limited to 'src/jtag/drivers/gw16012.c')
-rw-r--r-- | src/jtag/drivers/gw16012.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/jtag/drivers/gw16012.c b/src/jtag/drivers/gw16012.c index bf027f8f..a37f8caf 100644 --- a/src/jtag/drivers/gw16012.c +++ b/src/jtag/drivers/gw16012.c @@ -146,12 +146,6 @@ static void gw16012_reset(int trst, int srst) gw16012_control(0x0b); } -static int gw16012_speed(int speed) -{ - - return ERROR_OK; -} - static void gw16012_end_state(tap_state_t state) { if (tap_is_state_stable(state)) @@ -547,6 +541,5 @@ struct jtag_interface gw16012_interface = { .init = gw16012_init, .quit = gw16012_quit, - .speed = gw16012_speed, .execute_queue = gw16012_execute_queue, }; |