aboutsummaryrefslogtreecommitdiff
path: root/src/jtag/drivers/remote_bitbang.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/remote_bitbang.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/remote_bitbang.c')
-rw-r--r--src/jtag/drivers/remote_bitbang.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/jtag/drivers/remote_bitbang.c b/src/jtag/drivers/remote_bitbang.c
index 73d9cfcc..f6691bb6 100644
--- a/src/jtag/drivers/remote_bitbang.c
+++ b/src/jtag/drivers/remote_bitbang.c
@@ -130,11 +130,6 @@ static struct bitbang_interface remote_bitbang_bitbang = {
.blink = &remote_bitbang_blink,
};
-static int remote_bitbang_speed(int speed)
-{
- return ERROR_OK;
-}
-
static int remote_bitbang_init_tcp(void)
{
LOG_INFO("Connecting to %s:%i", remote_bitbang_host, remote_bitbang_port);
@@ -235,19 +230,6 @@ static int remote_bitbang_init(void)
return remote_bitbang_init_tcp();
}
-static int remote_bitbang_khz(int khz, int *jtag_speed)
-{
- *jtag_speed = 0;
- return ERROR_OK;
-}
-
-static int remote_bitbang_speed_div(int speed, int *khz)
-{
- /* I don't think this really matters any. */
- *khz = 1;
- return ERROR_OK;
-}
-
COMMAND_HANDLER(remote_bitbang_handle_remote_bitbang_port_command)
{
if (CMD_ARGC == 1) {
@@ -290,10 +272,7 @@ static const struct command_registration remote_bitbang_command_handlers[] = {
struct jtag_interface remote_bitbang_interface = {
.name = "remote_bitbang",
.execute_queue = &bitbang_execute_queue,
- .speed = &remote_bitbang_speed,
.commands = remote_bitbang_command_handlers,
.init = &remote_bitbang_init,
.quit = &remote_bitbang_quit,
- .khz = &remote_bitbang_khz,
- .speed_div = &remote_bitbang_speed_div,
};