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/ep93xx.c | |
parent | feddedb6db72b81714780fae5d0b3a51dc1ddedc (diff) | |
download | riscv-openocd-87668aebf1851c06af2513ab5f27ebb9ebf1ff16.zip riscv-openocd-87668aebf1851c06af2513ab5f27ebb9ebf1ff16.tar.gz riscv-openocd-87668aebf1851c06af2513ab5f27ebb9ebf1ff16.tar.bz2 |
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/ep93xx.c')
-rw-r--r-- | src/jtag/drivers/ep93xx.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/jtag/drivers/ep93xx.c b/src/jtag/drivers/ep93xx.c index 9781130..ff4535b 100644 --- a/src/jtag/drivers/ep93xx.c +++ b/src/jtag/drivers/ep93xx.c @@ -47,7 +47,6 @@ static int ep93xx_read(void); static void ep93xx_write(int tck, int tms, int tdi); static void ep93xx_reset(int trst, int srst); -static int ep93xx_speed(int speed); static int ep93xx_init(void); static int ep93xx_quit(void); @@ -59,7 +58,6 @@ struct jtag_interface ep93xx_interface = { .supported = DEBUG_CAP_TMS_SEQ, .execute_queue = bitbang_execute_queue, - .speed = ep93xx_speed, .init = ep93xx_init, .quit = ep93xx_quit, }; @@ -114,12 +112,6 @@ static void ep93xx_reset(int trst, int srst) nanosleep(&ep93xx_zzzz, NULL); } -static int ep93xx_speed(int speed) -{ - - return ERROR_OK; -} - static int set_gonk_mode(void) { void *syscon; |