From 87668aebf1851c06af2513ab5f27ebb9ebf1ff16 Mon Sep 17 00:00:00 2001 From: Franck Jullien Date: Sun, 3 Feb 2013 18:15:13 +0100 Subject: 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 Reviewed-on: http://openocd.zylin.com/1131 Tested-by: jenkins Reviewed-by: Andreas Fritiofson --- src/jtag/drivers/ep93xx.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/jtag/drivers/ep93xx.c') diff --git a/src/jtag/drivers/ep93xx.c b/src/jtag/drivers/ep93xx.c index 97811307..ff4535bd 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; -- cgit v1.2.3-18-g5258