aboutsummaryrefslogtreecommitdiff
path: root/src/jtag/drivers/sysfsgpio.c
diff options
context:
space:
mode:
authorFranck Jullien <franck.jullien@gmail.com>2013-02-03 18:15:13 +0100
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>2013-02-08 22:33:19 +0000
commit87668aebf1851c06af2513ab5f27ebb9ebf1ff16 (patch)
tree5f8fad191256e26517b18166b0a276bdd708b3eb /src/jtag/drivers/sysfsgpio.c
parentfeddedb6db72b81714780fae5d0b3a51dc1ddedc (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/sysfsgpio.c')
-rw-r--r--src/jtag/drivers/sysfsgpio.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/jtag/drivers/sysfsgpio.c b/src/jtag/drivers/sysfsgpio.c
index 1cad2689..283ec445 100644
--- a/src/jtag/drivers/sysfsgpio.c
+++ b/src/jtag/drivers/sysfsgpio.c
@@ -258,28 +258,6 @@ static void sysfsgpio_reset(int trst, int srst)
}
}
-/* No speed control is implemented yet */
-static int sysfsgpio_speed(int speed)
-{
- return ERROR_OK;
-}
-
-static int sysfsgpio_khz(int khz, int *jtag_speed)
-{
- /* no adaptive clocking */
- if (khz == 0)
- return ERROR_FAIL;
-
- *jtag_speed = 0;
- return ERROR_OK;
-}
-
-static int sysfsgpio_speed_div(int speed, int *khz)
-{
- *khz = 1;
- return ERROR_OK;
-}
-
/* gpio numbers for each gpio. Negative values are invalid */
static int tck_gpio = -1;
static int tms_gpio = -1;
@@ -415,9 +393,6 @@ struct jtag_interface sysfsgpio_interface = {
.supported = DEBUG_CAP_TMS_SEQ,
.execute_queue = bitbang_execute_queue,
.transports = jtag_only,
- .speed = sysfsgpio_speed,
- .khz = sysfsgpio_khz,
- .speed_div = sysfsgpio_speed_div,
.commands = sysfsgpio_command_handlers,
.init = sysfsgpio_init,
.quit = sysfsgpio_quit,