aboutsummaryrefslogtreecommitdiff
path: root/src/jtag/drivers/at91rm9200.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/at91rm9200.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/at91rm9200.c')
-rw-r--r--src/jtag/drivers/at91rm9200.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/jtag/drivers/at91rm9200.c b/src/jtag/drivers/at91rm9200.c
index 3bba368f..066d6b68 100644
--- a/src/jtag/drivers/at91rm9200.c
+++ b/src/jtag/drivers/at91rm9200.c
@@ -115,7 +115,6 @@ static int at91rm9200_read(void);
static void at91rm9200_write(int tck, int tms, int tdi);
static void at91rm9200_reset(int trst, int srst);
-static int at91rm9200_speed(int speed);
static int at91rm9200_init(void);
static int at91rm9200_quit(void);
@@ -163,12 +162,6 @@ static void at91rm9200_reset(int trst, int srst)
pio_base[device->SRST_PIO + PIO_CODR] = device->SRST_MASK;
}
-static int at91rm9200_speed(int speed)
-{
-
- return ERROR_OK;
-}
-
COMMAND_HANDLER(at91rm9200_handle_device_command)
{
if (CMD_ARGC == 0)
@@ -196,7 +189,6 @@ static const struct command_registration at91rm9200_command_handlers[] = {
struct jtag_interface at91rm9200_interface = {
.name = "at91rm9200",
.execute_queue = bitbang_execute_queue,
- .speed = at91rm9200_speed,
.commands = at91rm9200_command_handlers,
.init = at91rm9200_init,
.quit = at91rm9200_quit,